UDisks.Manager¶
- Implementations:
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
DefaultEncryptionType |
||
[ |
r/w |
SupportedEncryptionTypes |
|
[ |
r/w |
SupportedFilesystems |
|
r/w |
Version |
Signals¶
Name |
Short Description |
|---|---|
Signal emitted when a remote caller is invoking the CanCheck() D-Bus method. |
|
Signal emitted when a remote caller is invoking the CanFormat() D-Bus method. |
|
Signal emitted when a remote caller is invoking the CanRepair() D-Bus method. |
|
Signal emitted when a remote caller is invoking the CanResize() D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘EnableModule() [gdbus-method-org-freedesktop-UDisks2-Manager.EnableModule]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the EnableModules() D-Bus method. |
|
Signal emitted when a remote caller is invoking the GetBlockDevices() D-Bus method. |
|
Signal emitted when a remote caller is invoking the LoopSetup() D-Bus method. |
|
Signal emitted when a remote caller is invoking the MDRaidCreate() D-Bus method. |
|
Signal emitted when a remote caller is invoking the ResolveDevice() D-Bus method. |
Fields¶
None
Class Details¶
- class UDisks.Manager¶
- Bases:
- Structure:
Abstract interface type for the D-Bus interface org.freedesktop.UDisks2.Manager.
- classmethod interface_info()¶
- Returns:
A
Gio.DBusInterfaceInfo. Do not free.- Return type:
Gets a machine-readable description of the org.freedesktop.UDisks2.Manager 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.Managerinterface for a concrete class. The properties are overridden in the order they are defined.
- call_can_check(arg_type, cancellable, callback, *user_data)¶
- Parameters:
arg_type (
str) – 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 CanCheck() 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.Manager.call_can_check_finish() to get the result of the operation.See
UDisks.Manager.call_can_check_sync() for the synchronous, blocking version of this method.New in version 2.7.2.
- call_can_check_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Manager.call_can_check().- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_available:
Return location for return parameter or
Noneto ignore.
- Return type:
(
bool, out_available:GLib.Variant)
Finishes an operation started with
UDisks.Manager.call_can_check().New in version 2.7.2.
- call_can_check_sync(arg_type, cancellable)¶
- Parameters:
arg_type (
str) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_available:
Return location for return parameter or
Noneto ignore.
- Return type:
(
bool, out_available:GLib.Variant)
Synchronously invokes the CanCheck() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Manager.call_can_check() for the asynchronous version of this method.New in version 2.7.2.
- call_can_format(arg_type, cancellable, callback, *user_data)¶
- Parameters:
arg_type (
str) – 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 CanFormat() 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.Manager.call_can_format_finish() to get the result of the operation.See
UDisks.Manager.call_can_format_sync() for the synchronous, blocking version of this method.New in version 2.7.2.
- call_can_format_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Manager.call_can_format().- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_available:
Return location for return parameter or
Noneto ignore.
- Return type:
(
bool, out_available:GLib.Variant)
Finishes an operation started with
UDisks.Manager.call_can_format().New in version 2.7.2.
- call_can_format_sync(arg_type, cancellable)¶
- Parameters:
arg_type (
str) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_available:
Return location for return parameter or
Noneto ignore.
- Return type:
(
bool, out_available:GLib.Variant)
Synchronously invokes the CanFormat() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Manager.call_can_format() for the asynchronous version of this method.New in version 2.7.2.
- call_can_repair(arg_type, cancellable, callback, *user_data)¶
- Parameters:
arg_type (
str) – 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 CanRepair() 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.Manager.call_can_repair_finish() to get the result of the operation.See
UDisks.Manager.call_can_repair_sync() for the synchronous, blocking version of this method.New in version 2.7.2.
- call_can_repair_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Manager.call_can_repair().- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_available:
Return location for return parameter or
Noneto ignore.
- Return type:
(
bool, out_available:GLib.Variant)
Finishes an operation started with
UDisks.Manager.call_can_repair().New in version 2.7.2.
- call_can_repair_sync(arg_type, cancellable)¶
- Parameters:
arg_type (
str) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_available:
Return location for return parameter or
Noneto ignore.
- Return type:
(
bool, out_available:GLib.Variant)
Synchronously invokes the CanRepair() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Manager.call_can_repair() for the asynchronous version of this method.New in version 2.7.2.
- call_can_resize(arg_type, cancellable, callback, *user_data)¶
- Parameters:
arg_type (
str) – 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 CanResize() 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.Manager.call_can_resize_finish() to get the result of the operation.See
UDisks.Manager.call_can_resize_sync() for the synchronous, blocking version of this method.New in version 2.7.2.
- call_can_resize_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Manager.call_can_resize().- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_available:
Return location for return parameter or
Noneto ignore.
- Return type:
(
bool, out_available:GLib.Variant)
Finishes an operation started with
UDisks.Manager.call_can_resize().New in version 2.7.2.
- call_can_resize_sync(arg_type, cancellable)¶
- Parameters:
arg_type (
str) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_available:
Return location for return parameter or
Noneto ignore.
- Return type:
(
bool, out_available:GLib.Variant)
Synchronously invokes the CanResize() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Manager.call_can_resize() for the asynchronous version of this method.New in version 2.7.2.
- call_enable_module(arg_name, arg_enable, cancellable, callback, *user_data)¶
- Parameters:
arg_name (
str) – Argument to pass with the method invocation.arg_enable (
bool) – 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 ‘EnableModule() [gdbus-method-org-freedesktop-UDisks2-Manager.EnableModule]’ 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.Manager.call_enable_module_finish() to get the result of the operation.See
UDisks.Manager.call_enable_module_sync() for the synchronous, blocking version of this method.New in version 2.9.0.
- call_enable_module_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Manager.call_enable_module().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Manager.call_enable_module().New in version 2.9.0.
- call_enable_module_sync(arg_name, arg_enable, cancellable)¶
- Parameters:
arg_name (
str) – Argument to pass with the method invocation.arg_enable (
bool) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘EnableModule() [gdbus-method-org-freedesktop-UDisks2-Manager.EnableModule]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Manager.call_enable_module() for the asynchronous version of this method.New in version 2.9.0.
- call_enable_modules(arg_enable, cancellable, callback, *user_data)¶
- Parameters:
arg_enable (
bool) – 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 EnableModules() 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.Manager.call_enable_modules_finish() to get the result of the operation.See
UDisks.Manager.call_enable_modules_sync() for the synchronous, blocking version of this method.Deprecated since version ???: The D-Bus method has been deprecated.
- call_enable_modules_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Manager.call_enable_modules().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Manager.call_enable_modules().Deprecated since version ???: The D-Bus method has been deprecated.
- call_enable_modules_sync(arg_enable, cancellable)¶
- Parameters:
arg_enable (
bool) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Synchronously invokes the EnableModules() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Manager.call_enable_modules() for the asynchronous version of this method.Deprecated since version ???: The D-Bus method has been deprecated.
- call_get_block_devices(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 GetBlockDevices() 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.Manager.call_get_block_devices_finish() to get the result of the operation.See
UDisks.Manager.call_get_block_devices_sync() for the synchronous, blocking version of this method.New in version 2.7.2.
- call_get_block_devices_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Manager.call_get_block_devices().- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_block_objects:
Return location for return parameter or
Noneto ignore.
- Return type:
Finishes an operation started with
UDisks.Manager.call_get_block_devices().New in version 2.7.2.
- call_get_block_devices_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_block_objects:
Return location for return parameter or
Noneto ignore.
- Return type:
Synchronously invokes the GetBlockDevices() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Manager.call_get_block_devices() for the asynchronous version of this method.New in version 2.7.2.
- call_loop_setup(arg_fd, arg_options, fd_list, cancellable, callback, *user_data)¶
- Parameters:
arg_fd (
GLib.Variant) – Argument to pass with the method invocation.arg_options (
GLib.Variant) – Argument to pass with the method invocation.fd_list (
Gio.UnixFDListorNone) – AGio.UnixFDListorNone.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously invokes the LoopSetup() 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.Manager.call_loop_setup_finish() to get the result of the operation.See
UDisks.Manager.call_loop_setup_sync() for the synchronous, blocking version of this method.
- call_loop_setup_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Manager.call_loop_setup().- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_resulting_device:
Return location for return parameter or
Noneto ignore.- out_fd_list:
Return location for a
Gio.UnixFDListorNoneto ignore.
- Return type:
(
bool, out_resulting_device:str, out_fd_list:Gio.UnixFDListorNone)
Finishes an operation started with
UDisks.Manager.call_loop_setup().
- call_loop_setup_sync(arg_fd, arg_options, fd_list, cancellable)¶
- Parameters:
arg_fd (
GLib.Variant) – Argument to pass with the method invocation.arg_options (
GLib.Variant) – Argument to pass with the method invocation.fd_list (
Gio.UnixFDListorNone) – AGio.UnixFDListorNone.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_resulting_device:
Return location for return parameter or
Noneto ignore.- out_fd_list:
Return location for a
Gio.UnixFDListorNone.
- Return type:
(
bool, out_resulting_device:str, out_fd_list:Gio.UnixFDListorNone)
Synchronously invokes the LoopSetup() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Manager.call_loop_setup() for the asynchronous version of this method.
- call_mdraid_create(arg_blocks, arg_level, arg_name, arg_chunk, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_blocks (
str) – Argument to pass with the method invocation.arg_level (
str) – Argument to pass with the method invocation.arg_name (
str) – Argument to pass with the method invocation.arg_chunk (
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 MDRaidCreate() 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.Manager.call_mdraid_create_finish() to get the result of the operation.See
UDisks.Manager.call_mdraid_create_sync() for the synchronous, blocking version of this method.New in version 2.0.0.
- call_mdraid_create_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Manager.call_mdraid_create().- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_resulting_array:
Return location for return parameter or
Noneto ignore.
- Return type:
Finishes an operation started with
UDisks.Manager.call_mdraid_create().New in version 2.0.0.
- call_mdraid_create_sync(arg_blocks, arg_level, arg_name, arg_chunk, arg_options, cancellable)¶
- Parameters:
arg_blocks (
str) – Argument to pass with the method invocation.arg_level (
str) – Argument to pass with the method invocation.arg_name (
str) – Argument to pass with the method invocation.arg_chunk (
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:
Trueif the call succeeded,Falseif error is set.- out_resulting_array:
Return location for return parameter or
Noneto ignore.
- Return type:
Synchronously invokes the MDRaidCreate() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Manager.call_mdraid_create() for the asynchronous version of this method.New in version 2.0.0.
- call_resolve_device(arg_devspec, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_devspec (
GLib.Variant) – 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 ResolveDevice() 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.Manager.call_resolve_device_finish() to get the result of the operation.See
UDisks.Manager.call_resolve_device_sync() for the synchronous, blocking version of this method.New in version 2.7.3.
- call_resolve_device_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.Manager.call_resolve_device().- Raises:
- Returns:
Trueif the call succeeded,Falseif error is set.- out_devices:
Return location for return parameter or
Noneto ignore.
- Return type:
Finishes an operation started with
UDisks.Manager.call_resolve_device().New in version 2.7.3.
- call_resolve_device_sync(arg_devspec, arg_options, cancellable)¶
- Parameters:
arg_devspec (
GLib.Variant) – 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:
Trueif the call succeeded,Falseif error is set.- out_devices:
Return location for return parameter or
Noneto ignore.
- Return type:
Synchronously invokes the ResolveDevice() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Manager.call_resolve_device() for the asynchronous version of this method.New in version 2.7.3.
- complete_can_check(invocation, available)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.available (
GLib.Variant) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the CanCheck() 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_can_format(invocation, available)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.available (
GLib.Variant) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the CanFormat() 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_can_repair(invocation, available)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.available (
GLib.Variant) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the CanRepair() 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_can_resize(invocation, available)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.available (
GLib.Variant) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the CanResize() 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_enable_module(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
Helper function used in service implementations to finish handling invocations of the ‘EnableModule() [gdbus-method-org-freedesktop-UDisks2-Manager.EnableModule]’ 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.9.0.
- complete_enable_modules(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
Helper function used in service implementations to finish handling invocations of the EnableModules() 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.
Deprecated since version ???: The D-Bus method has been deprecated.
- complete_get_block_devices(invocation, block_objects)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.block_objects (
str) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the GetBlockDevices() 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_loop_setup(invocation, fd_list, resulting_device)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.fd_list (
Gio.UnixFDListorNone) – AGio.UnixFDListorNone.resulting_device (
str) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the LoopSetup() 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_mdraid_create(invocation, resulting_array)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.resulting_array (
str) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the MDRaidCreate() 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.0.0.
- complete_resolve_device(invocation, devices)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.devices (
str) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the ResolveDevice() 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.3.
- do_handle_can_check(invocation, arg_type) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_type (
str) –
- Return type:
Handler for the
UDisks.Manager::handle-can-checksignal.
- do_handle_can_format(invocation, arg_type) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_type (
str) –
- Return type:
Handler for the
UDisks.Manager::handle-can-formatsignal.
- do_handle_can_repair(invocation, arg_type) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_type (
str) –
- Return type:
Handler for the
UDisks.Manager::handle-can-repairsignal.
- do_handle_can_resize(invocation, arg_type) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_type (
str) –
- Return type:
Handler for the
UDisks.Manager::handle-can-resizesignal.
- do_handle_enable_module(invocation, arg_name, arg_enable) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_name (
str) –arg_enable (
bool) –
- Return type:
Handler for the
UDisks.Manager::handle-enable-modulesignal.
- do_handle_enable_modules(invocation, arg_enable) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_enable (
bool) –
- Return type:
Handler for the
UDisks.Manager::handle-enable-modulessignal.
- do_handle_get_block_devices(invocation, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_options (
GLib.Variant) –
- Return type:
Handler for the
UDisks.Manager::handle-get-block-devicessignal.
- do_handle_loop_setup(invocation, fd_list, arg_fd, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –fd_list (
Gio.UnixFDList) –arg_fd (
GLib.Variant) –arg_options (
GLib.Variant) –
- Return type:
Handler for the
UDisks.Manager::handle-loop-setupsignal.
- do_handle_mdraid_create(invocation, arg_blocks, arg_level, arg_name, arg_chunk, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_blocks (
str) –arg_level (
str) –arg_name (
str) –arg_chunk (
int) –arg_options (
GLib.Variant) –
- Return type:
Handler for the
UDisks.Manager::handle-mdraid-createsignal.
- do_handle_resolve_device(invocation, arg_devspec, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_devspec (
GLib.Variant) –arg_options (
GLib.Variant) –
- Return type:
Handler for the
UDisks.Manager::handle-resolve-devicesignal.
Signal Details¶
- UDisks.Manager.signals.handle_can_check(manager, invocation, arg_type)¶
- Signal Name:
handle-can-check- Flags:
- Parameters:
manager (
UDisks.Manager) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_type (
str) – 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 CanCheck() 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.Manager.complete_can_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.New in version 2.7.2.
- UDisks.Manager.signals.handle_can_format(manager, invocation, arg_type)¶
- Signal Name:
handle-can-format- Flags:
- Parameters:
manager (
UDisks.Manager) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_type (
str) – 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 CanFormat() 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.Manager.complete_can_format() 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.Manager.signals.handle_can_repair(manager, invocation, arg_type)¶
- Signal Name:
handle-can-repair- Flags:
- Parameters:
manager (
UDisks.Manager) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_type (
str) – 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 CanRepair() 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.Manager.complete_can_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.New in version 2.7.2.
- UDisks.Manager.signals.handle_can_resize(manager, invocation, arg_type)¶
- Signal Name:
handle-can-resize- Flags:
- Parameters:
manager (
UDisks.Manager) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_type (
str) – 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 CanResize() 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.Manager.complete_can_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.Manager.signals.handle_enable_module(manager, invocation, arg_name, arg_enable)¶
- Signal Name:
handle-enable-module- Flags:
- Parameters:
manager (
UDisks.Manager) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_name (
str) – Argument passed by remote caller.arg_enable (
bool) – 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 ‘EnableModule() [gdbus-method-org-freedesktop-UDisks2-Manager.EnableModule]’ 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.Manager.complete_enable_module() 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.9.0.
- UDisks.Manager.signals.handle_enable_modules(manager, invocation, arg_enable)¶
- Signal Name:
handle-enable-modules- Flags:
- Parameters:
manager (
UDisks.Manager) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_enable (
bool) – 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 EnableModules() 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.Manager.complete_enable_modules() 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.Deprecated since version ???: The D-Bus method has been deprecated.
- UDisks.Manager.signals.handle_get_block_devices(manager, invocation, arg_options)¶
- Signal Name:
handle-get-block-devices- Flags:
- Parameters:
manager (
UDisks.Manager) – 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 GetBlockDevices() 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.Manager.complete_get_block_devices() 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.Manager.signals.handle_loop_setup(manager, invocation, fd_list, arg_fd, arg_options)¶
- Signal Name:
handle-loop-setup- Flags:
- Parameters:
manager (
UDisks.Manager) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.fd_list (
Gio.UnixFDListorNone) – AGio.UnixFDListorNone.arg_fd (
GLib.Variant) – 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 LoopSetup() 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.Manager.complete_loop_setup() 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.Manager.signals.handle_mdraid_create(manager, invocation, arg_blocks, arg_level, arg_name, arg_chunk, arg_options)¶
- Signal Name:
handle-mdraid-create- Flags:
- Parameters:
manager (
UDisks.Manager) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_blocks ([
str]) – Argument passed by remote caller.arg_level (
str) – Argument passed by remote caller.arg_name (
str) – Argument passed by remote caller.arg_chunk (
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 MDRaidCreate() 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.Manager.complete_mdraid_create() 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.0.0.
- UDisks.Manager.signals.handle_resolve_device(manager, invocation, arg_devspec, arg_options)¶
- Signal Name:
handle-resolve-device- Flags:
- Parameters:
manager (
UDisks.Manager) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_devspec (
GLib.Variant) – 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 ResolveDevice() 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.Manager.complete_resolve_device() 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.3.
Property Details¶
- UDisks.Manager.props.default_encryption_type¶
-
Represents the D-Bus property “DefaultEncryptionType”.
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.New in version 2.8.3.
- UDisks.Manager.props.supported_encryption_types¶
-
Represents the D-Bus property “SupportedEncryptionTypes”.
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.New in version 2.8.3.
- UDisks.Manager.props.supported_filesystems¶
-
Represents the D-Bus property “SupportedFilesystems”.
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.Manager.props.version¶
-
Represents the D-Bus property “Version”.
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.