UDisks.Swapspace¶
- Implementations:
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Active |
Signals¶
Name |
Short Description |
---|---|
Signal emitted when a remote caller is invoking the SetLabel() D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘SetUUID() [gdbus-method-org-freedesktop-UDisks2-Swapspace.SetUUID]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the Start() D-Bus method. |
|
Signal emitted when a remote caller is invoking the Stop() D-Bus method. |
Fields¶
None
Class Details¶
- class UDisks.Swapspace¶
- Bases:
- Structure:
Abstract interface type for the D-Bus interface org.freedesktop.UDisks2.Swapspace.
- classmethod interface_info()¶
- Returns:
A
Gio.DBusInterfaceInfo
. Do not free.- Return type:
Gets a machine-readable description of the org.freedesktop.UDisks2.Swapspace 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.Swapspace
interface for a concrete class. The properties are overridden in the order they are defined.
- call_set_label(arg_label, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_label (
str
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the SetLabel() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callUDisks.Swapspace.call_set_label_finish
() to get the result of the operation.See
UDisks.Swapspace.call_set_label_sync
() for the synchronous, blocking version of this method.
- call_set_label_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.Swapspace.call_set_label
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Swapspace.call_set_label
().
- call_set_label_sync(arg_label, arg_options, cancellable)¶
- Parameters:
arg_label (
str
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the SetLabel() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Swapspace.call_set_label
() for the asynchronous version of this method.
- call_set_uuid(arg_uuid, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_uuid (
str
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the ‘SetUUID() [gdbus-method-org-freedesktop-UDisks2-Swapspace.SetUUID]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callUDisks.Swapspace.call_set_uuid_finish
() to get the result of the operation.See
UDisks.Swapspace.call_set_uuid_sync
() for the synchronous, blocking version of this method.New in version 2.10.0.
- call_set_uuid_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.Swapspace.call_set_uuid
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Swapspace.call_set_uuid
().New in version 2.10.0.
- call_set_uuid_sync(arg_uuid, arg_options, cancellable)¶
- Parameters:
arg_uuid (
str
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘SetUUID() [gdbus-method-org-freedesktop-UDisks2-Swapspace.SetUUID]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Swapspace.call_set_uuid
() for the asynchronous version of this method.New in version 2.10.0.
- call_start(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 Start() 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.Swapspace.call_start_finish
() to get the result of the operation.See
UDisks.Swapspace.call_start_sync
() for the synchronous, blocking version of this method.
- call_start_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.Swapspace.call_start
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Swapspace.call_start
().
- call_start_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 Start() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Swapspace.call_start
() for the asynchronous version of this method.
- call_stop(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 Stop() 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.Swapspace.call_stop_finish
() to get the result of the operation.See
UDisks.Swapspace.call_stop_sync
() for the synchronous, blocking version of this method.
- call_stop_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.Swapspace.call_stop
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.Swapspace.call_stop
().
- call_stop_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 Stop() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.Swapspace.call_stop
() for the asynchronous version of this method.
- complete_set_label(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the SetLabel() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- complete_set_uuid(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the ‘SetUUID() [gdbus-method-org-freedesktop-UDisks2-Swapspace.SetUUID]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
New in version 2.10.0.
- complete_start(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the Start() 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_stop(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the Stop() 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_set_label(invocation, arg_label, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_label (
str
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.Swapspace
::handle-set-label
signal.
- do_handle_set_uuid(invocation, arg_uuid, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_uuid (
str
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.Swapspace
::handle-set-uuid
signal.
- do_handle_start(invocation, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.Swapspace
::handle-start
signal.
- do_handle_stop(invocation, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.Swapspace
::handle-stop
signal.
Signal Details¶
- UDisks.Swapspace.signals.handle_set_label(swapspace, invocation, arg_label, arg_options)¶
- Signal Name:
handle-set-label
- Flags:
- Parameters:
swapspace (
UDisks.Swapspace
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_label (
str
) – Argument passed by remote caller.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_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 SetLabel() D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.Swapspace.complete_set_label
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.
- UDisks.Swapspace.signals.handle_set_uuid(swapspace, invocation, arg_uuid, arg_options)¶
- Signal Name:
handle-set-uuid
- Flags:
- Parameters:
swapspace (
UDisks.Swapspace
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_uuid (
str
) – Argument passed by remote caller.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_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 ‘SetUUID() [gdbus-method-org-freedesktop-UDisks2-Swapspace.SetUUID]’ D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.Swapspace.complete_set_uuid
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.New in version 2.10.0.
- UDisks.Swapspace.signals.handle_start(swapspace, invocation, arg_options)¶
- Signal Name:
handle-start
- Flags:
- Parameters:
swapspace (
UDisks.Swapspace
) – 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 Start() 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.Swapspace.complete_start
() 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.Swapspace.signals.handle_stop(swapspace, invocation, arg_options)¶
- Signal Name:
handle-stop
- Flags:
- Parameters:
swapspace (
UDisks.Swapspace
) – 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 Stop() 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.Swapspace.complete_stop
() 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.Swapspace.props.active¶
-
Represents the D-Bus property “Active”.
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.