UDisks.ObjectManagerClient¶
- Subclasses:
None
Methods¶
- Inherited:
Gio.DBusObjectManagerClient (10), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusObjectManager (4), Gio.Initable (2)
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
Virtual Methods¶
Properties¶
- Inherited:
Signals¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class UDisks.ObjectManagerClient(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
UDisks.ObjectManagerClientstructure contains only private data and should only be accessed using the provided API.- classmethod get_proxy_type(manager, object_path, interface_name, user_data)¶
- Parameters:
manager (
Gio.DBusObjectManagerClient) – AGio.DBusObjectManagerClient.object_path (
str) – The object path of the remote object (unused).interface_name (
strorNone) – Interface name of the remote object orNoneto get the object proxyGObject.GType.
- Returns:
A
Gio.DBusProxyderivedGObject.GTypeif interface_name is notNone, otherwise theGObject.GTypeforUDisks.ObjectProxy.- Return type:
A
Gio.DBusProxyTypeFuncthat maps interface_name to the generatedGio.DBusObjectProxyderived andGio.DBusProxyderived types.
- classmethod new(connection, flags, name, object_path, cancellable, callback, *user_data)¶
- Parameters:
connection (
Gio.DBusConnection) – AGio.DBusConnection.flags (
Gio.DBusObjectManagerClientFlags) – Flags from theGio.DBusObjectManagerClientFlagsenumeration.name (
strorNone) – A bus name (well-known or unique) orNoneif connection is not a message bus connection.object_path (
str) – An object path.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied.
Asynchronously creates
Gio.DBusObjectManagerClientusingUDisks.ObjectManagerClient.get_proxy_type() as theGio.DBusProxyTypeFunc. SeeGio.DBusObjectManagerClient.new() for more details.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.ObjectManagerClient.new_finish() to get the result of the operation.See
UDisks.ObjectManagerClient.new_sync() for the synchronous, blocking version of this constructor.
- classmethod new_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.ObjectManagerClient.new().- Raises:
- Returns:
The constructed object manager client or
Noneif error is set.- Return type:
Finishes an operation started with
UDisks.ObjectManagerClient.new().
- classmethod new_for_bus(bus_type, flags, name, object_path, cancellable, callback, *user_data)¶
- Parameters:
bus_type (
Gio.BusType) – AGio.BusType.flags (
Gio.DBusObjectManagerClientFlags) – Flags from theGio.DBusObjectManagerClientFlagsenumeration.name (
str) – A bus name (well-known or unique).object_path (
str) – An object path.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied.
Like
UDisks.ObjectManagerClient.new() but takes aGio.BusTypeinstead of aGio.DBusConnection.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.ObjectManagerClient.new_for_bus_finish() to get the result of the operation.See
UDisks.ObjectManagerClient.new_for_bus_sync() for the synchronous, blocking version of this constructor.
- classmethod new_for_bus_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toUDisks.ObjectManagerClient.new_for_bus().- Raises:
- Returns:
The constructed object manager client or
Noneif error is set.- Return type:
Finishes an operation started with
UDisks.ObjectManagerClient.new_for_bus().
- classmethod new_for_bus_sync(bus_type, flags, name, object_path, cancellable)¶
- Parameters:
bus_type (
Gio.BusType) – AGio.BusType.flags (
Gio.DBusObjectManagerClientFlags) – Flags from theGio.DBusObjectManagerClientFlagsenumeration.name (
str) – A bus name (well-known or unique).object_path (
str) – An object path.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
The constructed object manager client or
Noneif error is set.- Return type:
Like
UDisks.ObjectManagerClient.new_sync() but takes aGio.BusTypeinstead of aGio.DBusConnection.The calling thread is blocked until a reply is received.
See
UDisks.ObjectManagerClient.new_for_bus() for the asynchronous version of this constructor.
- classmethod new_sync(connection, flags, name, object_path, cancellable)¶
- Parameters:
connection (
Gio.DBusConnection) – AGio.DBusConnection.flags (
Gio.DBusObjectManagerClientFlags) – Flags from theGio.DBusObjectManagerClientFlagsenumeration.name (
strorNone) – A bus name (well-known or unique) orNoneif connection is not a message bus connection.object_path (
str) – An object path.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
The constructed object manager client or
Noneif error is set.- Return type:
Synchronously creates
Gio.DBusObjectManagerClientusingUDisks.ObjectManagerClient.get_proxy_type() as theGio.DBusProxyTypeFunc. SeeGio.DBusObjectManagerClient.new_sync() for more details.The calling thread is blocked until a reply is received.
See
UDisks.ObjectManagerClient.new() for the asynchronous version of this constructor.