From d292dd4f624f2a08afc228f82a5f72e77593864e Mon Sep 17 00:00:00 2001 From: Gian Mario Tagliaretti Date: Wed, 29 Apr 2009 21:28:44 +0200 Subject: Wrap three gio.Mount methods the following methods of gio.Mount have been wrapped including docs (_wrap_g_mount_guess_content_type) (_wrap_g_mount_guess_content_type_finish) (_wrap_g_mount_guess_content_type_sync) --- docs/reference/pygio-mount.xml | 152 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+) (limited to 'docs') diff --git a/docs/reference/pygio-mount.xml b/docs/reference/pygio-mount.xml index 0ea320d..f5688c5 100644 --- a/docs/reference/pygio-mount.xml +++ b/docs/reference/pygio-mount.xml @@ -57,6 +57,22 @@ get_volume + + guess_content_type + callback + force_rescan + cancellableNone + user_dataNone + + + guess_content_type_finish + result + + + guess_content_type_sync + force_rescan + cancellableNone + remount callback @@ -424,6 +440,132 @@ + + gio.Mount.guess_content_type + + + guess_content_type + callback + force_rescan + cancellableNone + user_dataNone + + + + + callback : + A GAsyncReadyCallback to call when the request is satisfied. + + + + force_rescan : + Whether to force a rescan of the content. Otherwise a cached result will be used if available. + + + + cancellable : + Optional + gio.Cancellable + object, None to ignore. + + + + user_data : + The data to pass to callback function. + + + + + + The guess_content_type() method asynchronously tries to guess the type of + content stored on mount. Returns one or more textual identifiers of well-known content + types (typically prefixed with "x-content/"), e.g. x-content/image-dcf for camera memory + cards. See the shared-mime-info specification for more on x-content types. + + + If cancellable is not None, then the operation can be cancelled + by triggering the cancellable object from another thread. If the operation was cancelled, + the error gio.IO_ERROR_CANCELLED will be returned. + + + When the operation is finished, callback will be called. You can then call + gio.Mount.guess_content_type_finish() + to obtain the result of the operation. + + + + + gio.Mount.guess_content_type_finish + + + guess_content_type_finish + result + + + + + result : + a gio.AsyncResult. + + + + Returns : + A list of types or None on error. + + + + + + The guess_content_type_finish() method finishes guessing content + types of mount. If any errors occured during the operation, error will be set to + contain the errors and FALSE will be returned. In particular, you may get an + gio.IO_ERROR_NOT_SUPPORTED if the mount does not support content guessing. + + + + + gio.Mount.guess_content_type_sync + + + guess_content_type_sync + force_rescan + cancellableNone + + + + + force_rescan : + Whether to force a rescan of the content. Otherwise a cached result will be used if available. + + + + cancellable : + Optional + gio.Cancellable + object, None to ignore. + + + + + + The guess_content_type_sync() method tries to guess + the type of content stored on mount. Returns one or more textual identifiers + of well-known content types (typically prefixed with "x-content/"), e.g. + x-content/image-dcf for camera memory cards. See the shared-mime-info specification + for more on x-content types. + + + If cancellable is not None, then the operation can be cancelled + by triggering the cancellable object from another thread. If the operation was cancelled, + the error gio.IO_ERROR_CANCELLED will be returned. + + + This is an synchronous operation and as such may block doing IO; see + gio.Mount.guess_content_type() + for the asynchronous version. + + + gio.Mount.remount @@ -471,6 +613,11 @@ The remount() method asynchronously remounts a mount. + + If cancellable is not None, then the operation can be cancelled + by triggering the cancellable object from another thread. If the operation was cancelled, + the error gio.IO_ERROR_CANCELLED will be returned. + When the operation is finished, callback will be called. You can then call gio.Mount.remount_finish() @@ -545,6 +692,11 @@ The unmount() method asynchronously unmounts a mount. + + If cancellable is not None, then the operation can be cancelled + by triggering the cancellable object from another thread. If the operation was cancelled, + the error gio.IO_ERROR_CANCELLED will be returned. + When the operation is finished, callback will be called. You can then call gio.Mount.unmount_finish() -- cgit