Top | ![]() |
![]() |
![]() |
![]() |
ESourceResourceESourceResource — ESource extension for a remote resource |
const |
e_source_resource_get_identity () |
|
e_source_resource_dup_identity () |
|
e_source_resource_set_identity () |
The ESourceResource extension holds the server-assigned identity of a remote calendar, address book, or whatever else an ESource can represent.
This extension is typically used by an ECollectionBackend to note a
server-assigned resource identity in an ESource. Then in a later session,
after querying the server for available resources, a resource identity can
be paired with the same ESource
Access the extension as follows:
#include <libedataserver/libedataserver.h> ESourceResource *extension; extension = e_source_get_extension (source, E_SOURCE_EXTENSION_RESOURCE);
constgchar * e_source_resource_get_identity (ESourceResource *extension
);
Returns the server-assigned identity of the remote resource associated
with the ESource to which extension
belongs.
Since: 3.6
gchar * e_source_resource_dup_identity (ESourceResource *extension
);
Thread-safe variation of e_source_resource_get_identity()
.
Use this function when accessing extension
from multiple threads.
The returned string should be freed with g_free()
Since: 3.6
void e_source_resource_set_identity (ESourceResource *extension
,const
);gchar *identity
Sets the server-assigned identity of the remote resource associated with
the ESource to which extension
belongs.
The internal copy of identity
is automatically stripped of leading and
trailing whitespace. If the resulting string is empty, NULL
Since: 3.6
#define E_SOURCE_EXTENSION_RESOURCE "Resource"
Pass this extension name to e_source_get_extension()
to access
ESourceResource. This is also used as a group name in key files.
Since: 3.6
struct ESourceResource { };
Contains only private data that should be read and manipulated using the functions below.
Since: 3.6