summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendobexftp.c
Commit message (Collapse)AuthorAgeFilesLines
* conditionalize hal support in obexftp backendMartin Pitt2009-07-081-1/+7
| | | | | | | | | | | The obexftp backend only uses hal for finding devices with the "obex" capability if the gvfs device path starts with "usb". However, neither hal nor bluez actually provide devices with this capability, and the obexftp backend works fine with obex:// gvfs mounts without hal. Conditionalize hal support to only query hal if libhal is available. http://bugzilla.gnome.org/show_bug.cgi?id=586411
* signal the need for updates (changes wire protocol and internal API)Benjamin Otte2009-06-101-5/+7
| | | | | | | | | | | Send a boolean send_progress to the daemon in the case of push/pull jobs that indicates if progress updates should be sent to the client. Oftentimes the daemons can avoid quite a bit of work (like querying file sizes or setting up and operating machinery required to send progress updates) when it's not required. Patch also includes fixes to daemons to ensure they don't call a NULL progress_callback (previously, NULL was not a possible value).
* Convert all spew to g_debug()Alexander Larsson2009-03-061-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-03-06 Alexander Larsson <alexl@redhat.com> * daemon/daemon-main.c: * daemon/gvfsbackend.c: * daemon/gvfsbackendburn.c: * daemon/gvfsbackenddav.c: * daemon/gvfsbackendhttp.c: * daemon/gvfsbackendobexftp.c: * daemon/gvfsbackendtrash.c: * daemon/gvfsdaemon.c: * daemon/gvfsjobcloseread.c: * daemon/gvfsjobclosewrite.c: * daemon/gvfsjobcopy.c: * daemon/gvfsjobdbus.c: * daemon/gvfsjobenumerate.c: * daemon/gvfsjobmount.c: * daemon/gvfsjobmove.c: * daemon/gvfsjobpull.c: * daemon/gvfsjobpush.c: * daemon/gvfsjobread.c: * daemon/gvfsjobseekread.c: * daemon/gvfsjobseekwrite.c: * daemon/gvfsjobunmount.c: * daemon/gvfsjobwrite.c: * daemon/mount.c: Convert all spew to g_debug() svn path=/trunk/; revision=2297
* Bug 570533 – use g_set_error_literalCosimo Cecchi2009-02-131-3/+3
| | | | | | | | | | | | | | | | 2009-02-13 Cosimo Cecchi <cosimoc@gnome.org> Bug 570533 – use g_set_error_literal * daemon/gvfsbackendobexftp.c: (_push_single_file_helper): * daemon/gvfsbackendtrash.c: (trash_backend_get_file), (trash_backend_open_for_read), (trash_backend_delete), (trash_backend_pull): * daemon/trashlib/trashitem.c: (trash_item_delete): use g_set_error_literal() when appropriate. Patch by Christian Persch. svn path=/trunk/; revision=2214
* Bug 570193 – Mounting phone connected via Bluetooth failsBastien Nocera2009-02-031-9/+18
| | | | | | | | | | | | | 2009-02-03 Bastien Nocera <hadess@hadess.net> Bug 570193 – Mounting phone connected via Bluetooth fails * daemon/gvfsbackendobexftp.c (_get_bluetooth_device_properties): Use a private connection to connect to the system D-Bus, thanks to Alexander Larsson svn path=/trunk/; revision=2194
* Fix possible double-free when the display name is freed Avoid errors whenBastien Nocera2009-02-031-1/+3
| | | | | | | | | | | 2009-02-03 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp.c (do_mount): Fix possible double-free when the display name is freed Avoid errors when the icon name couldn't be gathered svn path=/trunk/; revision=2193
* Bug 511671 - Make obex-ftp work over usb connectionsBastien Nocera2009-02-021-28/+323
| | | | | | | | | | | | | | | | | | | 2009-02-02 Bastien Nocera <hadess@hadess.net> Bug 511671 - Make obex-ftp work over usb connections * configure.ac: Require HAL for the ObexFTP backend * daemon/Makefile.am: * daemon/gvfsbackendobexftp.c (_get_numbers_from_usb_path), (_is_nokia_3650), (_get_bluetooth_name_and_icon), (_get_bluetooth_device_properties), (_is_same_path), (_find_ods_usb_intfnum), (_get_usb_intfnum_and_properties), (do_mount): Add support for USB ObexFTP devices, original patch from Alexander Kanavin <ak@sensi.org>, requires current obex-data-server trunk svn path=/trunk/; revision=2188
* Implement write support for the ObexFTP backend (#519071).Cosimo Cecchi2009-01-281-3/+349
| | | | | | | | | | | | | | 2009-01-28 Cosimo Cecchi <cosimoc@gnome.org> * daemon/gvfsbackendobexftp.c: (_invalidate_cache_helper), (do_mount), (push_transfer_started_cb), (push_transfer_completed_cb), (push_transfer_progress_cb), (push_data_free), (_push_single_file_helper), (do_push), (do_make_directory), (g_vfs_backend_obexftp_class_init): * daemon/obexftp-marshal.list: Implement write support for the ObexFTP backend (#519071). svn path=/trunk/; revision=2183
* Fix icon for the root directory of an obexftp server (Closes: #542687)Bastien Nocera2008-12-091-1/+8
| | | | | | | | | | 2008-12-09 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp.c (_query_file_info_helper): Fix icon for the root directory of an obexftp server (Closes: #542687) svn path=/trunk/; revision=2128
* Use the Alias instead of the Name, so we automatically fallback if theBastien Nocera2008-10-031-1/+1
| | | | | | | | | | | 2008-10-03 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp.c (get_name_and_icon): Use the Alias instead of the Name, so we automatically fallback if the name isn't available svn path=/trunk/; revision=2042
* Re-add bluetooth.h include, we still use bachk right nowBastien Nocera2008-10-021-0/+1
| | | | | | | | | | 2008-10-02 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp.c: Re-add bluetooth.h include, we still use bachk right now svn path=/trunk/; revision=2040
* Port to BlueZ 4.x API and obex-data-server SVN API, use the "Icon"Bastien Nocera2008-09-291-163/+130
| | | | | | | | | | | | | | | | | | 2008-09-29 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp.c (_is_nokia_3650), (get_name_and_icon), (_get_device_properties), (g_vfs_backend_obexftp_finalize), (g_vfs_backend_obexftp_init), (_query_file_info_helper), (session_connect_error_cb), (session_connected_cb), (do_mount), (g_vfs_backend_obexftp_class_init): * daemon/obexftp-marshal.list: Port to BlueZ 4.x API and obex-data-server SVN API, use the "Icon" property to get the icon, instead of parsing the device class ourselves (#552356) svn path=/trunk/; revision=2035
* Use g_set_error_literal where appropriate. Bug #539167.Christian Persch2008-08-021-6/+6
| | | | svn path=/trunk/; revision=1847
* Bug 518284 – need to add i18n on module branchingMatthias Clasen2008-07-291-4/+2
| | | | | | | | | | | | | | 2008-07-28 Matthias Clasen <mclasen@redhat.com> Bug 518284 – need to add i18n on module branching * daemon/gvfsbackendcdda.c: * daemon/gvfsbackendgphoto2.c: * daemon/gvfsbackendobexftp.c: Now is later. Remove the I18N_LATER hack. svn path=/trunk/; revision=1843
* Fix build warnings with GCC 4.3.0 (#537588).Cosimo Cecchi2008-06-101-5/+5
| | | | | | | | | | | | | | | | | | | | | 2008-06-10 Cosimo Cecchi <cosimoc@gnome.org> * daemon/gvfsbackendarchive.c: (gvfs_archive_pop_job): * daemon/gvfsbackenddav.c: (stat_location), (write_ready), (close_write_ready), (do_make_directory), (do_delete): * daemon/gvfsbackendftp.c: (ftp_connection_set_error_from_response): * daemon/gvfsbackendhttp.c: (g_vfs_job_failed_from_http_status), (open_for_read_ready), (read_ready), (try_seek_on_read), (close_read_ready): * daemon/gvfsbackendobexftp.c: (_query_file_info_helper), (error_occurred_cb), (do_delete): Fix build warnings with GCC 4.3.0 (#537588). * daemon/gvfsjob.c: (g_vfs_job_failed), (g_vfs_job_failed_literal): * daemon/gvfsjob.h: Add g_vfs_job_failed_literal (). svn path=/trunk/; revision=1802
* Better error message for Nokia 3650 phonesBastien Nocera2008-03-051-1/+1
| | | | | | | | | | 2008-03-05 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp.c (do_enumerate): Better error message for Nokia 3650 phones svn path=/trunk/; revision=1552
* Error out cleanly from do_mount() if we somehow lose connection to theBastien Nocera2008-03-051-15/+47
| | | | | | | | | | | | | | | 2008-03-05 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp.c (_get_icon_from_type), (_get_type_from_class), (_is_nokia_3650), (_get_device_properties), (g_vfs_backend_obexftp_finalize), (do_mount), (do_open_for_read), (do_query_info), (do_query_fs_info), (do_enumerate), (do_delete): Error out cleanly from do_mount() if we somehow lose connection to the device, Show a meaningful error when browsing broken Nokia 3650 phones (Closes: #519733) svn path=/trunk/; revision=1551
* Fix a crasher when mounting fails, by not freeing the error just beforeBastien Nocera2008-03-031-1/+4
| | | | | | | | | | | | | 2008-03-03 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp.c (do_mount), (do_open_for_read), (do_read), (do_query_info), (do_query_fs_info), (do_enumerate), (do_delete), (do_make_directory): Fix a crasher when mounting fails, by not freeing the error just before using it (duh!) (Closes: #519752), Fix a few error paths leaking errors svn path=/trunk/; revision=1499
* Fix another case where the icon name was wrong for the root folder (Helps:Bastien Nocera2008-03-011-7/+5
| | | | | | | | | | | 2008-03-01 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp.c (_query_file_info_helper): Fix another case where the icon name was wrong for the root folder (Helps: #519369) svn path=/trunk/; revision=1472
* Use better icons for the devicesBastien Nocera2008-02-291-2/+2
| | | | | | | | | | 2008-02-29 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp.c (_get_icon_from_type): Use better icons for the devices svn path=/trunk/; revision=1462
* When getting the remote device's name, also get its class, so we can useBastien Nocera2008-02-291-3/+119
| | | | | | | | | | | | | 2008-02-29 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp.c (_get_icon_from_type), (_get_type_from_class), (_get_device_properties), (do_mount): When getting the remote device's name, also get its class, so we can use device specific icons instead of the standard Bluetooth icon (Closes: #519369) svn path=/trunk/; revision=1461
* Don't use a temporary error to set jobs as failed, use g_vfs_job_failedBastien Nocera2008-02-291-56/+44
| | | | | | | | | | | | | | 2008-02-29 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp.c (is_connected), (do_mount), (do_open_for_read), (is_busy), (do_read), (do_query_info), (do_query_fs_info), (do_enumerate), (do_delete), (do_make_directory): Don't use a temporary error to set jobs as failed, use g_vfs_job_failed instead Error out properly when trying to open a directory for read svn path=/trunk/; revision=1453
* Use a convenience function to load directory listings, implement a simpleBastien Nocera2008-02-291-13/+59
| | | | | | | | | | | | | | | | 2008-02-29 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp.c (g_vfs_backend_obexftp_finalize), (_retrieve_folder_listing), (_query_file_info_helper), (do_open_for_read), (do_query_info), (do_query_fs_info), (do_enumerate), (do_delete): Use a convenience function to load directory listings, implement a simple cache there that keeps folder listings for 3 seconds (should speed up folder enumeration followed by info fetching, as well as checking for non-existant files) svn path=/trunk/; revision=1452
* Fix the content-type of directories (inode/directory, notBastien Nocera2008-02-281-2/+41
| | | | | | | | | | | | | | | | | | | | | | | | | 2008-02-28 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp-fl-parser.c (fl_parser_start_node_cb): Fix the content-type of directories (inode/directory, not x-directory/normal as in gnome-vfs) Set file icons from the content-type * daemon/gvfsbackendobexftp.c (_change_directory): Add a FIXME, trying to change to a non-existant directory errors out with "permission denied", which isn't the case (_query_file_info_helper): set the right content-type and icon for the root folder (is_connected), (do_mount): Wait until we're connected to exit from do_mount() (do_open_for_read): Fix a crash when opening an inexistant file for read svn path=/trunk/; revision=1423
* Add missing mutex unlock, duh!Bastien Nocera2008-02-281-0/+1
| | | | | | | | | | 2008-02-28 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp.c (do_query_info): Add missing mutex unlock, duh! svn path=/trunk/; revision=1413
* add test for obex URIs Require expat for the obexftp backendBastien Nocera2008-02-271-0/+1268
2008-02-27 Bastien Nocera <hadess@hadess.net> * client/test-uri-utils.c: add test for obex URIs * configure.ac: Require expat for the obexftp backend * daemon/Makefile.am: * daemon/gvfsbackendobexftp-cap-parser.c: * daemon/gvfsbackendobexftp-cap-parser.h: * daemon/gvfsbackendobexftp-fl-parser.c: * daemon/gvfsbackendobexftp-fl-parser.h: Added ObexFTP folder listing and capability parser from gnome-vfs-obexftp, ported to gio * daemon/gvfsbackendobexftp.c: * daemon/gvfsbackendobexftp.h: * daemon/obexftp-marshal.list: * daemon/obexftp.mount.in: Add read-only ObexFTP backend (Closes: #509621) svn path=/trunk/; revision=1406