folks-telepathy Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
TpfPersonaStoreTpfPersonaStore — A persona store which is associated with a single Telepathy account. It will create TpfPersonas for each of the contacts in the published, stored or subscribed channels of the account. |
#define TPF_TYPE_PERSONA_STORE TpfPersonaStore * tpf_persona_store_new (TpAccount *account
); TpAccount * tpf_persona_store_get_account (TpfPersonaStore *self
); GeeMap * tpf_persona_store_list_persona_stores (void
); TpfPersonaStore * tpf_persona_store_dup_for_account (TpAccount *account
); struct TpfPersonaStore;
"account" TpAccount* : Read / Write / Construct Only "always-writeable-properties" GStrv : Read "can-add-personas" FolksMaybeBool : Read "can-alias-personas" FolksMaybeBool : Read "can-group-personas" FolksMaybeBool : Read "can-remove-personas" FolksMaybeBool : Read "is-prepared" gboolean : Read "is-quiescent" gboolean : Read "personas" GeeMap* : Read "supported-fields" GeeSet* : Read "type-id" gchar* : Read
#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`.
|
the Telepathy account being represented by the persona store. [in] |
TpAccount * tpf_persona_store_get_account (TpfPersonaStore *self
);
|
the TpfPersonaStore instance to query |
Returns : |
the value of the "account" property |
GeeMap * tpf_persona_store_list_persona_stores
(void
);
Get a map of all the currently constructed TpfPersonaStores.
If a BackendStore has been prepared, this map will be complete, containing every store known to the Telepathy account manager. If no BackendStore 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 BackendStore or
to add stores.tpf_persona_store_dup_for_account()
Returns : |
map from PersonaStore.id to
|
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
for information on the lifecycle of these stores when a BackendStore is and is not present.tpf_persona_store_list_persona_stores()
|
the Telepathy account of the persona store. [in] |
Returns : |
the persona store associated with the account |
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 published, stored or subscribed channels of the account.
"account"
property "account" TpAccount* : Read / Write / Construct Only
The Telepathy account this store is based upon.
"always-writeable-properties"
property "always-writeable-properties" GStrv : Read
always-writeable-properties.
"can-add-personas"
property "can-add-personas" FolksMaybeBool : Read
can-add-personas.
Default value: FOLKS_MAYBE_BOOL_UNSET
"can-alias-personas"
property "can-alias-personas" FolksMaybeBool : Read
can-alias-personas.
Default value: FOLKS_MAYBE_BOOL_UNSET
"can-group-personas"
property "can-group-personas" FolksMaybeBool : Read
can-group-personas.
Default value: FOLKS_MAYBE_BOOL_UNSET
"can-remove-personas"
property "can-remove-personas" FolksMaybeBool : Read
can-remove-personas.
Default value: FOLKS_MAYBE_BOOL_UNSET
"group-members-changed"
signalvoid user_function (TpfPersonaStore *tpfpersonastore,
gchar *arg1,
gpointer arg2,
gpointer arg3,
gpointer user_data) : Run Last
"group-removed"
signalvoid user_function (TpfPersonaStore *tpfpersonastore,
gchar *arg1,
gpointer arg2,
gpointer user_data) : Run Last