SwfPersona

SwfPersona — A persona subclass which represents a single libsocialweb contact.

Functions

Properties

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

Types and Values

struct SwfPersona
struct SwfPersonaClass

Object Hierarchy

    GObject
    ╰── FolksPersona
        ╰── SwfPersona

Implemented Interfaces

SwfPersona implements FolksAvatarDetails, FolksGenderDetails, FolksImDetails, FolksNameDetails, FolksUrlDetails and FolksWebServiceDetails.

Description

There is a one-to-one correspondence between SwfPersonas and SwContacts.

Functions

SWF_TYPE_PERSONA

#define SWF_TYPE_PERSONA (swf_persona_get_type ())

The type for SwfPersona.


swf_persona_update ()

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.

Parameters

self

the SwfPersona instance

 

contact

 .

contact to update the persona from

.

[in]

Since: 0.5.0


swf_persona_new ()

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.

Parameters

store

 .

the store which will contain the persona

.

[in]

contact

 .

the libsocialweb contact being represented by the new persona

.

[in]

swf_persona_get_lsw_contact ()

SwContact *
swf_persona_get_lsw_contact (SwfPersona *self);

Get and return the current value of the "lsw-contact" property.

The Contact from libsocialweb

Parameters

self

the SwfPersona instance to query

 

Returns

the value of the "lsw-contact" property


swf_persona_get_contact_id ()

gchar *
swf_persona_get_contact_id (SwContact *contact);

Get the ID of the libsocialweb contact.

Parameters

contact

 .

contact to return the ID from

.

[in]

Returns

ID of contact

Since: 0.5.0

Types and Values

struct SwfPersona

struct SwfPersona;

A persona subclass which represents a single libsocialweb contact.

There is a one-to-one correspondence between SwfPersonas and SwContacts.


struct SwfPersonaClass

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.

Members

FolksPersonaClass parent_class;

the parent class structure

 

Property Details

The “avatar” property

  “avatar”                   GLoadableIcon *

avatar.

Flags: Read / Write


The “full-name” property

  “full-name”                gchar *

full-name.

Flags: Read / Write

Default value: NULL


The “gender” property

  “gender”                   FolksGender

gender.

Flags: Read / Write

Default value: FOLKS_GENDER_UNSPECIFIED


The “im-addresses” property

  “im-addresses”             GeeMultiMap *

im-addresses.

Flags: Read / Write


The “linkable-properties” property

  “linkable-properties”      GStrv

linkable-properties.

Flags: Read


The “lsw-contact” property

  “lsw-contact”              SwContact *

The Contact from libsocialweb

Flags: Read / Write / Construct Only


The “nickname” property

  “nickname”                 gchar *

nickname.

Flags: Read / Write

Default value: NULL


The “structured-name” property

  “structured-name”          FolksStructuredName *

structured-name.

Flags: Read / Write


The “urls” property

  “urls”                     GeeSet *

urls.

Flags: Read / Write


The “web-service-addresses” property

  “web-service-addresses”    GeeMultiMap *

web-service-addresses.

Flags: Read / Write


The “writeable-properties” property

  “writeable-properties”     GStrv

writeable-properties.

Flags: Read