| Top |
GoaClient is used for accessing the GNOME Online Accounts service from a client program.
void goa_client_new (GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously gets a GoaClient. When the operation is
finished, callback
will be invoked in the
cancellable |
A GCancellable or |
|
callback |
Function that will be called when the result is ready. |
|
user_data |
Data to pass to |
GoaClient * goa_client_new_finish (GAsyncResult *res,GError **error);
Finishes an operation started with goa_client_new().
GoaClient * goa_client_new_sync (GCancellable *cancellable,GError **error);
Synchronously gets a GoaClient for the local system.
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
[allow-none] |
GoaManager *
goa_client_get_manager (GoaClient *self);
Gets the GoaManager for self
, if any.
A GoaManager or NULL. Do not
free, the returned object belongs to self
.
[nullable][transfer none]
GList *
goa_client_get_accounts (GoaClient *self);
Gets all accounts that self
knows about. The result is a list of
GoaObject instances where each object at least has an GoaAccount
interface (that can be obtained via the goa_object_get_account()
method) but may also implement other interfaces such as
GoaMail or GoaFiles.
A list of
GoaObject instances that must be freed with g_list_free() after
each element has been freed with g_object_unref().
[transfer full][element-type GoaObject]
GDBusObjectManager *
goa_client_get_object_manager (GoaClient *self);
Gets the GDBusObjectManager used by self
.
typedef struct _GoaClient GoaClient;
The GoaClient structure contains only private data and should only be accessed using the provided API.
“object-manager” property“object-manager” GDBusObjectManager *
The GDBusObjectManager used by the GoaClient instance.
Owner: GoaClient
Flags: Read
“account-added” signalvoid user_function (GoaClient *client, GoaObject *object, gpointer user_data)
Emitted when object
has been added. See
goa_client_get_accounts() for information about how to use this
object.
Flags: Run Last
“account-changed” signalvoid user_function (GoaClient *client, GoaObject *object, gpointer user_data)
Emitted when something on object
changes.
Flags: Run Last