Top |
GStrv | always-writeable-properties | Read |
FolksMaybeBool | can-add-personas | Read |
FolksMaybeBool | can-alias-personas | Read |
FolksMaybeBool | can-group-personas | Read |
FolksMaybeBool | can-remove-personas | Read |
gboolean | is-prepared | Read |
gboolean | is-quiescent | Read |
GeeMap * | personas | Read |
ESource * | source | Read / Write / Construct Only |
gchar * | type-id | Read |
The persona store will contain EdsfPersonas for each contact in the address book it represents.
#define EDSF_TYPE_PERSONA_STORE (edsf_persona_store_get_type ())
The type for EdsfPersonaStore.
EdsfPersonaStore *
edsf_persona_store_new (ESource *s
);
edsf_persona_store_new
has been deprecated since version 0.7.2 and should not be used in newly-written code.
No replacement specified.
Create a new PersonaStore.
Create a new persona store to store the EdsfPersonas for the contacts
Since: 0.6.0
EdsfPersonaStore * edsf_persona_store_new_with_source_registry (ESourceRegistry *r
,ESource *s
);
Create a new PersonaStore.
Create a new persona store to store the EdsfPersonas for the contacts in s
. Passing a re-used source registry to the constructor (compared to the old EdsfPersonaStore constructor) saves a lot of time and D-Bus round trips.
r |
. the EDS source registry giving access to all EDS sources . |
[in] |
s |
. the EDS source being represented by the persona store . |
[in] |
Since: 0.7.2
ESource *
edsf_persona_store_get_source (EdsfPersonaStore *self
);
Get and return the current value of the "source" property.
The EDS ESource associated with this persona store.
Since: 0.6.6
void edsf_persona_store_create_address_book (const gchar *id
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
Create a new address book with the given ID.
A new Address Book will be created with the given ID and the EDS SourceRegistry will notice the new Address Book source and will emit source_added with the new ESource object which Folks.Backends.Eds.Backend will then create a new EdsfPersonaStore from.
GError will be returned in error
if an error occurred while creating or committing to the ESourceRegistry
See also: edsf_persona_store_create_address_book_finish()
id |
. the name and id for the new address book . |
[in] |
_callback_ |
callback to call when the request is satisfied. |
[scope async] |
_user_data_ |
the data to pass to |
[closure] |
Since: 0.9.0
void edsf_persona_store_create_address_book_finish (GAsyncResult *_res_
,GError **error
);
Create a new address book with the given ID.
A new Address Book will be created with the given ID and the EDS SourceRegistry will notice the new Address Book source and will emit source_added with the new ESource object which Folks.Backends.Eds.Backend will then create a new EdsfPersonaStore from.
GError will be returned in error
if an error occurred while creating or committing to the ESourceRegistry
See also: edsf_persona_store_create_address_book()
Since: 0.9.0
void edsf_persona_store_remove_address_book (EdsfPersonaStore *store
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
Remove a persona store's address book permamently.
This is a utility function to remove an EdsfPersonaStore's address book from the disk permanently. This simply wraps the EDS API to do the same.
GError will be returned in error
if an error occurred in e_source_remove()
See also: edsf_persona_store_remove_address_book_finish()
store |
. the PersonaStore to delete the address book for. . |
[in] |
_callback_ |
callback to call when the request is satisfied. |
[scope async] |
_user_data_ |
the data to pass to |
[closure] |
Since: 0.9.0
void edsf_persona_store_remove_address_book_finish (GAsyncResult *_res_
,GError **error
);
Remove a persona store's address book permamently.
This is a utility function to remove an EdsfPersonaStore's address book from the disk permanently. This simply wraps the EDS API to do the same.
GError will be returned in error
if an error occurred in e_source_remove()
See also: edsf_persona_store_remove_address_book()
Since: 0.9.0
struct EdsfPersonaStore;
A persona store representing a single EDS address book.
The persona store will contain EdsfPersonas for each contact in the address book it represents.
struct EdsfPersonaStoreClass { FolksPersonaStoreClass parent_class; };
The class structure for EDSF_TYPE_PERSONA_STORE
. All the fields in this structure are private and should never be accessed directly.
“always-writeable-properties”
property“always-writeable-properties” GStrv
always-writeable-properties.
Flags: Read
“can-add-personas”
property “can-add-personas” FolksMaybeBool
can-add-personas.
Flags: Read
Default value: FOLKS_MAYBE_BOOL_UNSET
“can-alias-personas”
property “can-alias-personas” FolksMaybeBool
can-alias-personas.
Flags: Read
Default value: FOLKS_MAYBE_BOOL_UNSET
“can-group-personas”
property “can-group-personas” FolksMaybeBool
can-group-personas.
Flags: Read
Default value: FOLKS_MAYBE_BOOL_UNSET
“can-remove-personas”
property “can-remove-personas” FolksMaybeBool
can-remove-personas.
Flags: Read
Default value: FOLKS_MAYBE_BOOL_UNSET
“source”
property “source” ESource *
The EDS ESource associated with this persona store.
Flags: Read / Write / Construct Only
Since: 0.6.6