UDisks.BlockProxy

g GObject.GInterface GObject.GInterface Gio.AsyncInitable Gio.AsyncInitable GObject.GInterface->Gio.AsyncInitable Gio.DBusInterface Gio.DBusInterface GObject.GInterface->Gio.DBusInterface Gio.Initable Gio.Initable GObject.GInterface->Gio.Initable UDisks.Block UDisks.Block GObject.GInterface->UDisks.Block GObject.Object GObject.Object Gio.DBusProxy Gio.DBusProxy GObject.Object->Gio.DBusProxy Gio.AsyncInitable->Gio.DBusProxy Gio.DBusInterface->Gio.DBusProxy UDisks.BlockProxy UDisks.BlockProxy Gio.DBusProxy->UDisks.BlockProxy Gio.Initable->Gio.DBusProxy UDisks.Block->UDisks.BlockProxy

Subclasses:None

Methods

Inherited:Gio.DBusProxy (25), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusInterface (3), Gio.Initable (2), UDisks.Block (42)
Structs:GObject.ObjectClass (5)
class new (connection, flags, name, object_path, cancellable, callback, *user_data)
class new_finish (res)
class new_for_bus (bus_type, flags, name, object_path, cancellable, callback, *user_data)
class new_for_bus_finish (res)
class new_for_bus_sync (bus_type, flags, name, object_path, cancellable)
class new_sync (connection, flags, name, object_path, cancellable)

Properties

Inherited:Gio.DBusProxy (9), UDisks.Block (25)

Fields

Inherited:Gio.DBusProxy (2), GObject.Object (1), UDisks.Block (10)
Name Type Access Description
parent_instance Gio.DBusProxy r  

Class Details

class UDisks.BlockProxy(**kwargs)
Bases:Gio.DBusProxy, UDisks.Block
Abstract:No
Structure:UDisks.BlockProxyClass

The UDisks.BlockProxy structure contains only private data and should only be accessed using the provided API.

classmethod new(connection, flags, name, object_path, cancellable, callback, *user_data)[source]
Parameters:

Asynchronously creates a proxy for the D-Bus interface org.freedesktop.UDisks2.Block. See Gio.DBusProxy.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. You can then call UDisks.BlockProxy.new_finish() to get the result of the operation.

See UDisks.BlockProxy.new_sync() for the synchronous, blocking version of this constructor.

classmethod new_finish(res)[source]
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.BlockProxy.new().
Raises:GLib.Error
Returns:The constructed proxy object or None if error is set.
Return type:UDisks.BlockProxy

Finishes an operation started with UDisks.BlockProxy.new().

classmethod new_for_bus(bus_type, flags, name, object_path, cancellable, callback, *user_data)[source]
Parameters:

Like UDisks.BlockProxy.new() but takes a Gio.BusType instead of a Gio.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. You can then call UDisks.BlockProxy.new_for_bus_finish() to get the result of the operation.

See UDisks.BlockProxy.new_for_bus_sync() for the synchronous, blocking version of this constructor.

classmethod new_for_bus_finish(res)[source]
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.BlockProxy.new_for_bus().
Raises:GLib.Error
Returns:The constructed proxy object or None if error is set.
Return type:UDisks.BlockProxy

Finishes an operation started with UDisks.BlockProxy.new_for_bus().

classmethod new_for_bus_sync(bus_type, flags, name, object_path, cancellable)[source]
Parameters:
Raises:

GLib.Error

Returns:

The constructed proxy object or None if error is set.

Return type:

UDisks.BlockProxy

Like UDisks.BlockProxy.new_sync() but takes a Gio.BusType instead of a Gio.DBusConnection.

The calling thread is blocked until a reply is received.

See UDisks.BlockProxy.new_for_bus() for the asynchronous version of this constructor.

classmethod new_sync(connection, flags, name, object_path, cancellable)[source]
Parameters:
Raises:

GLib.Error

Returns:

The constructed proxy object or None if error is set.

Return type:

UDisks.BlockProxy

Synchronously creates a proxy for the D-Bus interface org.freedesktop.UDisks2.Block. See Gio.DBusProxy.new_sync() for more details.

The calling thread is blocked until a reply is received.

See UDisks.BlockProxy.new() for the asynchronous version of this constructor.