UDisks.Block¶
- Implementations:
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Configuration |
||
r/w |
CryptoBackingDevice |
||
r/w |
Device |
||
r/w |
DeviceNumber |
||
r/w |
Drive |
||
r/w |
HintAuto |
||
r/w |
HintIconName |
||
r/w |
HintIgnore |
||
r/w |
HintName |
||
r/w |
HintPartitionable |
||
r/w |
HintSymbolicIconName |
||
r/w |
HintSystem |
||
r/w |
Id |
||
r/w |
IdLabel |
||
r/w |
IdType |
||
r/w |
IdUsage |
||
r/w |
IdUUID |
||
r/w |
IdVersion |
||
r/w |
MDRaid |
||
r/w |
MDRaidMember |
||
r/w |
PreferredDevice |
||
r/w |
ReadOnly |
||
r/w |
Size |
||
[ |
r/w |
Symlinks |
|
[ |
r/w |
UserspaceMountOptions |
Signals¶
Name |
Short Description |
---|---|
Signal emitted when a remote caller is invoking the AddConfigurationItem() D-Bus method. |
|
Signal emitted when a remote caller is invoking the Format() D-Bus method. |
|
Signal emitted when a remote caller is invoking the GetSecretConfiguration() D-Bus method. |
|
Signal emitted when a remote caller is invoking the OpenDevice() D-Bus method. |
|
Signal emitted when a remote caller is invoking the OpenForBackup() D-Bus method. |
|
Signal emitted when a remote caller is invoking the OpenForBenchmark() D-Bus method. |
|
Signal emitted when a remote caller is invoking the OpenForRestore() D-Bus method. |
|
Signal emitted when a remote caller is invoking the RemoveConfigurationItem() D-Bus method. |
|
Signal emitted when a remote caller is invoking the Rescan() D-Bus method. |
|
Signal emitted when a remote caller is invoking the UpdateConfigurationItem() D-Bus method. |
Fields¶
None
Class Details¶
- class UDisks.Block¶
- Bases:
- Structure:
Abstract interface type for the D-Bus interface org.freedesktop.UDisks2.Block.
- classmethod interface_info()¶
- Returns:
A
Gio.DBusInterfaceInfo
. Do not free.- Return type:
Gets a machine-readable description of the org.freedesktop.UDisks2.Block D-Bus interface.
- classmethod override_properties(klass, property_id_begin)¶
- Parameters:
klass (
GObject.ObjectClass
) – The class structure for aGObject.Object
derived 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.Object
properties in theUDisks.Block
interface for a concrete class. The properties are overridden in the order they are defined.
- call_add_configuration_item(arg_item, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_item (
GLib.Variant
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the AddConfigurationItem() 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.Block.call_add_configuration_item_finish
() to get the result of the operation.See
UDisks.Block.call_add_configuration_item_sync
() for the synchronous, blocking version of this method.
- call_add_configuration_item_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.Block.call_add_configuration_item
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Block.call_add_configuration_item
().
- call_add_configuration_item_sync(arg_item, arg_options, cancellable)¶
- Parameters:
arg_item (
GLib.Variant
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the AddConfigurationItem() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Block.call_add_configuration_item
() for the asynchronous version of this method.
- call_format(arg_type, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_type (
str
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the Format() 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.Block.call_format_finish
() to get the result of the operation.See
UDisks.Block.call_format_sync
() for the synchronous, blocking version of this method.
- call_format_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.Block.call_format
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Block.call_format
().
- call_format_sync(arg_type, arg_options, cancellable)¶
- Parameters:
arg_type (
str
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the Format() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Block.call_format
() for the asynchronous version of this method.
- call_get_secret_configuration(arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the GetSecretConfiguration() 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.Block.call_get_secret_configuration_finish
() to get the result of the operation.See
UDisks.Block.call_get_secret_configuration_sync
() for the synchronous, blocking version of this method.
- call_get_secret_configuration_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.Block.call_get_secret_configuration
().- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_configuration:
Return location for return parameter or
None
to ignore.
- Return type:
(
bool
, out_configuration:GLib.Variant
)
Finishes an operation started with
UDisks.Block.call_get_secret_configuration
().
- call_get_secret_configuration_sync(arg_options, cancellable)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_configuration:
Return location for return parameter or
None
to ignore.
- Return type:
(
bool
, out_configuration:GLib.Variant
)
Synchronously invokes the GetSecretConfiguration() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Block.call_get_secret_configuration
() for the asynchronous version of this method.
- call_open_device(arg_mode, arg_options, fd_list, cancellable, callback, *user_data)¶
- Parameters:
arg_mode (
str
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.fd_list (
Gio.UnixFDList
orNone
) – AGio.UnixFDList
orNone
.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the OpenDevice() 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.Block.call_open_device_finish
() to get the result of the operation.See
UDisks.Block.call_open_device_sync
() for the synchronous, blocking version of this method.New in version 2.7.3.
- call_open_device_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.Block.call_open_device
().- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_fd:
Return location for return parameter or
None
to ignore.- out_fd_list:
Return location for a
Gio.UnixFDList
orNone
to ignore.
- Return type:
(
bool
, out_fd:GLib.Variant
, out_fd_list:Gio.UnixFDList
)
Finishes an operation started with
UDisks.Block.call_open_device
().New in version 2.7.3.
- call_open_device_sync(arg_mode, arg_options, fd_list, cancellable)¶
- Parameters:
arg_mode (
str
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.fd_list (
Gio.UnixFDList
orNone
) – AGio.UnixFDList
orNone
.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_fd:
Return location for return parameter or
None
to ignore.- out_fd_list:
Return location for a
Gio.UnixFDList
orNone
.
- Return type:
(
bool
, out_fd:GLib.Variant
, out_fd_list:Gio.UnixFDList
)
Synchronously invokes the OpenDevice() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Block.call_open_device
() for the asynchronous version of this method.New in version 2.7.3.
- call_open_for_backup(arg_options, fd_list, cancellable, callback, *user_data)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.fd_list (
Gio.UnixFDList
orNone
) – AGio.UnixFDList
orNone
.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the OpenForBackup() 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.Block.call_open_for_backup_finish
() to get the result of the operation.See
UDisks.Block.call_open_for_backup_sync
() for the synchronous, blocking version of this method.
- call_open_for_backup_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.Block.call_open_for_backup
().- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_fd:
Return location for return parameter or
None
to ignore.- out_fd_list:
Return location for a
Gio.UnixFDList
orNone
to ignore.
- Return type:
(
bool
, out_fd:GLib.Variant
, out_fd_list:Gio.UnixFDList
)
Finishes an operation started with
UDisks.Block.call_open_for_backup
().
- call_open_for_backup_sync(arg_options, fd_list, cancellable)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.fd_list (
Gio.UnixFDList
orNone
) – AGio.UnixFDList
orNone
.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_fd:
Return location for return parameter or
None
to ignore.- out_fd_list:
Return location for a
Gio.UnixFDList
orNone
.
- Return type:
(
bool
, out_fd:GLib.Variant
, out_fd_list:Gio.UnixFDList
)
Synchronously invokes the OpenForBackup() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Block.call_open_for_backup
() for the asynchronous version of this method.
- call_open_for_benchmark(arg_options, fd_list, cancellable, callback, *user_data)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.fd_list (
Gio.UnixFDList
orNone
) – AGio.UnixFDList
orNone
.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the OpenForBenchmark() 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.Block.call_open_for_benchmark_finish
() to get the result of the operation.See
UDisks.Block.call_open_for_benchmark_sync
() for the synchronous, blocking version of this method.
- call_open_for_benchmark_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.Block.call_open_for_benchmark
().- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_fd:
Return location for return parameter or
None
to ignore.- out_fd_list:
Return location for a
Gio.UnixFDList
orNone
to ignore.
- Return type:
(
bool
, out_fd:GLib.Variant
, out_fd_list:Gio.UnixFDList
)
Finishes an operation started with
UDisks.Block.call_open_for_benchmark
().
- call_open_for_benchmark_sync(arg_options, fd_list, cancellable)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.fd_list (
Gio.UnixFDList
orNone
) – AGio.UnixFDList
orNone
.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_fd:
Return location for return parameter or
None
to ignore.- out_fd_list:
Return location for a
Gio.UnixFDList
orNone
.
- Return type:
(
bool
, out_fd:GLib.Variant
, out_fd_list:Gio.UnixFDList
)
Synchronously invokes the OpenForBenchmark() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Block.call_open_for_benchmark
() for the asynchronous version of this method.
- call_open_for_restore(arg_options, fd_list, cancellable, callback, *user_data)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.fd_list (
Gio.UnixFDList
orNone
) – AGio.UnixFDList
orNone
.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the OpenForRestore() 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.Block.call_open_for_restore_finish
() to get the result of the operation.See
UDisks.Block.call_open_for_restore_sync
() for the synchronous, blocking version of this method.
- call_open_for_restore_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.Block.call_open_for_restore
().- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_fd:
Return location for return parameter or
None
to ignore.- out_fd_list:
Return location for a
Gio.UnixFDList
orNone
to ignore.
- Return type:
(
bool
, out_fd:GLib.Variant
, out_fd_list:Gio.UnixFDList
)
Finishes an operation started with
UDisks.Block.call_open_for_restore
().
- call_open_for_restore_sync(arg_options, fd_list, cancellable)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.fd_list (
Gio.UnixFDList
orNone
) – AGio.UnixFDList
orNone
.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_fd:
Return location for return parameter or
None
to ignore.- out_fd_list:
Return location for a
Gio.UnixFDList
orNone
.
- Return type:
(
bool
, out_fd:GLib.Variant
, out_fd_list:Gio.UnixFDList
)
Synchronously invokes the OpenForRestore() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Block.call_open_for_restore
() for the asynchronous version of this method.
- call_remove_configuration_item(arg_item, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_item (
GLib.Variant
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the RemoveConfigurationItem() 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.Block.call_remove_configuration_item_finish
() to get the result of the operation.See
UDisks.Block.call_remove_configuration_item_sync
() for the synchronous, blocking version of this method.
- call_remove_configuration_item_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.Block.call_remove_configuration_item
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Block.call_remove_configuration_item
().
- call_remove_configuration_item_sync(arg_item, arg_options, cancellable)¶
- Parameters:
arg_item (
GLib.Variant
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the RemoveConfigurationItem() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Block.call_remove_configuration_item
() for the asynchronous version of this method.
- call_rescan(arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the Rescan() 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.Block.call_rescan_finish
() to get the result of the operation.See
UDisks.Block.call_rescan_sync
() for the synchronous, blocking version of this method.
- call_rescan_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.Block.call_rescan
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Block.call_rescan
().
- call_rescan_sync(arg_options, cancellable)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the Rescan() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Block.call_rescan
() for the asynchronous version of this method.
- call_update_configuration_item(arg_old_item, arg_new_item, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_old_item (
GLib.Variant
) – Argument to pass with the method invocation.arg_new_item (
GLib.Variant
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the UpdateConfigurationItem() 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.Block.call_update_configuration_item_finish
() to get the result of the operation.See
UDisks.Block.call_update_configuration_item_sync
() for the synchronous, blocking version of this method.
- call_update_configuration_item_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.Block.call_update_configuration_item
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Block.call_update_configuration_item
().
- call_update_configuration_item_sync(arg_old_item, arg_new_item, arg_options, cancellable)¶
- Parameters:
arg_old_item (
GLib.Variant
) – Argument to pass with the method invocation.arg_new_item (
GLib.Variant
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the UpdateConfigurationItem() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Block.call_update_configuration_item
() for the asynchronous version of this method.
- complete_add_configuration_item(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the AddConfigurationItem() 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_format(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the Format() 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_get_secret_configuration(invocation, configuration)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.configuration (
GLib.Variant
) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the GetSecretConfiguration() 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_open_device(invocation, fd_list, fd)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.fd_list (
Gio.UnixFDList
orNone
) – AGio.UnixFDList
orNone
.fd (
GLib.Variant
) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the OpenDevice() 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.
- complete_open_for_backup(invocation, fd_list, fd)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.fd_list (
Gio.UnixFDList
orNone
) – AGio.UnixFDList
orNone
.fd (
GLib.Variant
) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the OpenForBackup() 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_open_for_benchmark(invocation, fd_list, fd)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.fd_list (
Gio.UnixFDList
orNone
) – AGio.UnixFDList
orNone
.fd (
GLib.Variant
) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the OpenForBenchmark() 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_open_for_restore(invocation, fd_list, fd)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.fd_list (
Gio.UnixFDList
orNone
) – AGio.UnixFDList
orNone
.fd (
GLib.Variant
) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the OpenForRestore() 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_remove_configuration_item(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the RemoveConfigurationItem() 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_rescan(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the Rescan() 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_update_configuration_item(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the UpdateConfigurationItem() 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_add_configuration_item(invocation, arg_item, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_item (
GLib.Variant
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.Block
::handle-add-configuration-item
signal.
- do_handle_format(invocation, arg_type, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_type (
str
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.Block
::handle-format
signal.
- do_handle_get_secret_configuration(invocation, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.Block
::handle-get-secret-configuration
signal.
- do_handle_open_device(invocation, fd_list, arg_mode, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –fd_list (
Gio.UnixFDList
) –arg_mode (
str
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.Block
::handle-open-device
signal.
- do_handle_open_for_backup(invocation, fd_list, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –fd_list (
Gio.UnixFDList
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.Block
::handle-open-for-backup
signal.
- do_handle_open_for_benchmark(invocation, fd_list, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –fd_list (
Gio.UnixFDList
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.Block
::handle-open-for-benchmark
signal.
- do_handle_open_for_restore(invocation, fd_list, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –fd_list (
Gio.UnixFDList
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.Block
::handle-open-for-restore
signal.
- do_handle_remove_configuration_item(invocation, arg_item, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_item (
GLib.Variant
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.Block
::handle-remove-configuration-item
signal.
- do_handle_rescan(invocation, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.Block
::handle-rescan
signal.
- do_handle_update_configuration_item(invocation, arg_old_item, arg_new_item, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_old_item (
GLib.Variant
) –arg_new_item (
GLib.Variant
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.Block
::handle-update-configuration-item
signal.
Signal Details¶
- UDisks.Block.signals.handle_add_configuration_item(block, invocation, arg_item, arg_options)¶
- Signal Name:
handle-add-configuration-item
- Flags:
- Parameters:
block (
UDisks.Block
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_item (
GLib.Variant
) – Argument passed by remote caller.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the AddConfigurationItem() 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.Block.complete_add_configuration_item
() 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_METHOD
error is returned.
- UDisks.Block.signals.handle_format(block, invocation, arg_type, arg_options)¶
- Signal Name:
handle-format
- Flags:
- Parameters:
block (
UDisks.Block
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_type (
str
) – Argument passed by remote caller.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the Format() 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.Block.complete_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_METHOD
error is returned.
- UDisks.Block.signals.handle_get_secret_configuration(block, invocation, arg_options)¶
- Signal Name:
handle-get-secret-configuration
- Flags:
- Parameters:
block (
UDisks.Block
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the GetSecretConfiguration() 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.Block.complete_get_secret_configuration
() 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_METHOD
error is returned.
- UDisks.Block.signals.handle_open_device(block, invocation, fd_list, arg_mode, arg_options)¶
- Signal Name:
handle-open-device
- Flags:
- Parameters:
block (
UDisks.Block
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.fd_list (
Gio.UnixFDList
orNone
) – AGio.UnixFDList
orNone
.arg_mode (
str
) – Argument passed by remote caller.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the OpenDevice() 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.Block.complete_open_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_METHOD
error is returned.New in version 2.7.3.
- UDisks.Block.signals.handle_open_for_backup(block, invocation, fd_list, arg_options)¶
- Signal Name:
handle-open-for-backup
- Flags:
- Parameters:
block (
UDisks.Block
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.fd_list (
Gio.UnixFDList
orNone
) – AGio.UnixFDList
orNone
.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the OpenForBackup() 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.Block.complete_open_for_backup
() 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_METHOD
error is returned.
- UDisks.Block.signals.handle_open_for_benchmark(block, invocation, fd_list, arg_options)¶
- Signal Name:
handle-open-for-benchmark
- Flags:
- Parameters:
block (
UDisks.Block
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.fd_list (
Gio.UnixFDList
orNone
) – AGio.UnixFDList
orNone
.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the OpenForBenchmark() 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.Block.complete_open_for_benchmark
() 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_METHOD
error is returned.
- UDisks.Block.signals.handle_open_for_restore(block, invocation, fd_list, arg_options)¶
- Signal Name:
handle-open-for-restore
- Flags:
- Parameters:
block (
UDisks.Block
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.fd_list (
Gio.UnixFDList
orNone
) – AGio.UnixFDList
orNone
.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the OpenForRestore() 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.Block.complete_open_for_restore
() 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_METHOD
error is returned.
- UDisks.Block.signals.handle_remove_configuration_item(block, invocation, arg_item, arg_options)¶
- Signal Name:
handle-remove-configuration-item
- Flags:
- Parameters:
block (
UDisks.Block
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_item (
GLib.Variant
) – Argument passed by remote caller.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the RemoveConfigurationItem() 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.Block.complete_remove_configuration_item
() 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_METHOD
error is returned.
- UDisks.Block.signals.handle_rescan(block, invocation, arg_options)¶
- Signal Name:
handle-rescan
- Flags:
- Parameters:
block (
UDisks.Block
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the Rescan() 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.Block.complete_rescan
() 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_METHOD
error is returned.
- UDisks.Block.signals.handle_update_configuration_item(block, invocation, arg_old_item, arg_new_item, arg_options)¶
- Signal Name:
handle-update-configuration-item
- Flags:
- Parameters:
block (
UDisks.Block
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_old_item (
GLib.Variant
) – Argument passed by remote caller.arg_new_item (
GLib.Variant
) – Argument passed by remote caller.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the UpdateConfigurationItem() 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.Block.complete_update_configuration_item
() 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_METHOD
error is returned.
Property Details¶
- UDisks.Block.props.configuration¶
- Name:
configuration
- Type:
- Default Value:
- Flags:
Represents the D-Bus property “Configuration”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.crypto_backing_device¶
-
Represents the D-Bus property “CryptoBackingDevice”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.device¶
-
Represents the D-Bus property “Device”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.device_number¶
-
Represents the D-Bus property “DeviceNumber”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.drive¶
-
Represents the D-Bus property “Drive”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.hint_auto¶
-
Represents the D-Bus property “HintAuto”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.hint_icon_name¶
-
Represents the D-Bus property “HintIconName”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.hint_ignore¶
-
Represents the D-Bus property “HintIgnore”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.hint_name¶
-
Represents the D-Bus property “HintName”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.hint_partitionable¶
-
Represents the D-Bus property “HintPartitionable”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.hint_symbolic_icon_name¶
-
Represents the D-Bus property “HintSymbolicIconName”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.hint_system¶
-
Represents the D-Bus property “HintSystem”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.id¶
-
Represents the D-Bus property “Id”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.id_label¶
-
Represents the D-Bus property “IdLabel”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.id_type¶
-
Represents the D-Bus property “IdType”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.id_usage¶
-
Represents the D-Bus property “IdUsage”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.id_uuid¶
-
Represents the D-Bus property “IdUUID”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.id_version¶
-
Represents the D-Bus property “IdVersion”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.mdraid¶
-
Represents the D-Bus property “MDRaid”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.mdraid_member¶
-
Represents the D-Bus property “MDRaidMember”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.preferred_device¶
-
Represents the D-Bus property “PreferredDevice”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.read_only¶
-
Represents the D-Bus property “ReadOnly”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.size¶
-
Represents the D-Bus property “Size”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.symlinks¶
-
Represents the D-Bus property “Symlinks”.
Since the D-Bus property for this
GObject.Object
property 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.Block.props.userspace_mount_options¶
-
Represents the D-Bus property “UserspaceMountOptions”.
Since the D-Bus property for this
GObject.Object
property 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.