Goa.Client¶
- Subclasses:
 None
Methods¶
- Inherited:
 GObject.Object (37), Gio.AsyncInitable (4), Gio.Initable (2)
- Structs:
 
class  | 
  | 
class  | 
  | 
class  | 
  | 
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r  | 
The   | 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Emitted when object has been added.  | 
|
Emitted when something on object changes.  | 
|
Emitted when object has been removed.  | 
Fields¶
- Inherited:
 
Class Details¶
- class Goa.Client(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
[class`Goa`.Client] is used for accessing the GNOME Online Accounts service from a client program.
- classmethod new(cancellable, callback, *user_data)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGCancellablecallback (
Gio.AsyncReadyCallbackorNone) – A callback to call when the operation is complete
Asynchronously gets a [class`Goa`.Client].
This is a failable asynchronous constructor - when the client is ready, callback will be invoked and you can use [ctor`Goa`.Client.new_finish] to get the result.
- classmethod new_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – AGAsyncResult- Raises:
 - Returns:
 A
GoaClient, orNonewith error set- Return type:
 
Finishes an operation started with [func`Goa`.Client.new].
- classmethod new_sync(cancellable)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGCancellable- Raises:
 - Returns:
 A
GoaClient, orNonewith error set- Return type:
 
Synchronously gets a [class`Goa`.Client].
- get_accounts()¶
 - Returns:
 A list of
GoaObjectinstances- Return type:
 
Gets all accounts that self knows about.
The result is a list of [iface`Goa`.Object] instances where each object at least has an [iface`Goa`.Account] interface (that can be obtained via the [method`Goa`.Object.get_account] method) but may also implement other interfaces such as [iface`Goa`.Mail] or [iface`Goa`.Files].
- get_manager()¶
 - Returns:
 A
GoaManagerorNone- Return type:
 Goa.ManagerorNone
Gets the [iface`Goa`.Manager] for self, if any.
- get_object_manager()¶
 - Returns:
 A
GDBusObjectManager- Return type:
 
Gets the [iface`Gio`.DBusObjectManager] used by self.
Signal Details¶
- Goa.Client.signals.account_added(client, object)¶
 - Signal Name:
 account-added- Flags:
 - Parameters:
 client (
Goa.Client) – The object which received the signalobject (
Goa.Object) – TheGoaObjectfor the added account
Emitted when object has been added. See [method`Goa`.Client.get_accounts] for information about how to use this object.
- Goa.Client.signals.account_changed(client, object)¶
 - Signal Name:
 account-changed- Flags:
 - Parameters:
 client (
Goa.Client) – The object which received the signalobject (
Goa.Object) – TheGoaObjectfor the account with changes
Emitted when something on object changes.
- Goa.Client.signals.account_removed(client, object)¶
 - Signal Name:
 account-removed- Flags:
 - Parameters:
 client (
Goa.Client) – The object which received the signalobject (
Goa.Object) – TheGoaObjectfor the removed account
Emitted when object has been removed.
Property Details¶
- Goa.Client.props.object_manager¶
 - Name:
 object-manager- Type:
 - Default Value:
 - Flags:
 
The [iface`Gio`.DBusObjectManager] used by the [class`Goa`.Client] instance.