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:
Goa.Client
is used for accessing the GNOME Online Accounts service from a client program.- classmethod new(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – Function that will be called when the result is ready.
Asynchronously gets a
Goa.Client
. When the operation is finished, callback will be invoked in thethread-default main loop
of the thread you are calling this method from.
- classmethod new_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – AGio.AsyncResult
.- Raises:
- Returns:
A
Goa.Client
orNone
if error is set. Free withGObject.Object.unref
() when done with it.- Return type:
Finishes an operation started with
Goa.Client.new
().
- classmethod new_sync(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.- Raises:
- Returns:
A
Goa.Client
orNone
if error is set. Free withGObject.Object.unref
() when done with it.- Return type:
Synchronously gets a
Goa.Client
for the local system.
- get_accounts()¶
- Returns:
A list of
Goa.Object
instances that must be freed with g_list_free() after each element has been freed withGObject.Object.unref
().- Return type:
Gets all accounts that self knows about. The result is a list of
Goa.Object
instances where each object at least has anGoa.Account
interface (that can be obtained via theGoa.Object.get_account
() method) but may also implement other interfaces such asGoa.Mail
orGoa.Files
.
- get_manager()¶
- Returns:
A
Goa.Manager
orNone
. Do not free, the returned object belongs to self.- Return type:
Goa.Manager
orNone
Gets the
Goa.Manager
for self, if any.
- get_object_manager()¶
- Returns:
A
Gio.DBusObjectManager
. Do not free, the instance is owned by self.- Return type:
Gets the
Gio.DBusObjectManager
used by self.
- lookup_by_id(id)¶
- Parameters:
id (
str
) – The ID to look for.- Returns:
A
Goa.Object
. Free the returned object withGObject.Object.unref
().- Return type:
Finds and returns the
Goa.Object
instance whose ‘“Id” [gdbus-property-org-gnome-OnlineAccounts-Account.Id]’ D-Bus property matches id.New in version 3.6.
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
) – TheGoa.Object
for the added account.
Emitted when object has been added. See
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
) – TheGoa.Object
for 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
) – TheGoa.Object
for the removed account.
Emitted when object has been removed.
Property Details¶
- Goa.Client.props.object_manager¶
- Name:
object-manager
- Type:
- Default Value:
- Flags:
The
Gio.DBusObjectManager
used by theGoa.Client
instance.