| Top |
| TplEntity * | tpl_entity_new () |
| TplEntity * | tpl_entity_new_from_tp_contact () |
| TplEntity * | tpl_entity_new_from_room_id () |
| const gchar * | tpl_entity_get_alias () |
| const gchar * | tpl_entity_get_identifier () |
| TplEntityType | tpl_entity_get_entity_type () |
| const gchar * | tpl_entity_get_avatar_token () |
| char * | alias | Read / Write / Construct Only |
| char * | avatar-token | Read / Write / Construct Only |
| char * | identifier | Read / Write / Construct Only |
| int | type | Read / Write / Construct Only |
TplEntity * tpl_entity_new (const gchar *id,TplEntityType type,const gchar *alias,const gchar *avatar_token);
TplEntity * tpl_entity_new_from_tp_contact (TpContact *contact,TplEntityType type);
a TplEntity instance with identifier, alias and
avatar's token copied. Type parameter is useful to differentiate between
normal contact and self contact, thus only TPL_ENTITY_CONTACT and
TPL_ENTITY_SELF are accepted. If contact is NULL, an entity of type
TPL_ENTITY_UNKNOWN with id set to "unknown" is returned.
TplEntity *
tpl_entity_new_from_room_id (const gchar *room_id);
a TplEntity instance with identifier, alias copied from
room_id
. It also sets TPL_ENTITY_ROOM as type for
the TplEntity returned.
|
the current contact's type is unknown |
||
|
the contact's type represents a user (buddy), but not
the account's owner for which |
||
|
a named room (TP_HANDLE_TYPE_ROOM) |
||
|
the contact's type represents the owner of the account
whose channel has been logged, as opposed to |
“alias” property “alias” char *
The entity's alias
Owner: TplEntity
Flags: Read / Write / Construct Only
Default value: NULL
“avatar-token” property “avatar-token” char *
The entity's avatar token
Owner: TplEntity
Flags: Read / Write / Construct Only
Default value: NULL
“identifier” property “identifier” char *
The entity's identifier
Owner: TplEntity
Flags: Read / Write / Construct Only
Default value: NULL
“type” property “type” int
The entity's type (see TplEntityType).
Owner: TplEntity
Flags: Read / Write / Construct Only
Allowed values: [0,3]
Default value: 0