![]() |
![]() |
![]() |
Evolution-Data-Server Manual: Utilities (libedataserver) | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
ESourceGoaESourceGoa — ESource extension for GNOME Online Accounts |
#include <libedataserver/libedataserver.h> struct ESourceGoa; #define E_SOURCE_EXTENSION_GOA const gchar * e_source_goa_get_account_id (ESourceGoa *extension
); gchar * e_source_goa_dup_account_id (ESourceGoa *extension
); void e_source_goa_set_account_id (ESourceGoa *extension
,const gchar *account_id
);
The ESourceGoa extension associates an ESource with a GoaAccount. This extension is usually found in a top-level ESource, with various mail, calendar and address book data sources as children.
Access the extension as follows:
1 2 3 4 5 |
#include <libedataserver/e-source-goa.h> ESourceGoa *extension; extension = e_source_get_extension (source, E_SOURCE_EXTENSION_GOA); |
struct ESourceGoa;
Contains only private data that should be read and manipulated using the functions below.
Since 3.6
#define E_SOURCE_EXTENSION_GOA "GNOME Online Accounts"
Pass this extension name to e_source_get_extension()
to access
ESourceGoa. This is also used as a group name in key files.
Since 3.6
const gchar * e_source_goa_get_account_id (ESourceGoa *extension
);
Returns the identifier string of the GNOME Online Account associated
with the ESource to which extension
belongs.
|
an ESourceGoa |
Returns : |
the associated GNOME Online Account ID |
Since 3.6
gchar * e_source_goa_dup_account_id (ESourceGoa *extension
);
Thread-safe variation of e_source_goa_get_account_id()
.
Use this function when accessing extension
from multiple threads.
The returned string should be freed with g_free()
when no longer needed.
|
an ESourceGoa |
Returns : |
a newly-allocated copy of "account-id" |
Since 3.6
void e_source_goa_set_account_id (ESourceGoa *extension
,const gchar *account_id
);
Sets the identifier string of the GNOME Online Account associated
with the ESource to which extension
belongs.
The internal copy of account_id
is automatically stripped of leading
and trailing whitespace. If the resulting string is empty, NULL
is set
instead.
|
an ESourceGoa |
|
the associated GNOME Online Account ID, or NULL . [allow-none]
|
Since 3.6