folks-telepathy Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
TpfPersonaTpfPersona — A persona subclass which represents a single instant messaging contact from Telepathy. |
#define TPF_TYPE_PERSONA TpfPersona * tpf_persona_new (TpContact *contact
,TpfPersonaStore *store
); gboolean tpf_persona_get_is_in_contact_list (TpfPersona *self
); void tpf_persona_set_is_in_contact_list (TpfPersona *self
,gboolean value
); TpContact * tpf_persona_get_contact (TpfPersona *self
); TpfPersona * tpf_persona_dup_for_contact (TpContact *contact
); struct TpfPersona;
TpfPersona implements FolksAliasDetails, FolksAvatarDetails, FolksBirthdayDetails, FolksEmailDetails, FolksFavouriteDetails, FolksGroupDetails, FolksImDetails, FolksNameDetails, FolksPhoneDetails, FolksPresenceDetails and FolksUrlDetails.
"alias" gchar* : Read / Write "avatar" GLoadableIcon* : Read / Write "birthday" GDateTime* : Read / Write "calendar-event-id" gchar* : Read / Write "contact" TpContact* : Read / Write / Construct Only "email-addresses" GeeSet* : Read / Write "full-name" gchar* : Read / Write "groups" GeeSet* : Read / Write "im-addresses" GeeMultiMap* : Read / Write "is-favourite" gboolean : Read / Write "is-in-contact-list" gboolean : Read / Write "linkable-properties" GStrv : Read "nickname" gchar* : Read / Write "phone-numbers" GeeSet* : Read / Write "presence-message" gchar* : Read / Write "presence-status" gchar* : Read / Write "presence-type" FolksPresenceType : Read / Write "structured-name" FolksStructuredName* : Read / Write "urls" GeeSet* : Read / Write "writeable-properties" GStrv : Read
TpfPersona * tpf_persona_new (TpContact *contact
,TpfPersonaStore *store
);
Create a new persona.
Create a new persona for the TpfPersonaStore `store`, representing the Telepathy contact given by `contact`.
|
the Telepathy contact being represented by the persona. [in] |
|
the persona store to place the persona in. [in] |
gboolean tpf_persona_get_is_in_contact_list (TpfPersona *self
);
|
the TpfPersona instance to query |
Returns : |
the value of the "is-in-contact-list" property |
void tpf_persona_set_is_in_contact_list (TpfPersona *self
,gboolean value
);
|
the TpfPersona instance to modify |
|
the new value of the "is-in-contact-list" property |
TpContact * tpf_persona_get_contact (TpfPersona *self
);
|
the TpfPersona instance to query |
Returns : |
the value of the "contact" property |
TpfPersona * tpf_persona_dup_for_contact (TpContact *contact
);
Look up a TpfPersona by its TpContact.
If the TpAccount for the contact's TpConnection is `null`, or if a TpfPersonaStore can't be found for that account, `null` will be returned. Otherwise, if a TpfPersona already exists for the given contact, that will be returned; if one doesn't exist a new one will be created and returned. In this case, the TpfPersona will be added to the TpfPersonaStore associated with the account, and will be removed when `contact` is destroyed.
|
the Telepathy contact of the persona. [in] |
Returns : |
the persona associated with the contact, or `null` |
Since 0.6.6
"calendar-event-id"
property "calendar-event-id" gchar* : Read / Write
calendar-event-id.
Default value: NULL
"contact"
property "contact" TpContact* : Read / Write / Construct Only
The Telepathy contact represented by this persona.
Note that this may be `null` if the TpfPersonaStore providing this
isn't currently available (e.g. due to not being connected to the network). In this case, most other properties of the tpf_persona_new()
are being retrieved from a cache and may not be current (though there's no way to tell this).tpf_persona_new()
"is-favourite"
property "is-favourite" gboolean : Read / Write
is-favourite.
Default value: FALSE
"is-in-contact-list"
property "is-in-contact-list" gboolean : Read / Write
Whether the Persona is in the user's contact list.
This will be true for most FolksPersonas, but may not be true for personas where "is-user" is true. If it's false in this case, it means that the persona has been retrieved from the Telepathy connection, but has not been added to the user's contact list.
Default value: FALSE
Since 0.3.5
"presence-message"
property "presence-message" gchar* : Read / Write
presence-message.
Default value: NULL
"presence-status"
property "presence-status" gchar* : Read / Write
presence-status.
Default value: NULL
"presence-type"
property "presence-type" FolksPresenceType : Read / Write
presence-type.
Default value: FOLKS_PRESENCE_TYPE_UNSET
"structured-name"
property "structured-name" FolksStructuredName* : Read / Write
structured-name.