Top |
TpfPersonaStoreTpfPersonaStore — A persona store which is associated with a single Telepathy account. It will create TpfPersonas for each of the contacts in the account's contact list. |
TpAccount * | account | Read / Write / Construct Only |
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 |
GeeSet * | supported-fields | Read |
gchar * | type-id | Read |
User must define contact features it wants on the TpSimpleClientFactory of the default TpAccountManager returned by tp_account_manager_dup()
*before* preparing telepathy stores. Note that this is a behaviour change since 0.7.0, folks won't force preparing any feature anymore.
#define TPF_TYPE_PERSONA_STORE (tpf_persona_store_get_type ())
The type for TpfPersonaStore.
TpfPersonaStore *
tpf_persona_store_new (TpAccount *account
);
Create a new PersonaStore.
Create a new persona store to store the TpfPersonas for the contacts in the Telepathy account provided by account
.
TpAccount *
tpf_persona_store_get_account (TpfPersonaStore *self
);
Get and return the current value of the "basis account" property.
The Telepathy account this store is based upon.
GeeMap *
tpf_persona_store_list_persona_stores (void
);
Get a map of all the currently constructed TpfPersonaStores.
If a FolksBackendStore has been prepared, this map will be complete, containing every store known to the Telepathy account manager. If no FolksBackendStore has been prepared, this map will only contain the stores which have been created by calling tpf_persona_store_dup_for_account()
.
This map is read-only. Use FolksBackendStore or tpf_persona_store_dup_for_account()
to add stores.
Since: 0.6.6
TpfPersonaStore *
tpf_persona_store_dup_for_account (TpAccount *account
);
Look up a TpfPersonaStore by its TpAccount.
If found, a new reference to the persona store will be returned. If not found, a new TpfPersonaStore will be created for the account.
See the documentation for tpf_persona_store_list_persona_stores()
for information on the lifecycle of these stores when a FolksBackendStore is and is not present.
Since: 0.6.6
struct TpfPersonaStore;
A persona store which is associated with a single Telepathy account. It will create TpfPersonas for each of the contacts in the account's contact list.
User must define contact features it wants on the TpSimpleClientFactory of the default TpAccountManager returned by tp_account_manager_dup()
*before* preparing telepathy stores. Note that this is a behaviour change since 0.7.0, folks won't force preparing any feature anymore.
struct TpfPersonaStoreClass { FolksPersonaStoreClass parent_class; };
The class structure for TPF_TYPE_PERSONA_STORE
. All the fields in this structure are private and should never be accessed directly.
“account”
property“account” TpAccount *
Telepathy account this store is based upon.
Flags: Read / Write / Construct Only
“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