Top |
#define | SWF_TYPE_PERSONA |
void | swf_persona_update () |
SwfPersona * | swf_persona_new () |
SwContact * | swf_persona_get_lsw_contact () |
gchar * | swf_persona_get_contact_id () |
GLoadableIcon * | avatar | Read / Write |
gchar * | full-name | Read / Write |
FolksGender | gender | Read / Write |
GeeMultiMap * | im-addresses | Read / Write |
GStrv | linkable-properties | Read |
SwContact * | lsw-contact | Read / Write / Construct Only |
gchar * | nickname | Read / Write |
FolksStructuredName * | structured-name | Read / Write |
GeeSet * | urls | Read / Write |
GeeMultiMap * | web-service-addresses | Read / Write |
GStrv | writeable-properties | Read |
SwfPersona implements FolksAvatarDetails, FolksGenderDetails, FolksImDetails, FolksNameDetails, FolksUrlDetails and FolksWebServiceDetails.
void swf_persona_update (SwfPersona *self
,SwContact *contact
);
Update the persona from the given contact.
This will update the values of all the persona's properties from the properties of the given contact.
Since: 0.5.0
SwfPersona * swf_persona_new (SwfPersonaStore *store
,SwContact *contact
);
Create a new persona.
Create a new persona for the SwfPersonaStore store
, representing the libsocialweb contact given by contact
.
SwContact *
swf_persona_get_lsw_contact (SwfPersona *self
);
Get and return the current value of the "lsw-contact" property.
The Contact from libsocialweb
gchar *
swf_persona_get_contact_id (SwContact *contact
);
Get the ID of the libsocialweb contact.
Since: 0.5.0
struct SwfPersona;
A persona subclass which represents a single libsocialweb contact.
There is a one-to-one correspondence between SwfPersonas and SwContacts.
struct SwfPersonaClass { FolksPersonaClass parent_class; };
The class structure for SWF_TYPE_PERSONA
. All the fields in this structure are private and should never be accessed directly.
“gender”
property “gender” FolksGender
gender.
Flags: Read / Write
Default value: FOLKS_GENDER_UNSPECIFIED
“lsw-contact”
property “lsw-contact” SwContact *
The Contact from libsocialweb
Flags: Read / Write / Construct Only
“structured-name”
property “structured-name” FolksStructuredName *
structured-name.
Flags: Read / Write
“web-service-addresses”
property “web-service-addresses” GeeMultiMap *
web-service-addresses.
Flags: Read / Write