UDisks.Loop¶
- Implementations:
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Autoclear |
||
r/w |
BackingFile |
||
r/w |
SetupByUID |
Signals¶
Name |
Short Description |
---|---|
Signal emitted when a remote caller is invoking the Delete() D-Bus method. |
|
Signal emitted when a remote caller is invoking the SetAutoclear() D-Bus method. |
Fields¶
None
Class Details¶
- class UDisks.Loop¶
- Bases:
- Structure:
Abstract interface type for the D-Bus interface org.freedesktop.UDisks2.Loop.
- classmethod interface_info()¶
- Returns:
A
Gio.DBusInterfaceInfo
. Do not free.- Return type:
Gets a machine-readable description of the org.freedesktop.UDisks2.Loop 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.Loop
interface for a concrete class. The properties are overridden in the order they are defined.
- call_delete(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 Delete() 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.Loop.call_delete_finish
() to get the result of the operation.See
UDisks.Loop.call_delete_sync
() for the synchronous, blocking version of this method.
- call_delete_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.Loop.call_delete
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Loop.call_delete
().
- call_delete_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 Delete() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Loop.call_delete
() for the asynchronous version of this method.
- call_set_autoclear(arg_value, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_value (
bool
) – 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 SetAutoclear() 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.Loop.call_set_autoclear_finish
() to get the result of the operation.See
UDisks.Loop.call_set_autoclear_sync
() for the synchronous, blocking version of this method.
- call_set_autoclear_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.Loop.call_set_autoclear
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Loop.call_set_autoclear
().
- call_set_autoclear_sync(arg_value, arg_options, cancellable)¶
- Parameters:
arg_value (
bool
) – 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 SetAutoclear() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Loop.call_set_autoclear
() for the asynchronous version of this method.
- complete_delete(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the Delete() 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_autoclear(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the SetAutoclear() 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_delete(invocation, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.Loop
::handle-delete
signal.
- do_handle_set_autoclear(invocation, arg_value, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_value (
bool
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.Loop
::handle-set-autoclear
signal.
Signal Details¶
- UDisks.Loop.signals.handle_delete(loop, invocation, arg_options)¶
- Signal Name:
handle-delete
- Flags:
- Parameters:
loop (
UDisks.Loop
) – 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 Delete() 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.Loop.complete_delete
() 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.Loop.signals.handle_set_autoclear(loop, invocation, arg_value, arg_options)¶
- Signal Name:
handle-set-autoclear
- Flags:
- Parameters:
loop (
UDisks.Loop
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_value (
bool
) – 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 SetAutoclear() 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.Loop.complete_set_autoclear
() 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.Loop.props.autoclear¶
-
Represents the D-Bus property “Autoclear”.
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.Loop.props.backing_file¶
-
Represents the D-Bus property “BackingFile”.
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.Loop.props.setup_by_uid¶
-
Represents the D-Bus property “SetupByUID”.
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.