UDisks.Filesystem¶
- Implementations:
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
[ |
r/w |
MountPoints |
|
r/w |
Size |
Signals¶
Name |
Short Description |
|---|---|
Signal emitted when a remote caller is invoking the Check() D-Bus method. |
|
Signal emitted when a remote caller is invoking the Mount() D-Bus method. |
|
Signal emitted when a remote caller is invoking the Repair() D-Bus method. |
|
Signal emitted when a remote caller is invoking the Resize() D-Bus method. |
|
Signal emitted when a remote caller is invoking the SetLabel() D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘SetUUID() [gdbus-method-org-freedesktop-UDisks2-Filesystem.SetUUID]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the TakeOwnership() D-Bus method. |
|
Signal emitted when a remote caller is invoking the Unmount() D-Bus method. |
Fields¶
None
Class Details¶
- class UDisks.Filesystem¶
- Bases:
- Structure:
Abstract interface type for the D-Bus interface org.freedesktop.UDisks2.Filesystem.
- classmethod interface_info()¶
- Returns:
A
Gio.DBusInterfaceInfo. Do not free.- Return type:
Gets a machine-readable description of the org.freedesktop.UDisks2.Filesystem D-Bus interface.
- classmethod override_properties(klass, property_id_begin)¶
- Parameters:
klass (
GObject.ObjectClass) – The class structure for aGObject.Objectderived class.property_id_begin (
int) – The property id to assign to the first overridden property.
- Returns:
The last property id.
- Return type:
Overrides all
GObject.Objectproperties in theUDisks.Filesysteminterface for a concrete class. The properties are overridden in the order they are defined.
- call_check(arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_options (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously invokes the Check() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default()). You can then callUDisks.Filesystem.call_check_finish() to get the result of the operation.See
UDisks.Filesystem.call_check_sync() for the synchronous, blocking version of this method.
- call_check_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Filesystem.call_check().- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_consistent:
Return location for return parameter or
Noneto ignore.
- Return type:
Finishes an operation started with
UDisks.Filesystem.call_check().
- call_check_sync(arg_options, cancellable)¶
- Parameters:
arg_options (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_consistent:
Return location for return parameter or
Noneto ignore.
- Return type:
Synchronously invokes the Check() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Filesystem.call_check() for the asynchronous version of this method.
- call_mount(arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_options (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously invokes the Mount() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default()). You can then callUDisks.Filesystem.call_mount_finish() to get the result of the operation.See
UDisks.Filesystem.call_mount_sync() for the synchronous, blocking version of this method.
- call_mount_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Filesystem.call_mount().- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_mount_path:
Return location for return parameter or
Noneto ignore.
- Return type:
Finishes an operation started with
UDisks.Filesystem.call_mount().
- call_mount_sync(arg_options, cancellable)¶
- Parameters:
arg_options (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_mount_path:
Return location for return parameter or
Noneto ignore.
- Return type:
Synchronously invokes the Mount() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Filesystem.call_mount() for the asynchronous version of this method.
- call_repair(arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_options (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously invokes the Repair() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default()). You can then callUDisks.Filesystem.call_repair_finish() to get the result of the operation.See
UDisks.Filesystem.call_repair_sync() for the synchronous, blocking version of this method.
- call_repair_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Filesystem.call_repair().- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_repaired:
Return location for return parameter or
Noneto ignore.
- Return type:
Finishes an operation started with
UDisks.Filesystem.call_repair().
- call_repair_sync(arg_options, cancellable)¶
- Parameters:
arg_options (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_repaired:
Return location for return parameter or
Noneto ignore.
- Return type:
Synchronously invokes the Repair() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Filesystem.call_repair() for the asynchronous version of this method.
- call_resize(arg_size, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_size (
int) – Argument to pass with the method invocation.arg_options (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously invokes the Resize() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default()). You can then callUDisks.Filesystem.call_resize_finish() to get the result of the operation.See
UDisks.Filesystem.call_resize_sync() for the synchronous, blocking version of this method.New in version 2.7.2.
- call_resize_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Filesystem.call_resize().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Filesystem.call_resize().New in version 2.7.2.
- call_resize_sync(arg_size, arg_options, cancellable)¶
- Parameters:
arg_size (
int) – Argument to pass with the method invocation.arg_options (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Synchronously invokes the Resize() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Filesystem.call_resize() for the asynchronous version of this method.New in version 2.7.2.
- call_set_label(arg_label, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_label (
str) – Argument to pass with the method invocation.arg_options (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously invokes the SetLabel() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default()). You can then callUDisks.Filesystem.call_set_label_finish() to get the result of the operation.See
UDisks.Filesystem.call_set_label_sync() for the synchronous, blocking version of this method.
- call_set_label_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Filesystem.call_set_label().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Filesystem.call_set_label().
- call_set_label_sync(arg_label, arg_options, cancellable)¶
- Parameters:
arg_label (
str) – Argument to pass with the method invocation.arg_options (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Synchronously invokes the SetLabel() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Filesystem.call_set_label() for the asynchronous version of this method.
- call_set_uuid(arg_uuid, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_uuid (
str) – Argument to pass with the method invocation.arg_options (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously invokes the ‘SetUUID() [gdbus-method-org-freedesktop-UDisks2-Filesystem.SetUUID]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default()). You can then callUDisks.Filesystem.call_set_uuid_finish() to get the result of the operation.See
UDisks.Filesystem.call_set_uuid_sync() for the synchronous, blocking version of this method.New in version 2.10.0.
- call_set_uuid_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Filesystem.call_set_uuid().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Filesystem.call_set_uuid().New in version 2.10.0.
- call_set_uuid_sync(arg_uuid, arg_options, cancellable)¶
- Parameters:
arg_uuid (
str) – Argument to pass with the method invocation.arg_options (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘SetUUID() [gdbus-method-org-freedesktop-UDisks2-Filesystem.SetUUID]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Filesystem.call_set_uuid() for the asynchronous version of this method.New in version 2.10.0.
- call_take_ownership(arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_options (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously invokes the TakeOwnership() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default()). You can then callUDisks.Filesystem.call_take_ownership_finish() to get the result of the operation.See
UDisks.Filesystem.call_take_ownership_sync() for the synchronous, blocking version of this method.
- call_take_ownership_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Filesystem.call_take_ownership().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Filesystem.call_take_ownership().
- call_take_ownership_sync(arg_options, cancellable)¶
- Parameters:
arg_options (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Synchronously invokes the TakeOwnership() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Filesystem.call_take_ownership() for the asynchronous version of this method.
- call_unmount(arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_options (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously invokes the Unmount() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default()). You can then callUDisks.Filesystem.call_unmount_finish() to get the result of the operation.See
UDisks.Filesystem.call_unmount_sync() for the synchronous, blocking version of this method.
- call_unmount_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Filesystem.call_unmount().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Filesystem.call_unmount().
- call_unmount_sync(arg_options, cancellable)¶
- Parameters:
arg_options (
GLib.Variant) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Synchronously invokes the Unmount() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Filesystem.call_unmount() for the asynchronous version of this method.
- complete_check(invocation, consistent)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.consistent (
bool) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the Check() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- complete_mount(invocation, mount_path)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.mount_path (
str) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the Mount() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- complete_repair(invocation, repaired)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.repaired (
bool) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the Repair() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- complete_resize(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
Helper function used in service implementations to finish handling invocations of the Resize() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
New in version 2.7.2.
- complete_set_label(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
Helper function used in service implementations to finish handling invocations of the SetLabel() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- complete_set_uuid(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
Helper function used in service implementations to finish handling invocations of the ‘SetUUID() [gdbus-method-org-freedesktop-UDisks2-Filesystem.SetUUID]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
New in version 2.10.0.
- complete_take_ownership(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
Helper function used in service implementations to finish handling invocations of the TakeOwnership() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- complete_unmount(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
Helper function used in service implementations to finish handling invocations of the Unmount() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- do_handle_check(invocation, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_options (
GLib.Variant) –
- Return type:
Handler for the
UDisks.Filesystem::handle-checksignal.
- do_handle_mount(invocation, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_options (
GLib.Variant) –
- Return type:
Handler for the
UDisks.Filesystem::handle-mountsignal.
- do_handle_repair(invocation, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_options (
GLib.Variant) –
- Return type:
Handler for the
UDisks.Filesystem::handle-repairsignal.
- do_handle_resize(invocation, arg_size, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_size (
int) –arg_options (
GLib.Variant) –
- Return type:
Handler for the
UDisks.Filesystem::handle-resizesignal.
- do_handle_set_label(invocation, arg_label, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_label (
str) –arg_options (
GLib.Variant) –
- Return type:
Handler for the
UDisks.Filesystem::handle-set-labelsignal.
- do_handle_set_uuid(invocation, arg_uuid, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_uuid (
str) –arg_options (
GLib.Variant) –
- Return type:
Handler for the
UDisks.Filesystem::handle-set-uuidsignal.
- do_handle_take_ownership(invocation, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_options (
GLib.Variant) –
- Return type:
Handler for the
UDisks.Filesystem::handle-take-ownershipsignal.
- do_handle_unmount(invocation, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_options (
GLib.Variant) –
- Return type:
Handler for the
UDisks.Filesystem::handle-unmountsignal.
Signal Details¶
- UDisks.Filesystem.signals.handle_check(filesystem, invocation, arg_options)¶
- Signal Name:
handle-check- Flags:
- Parameters:
filesystem (
UDisks.Filesystem) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_options (
GLib.Variant) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLEDorTrueif the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLEDorFalseto let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the Check() D-Bus method.
If a signal handler returns
True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.Filesystem.complete_check() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHODerror is returned.
- UDisks.Filesystem.signals.handle_mount(filesystem, invocation, arg_options)¶
- Signal Name:
handle-mount- Flags:
- Parameters:
filesystem (
UDisks.Filesystem) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_options (
GLib.Variant) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLEDorTrueif the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLEDorFalseto let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the Mount() D-Bus method.
If a signal handler returns
True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.Filesystem.complete_mount() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHODerror is returned.
- UDisks.Filesystem.signals.handle_repair(filesystem, invocation, arg_options)¶
- Signal Name:
handle-repair- Flags:
- Parameters:
filesystem (
UDisks.Filesystem) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_options (
GLib.Variant) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLEDorTrueif the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLEDorFalseto let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the Repair() D-Bus method.
If a signal handler returns
True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.Filesystem.complete_repair() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHODerror is returned.
- UDisks.Filesystem.signals.handle_resize(filesystem, invocation, arg_size, arg_options)¶
- Signal Name:
handle-resize- Flags:
- Parameters:
filesystem (
UDisks.Filesystem) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_size (
int) – Argument passed by remote caller.arg_options (
GLib.Variant) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLEDorTrueif the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLEDorFalseto let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the Resize() D-Bus method.
If a signal handler returns
True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.Filesystem.complete_resize() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHODerror is returned.New in version 2.7.2.
- UDisks.Filesystem.signals.handle_set_label(filesystem, invocation, arg_label, arg_options)¶
- Signal Name:
handle-set-label- Flags:
- Parameters:
filesystem (
UDisks.Filesystem) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_label (
str) – Argument passed by remote caller.arg_options (
GLib.Variant) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLEDorTrueif the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLEDorFalseto let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the SetLabel() D-Bus method.
If a signal handler returns
True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.Filesystem.complete_set_label() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHODerror is returned.
- UDisks.Filesystem.signals.handle_set_uuid(filesystem, invocation, arg_uuid, arg_options)¶
- Signal Name:
handle-set-uuid- Flags:
- Parameters:
filesystem (
UDisks.Filesystem) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_uuid (
str) – Argument passed by remote caller.arg_options (
GLib.Variant) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLEDorTrueif the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLEDorFalseto let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘SetUUID() [gdbus-method-org-freedesktop-UDisks2-Filesystem.SetUUID]’ D-Bus method.
If a signal handler returns
True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.Filesystem.complete_set_uuid() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHODerror is returned.New in version 2.10.0.
- UDisks.Filesystem.signals.handle_take_ownership(filesystem, invocation, arg_options)¶
- Signal Name:
handle-take-ownership- Flags:
- Parameters:
filesystem (
UDisks.Filesystem) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_options (
GLib.Variant) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLEDorTrueif the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLEDorFalseto let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the TakeOwnership() D-Bus method.
If a signal handler returns
True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.Filesystem.complete_take_ownership() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHODerror is returned.
- UDisks.Filesystem.signals.handle_unmount(filesystem, invocation, arg_options)¶
- Signal Name:
handle-unmount- Flags:
- Parameters:
filesystem (
UDisks.Filesystem) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_options (
GLib.Variant) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLEDorTrueif the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLEDorFalseto let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the Unmount() D-Bus method.
If a signal handler returns
True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.Filesystem.complete_unmount() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHODerror is returned.
Property Details¶
- UDisks.Filesystem.props.mount_points¶
-
Represents the D-Bus property “MountPoints”.
Since the D-Bus property for this
GObject.Objectproperty is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- UDisks.Filesystem.props.size¶
-
Represents the D-Bus property “Size”.
Since the D-Bus property for this
GObject.Objectproperty is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.