Top | ![]() |
![]() |
![]() |
![]() |
WockyBareContact * | wocky_bare_contact_new () |
const gchar * | wocky_bare_contact_get_jid () |
const gchar * | wocky_bare_contact_get_name () |
void | wocky_bare_contact_set_name () |
WockyRosterSubscriptionFlags | wocky_bare_contact_get_subscription () |
void | wocky_bare_contact_set_subscription () |
const gchar * const * | wocky_bare_contact_get_groups () |
void | wocky_bare_contact_set_groups () |
gboolean | wocky_bare_contact_equal () |
void | wocky_bare_contact_add_group () |
gboolean | wocky_bare_contact_in_group () |
void | wocky_bare_contact_remove_group () |
WockyBareContact * | wocky_bare_contact_copy () |
void | wocky_bare_contact_debug_print () |
void | wocky_bare_contact_add_resource () |
GSList * | wocky_bare_contact_get_resources () |
Stores information regarding a roster item and provides a higher level API for altering its details.
WockyBareContact *
wocky_bare_contact_new (const gchar *jid
);
Creates a new WockyBareContact for a given JID.
const gchar *
wocky_bare_contact_get_jid (WockyBareContact *contact
);
Returns the JID of the contact wrapped by contact
.
const gchar *
wocky_bare_contact_get_name (WockyBareContact *contact
);
Returns the name of the contact wrapped by contact
.
void wocky_bare_contact_set_name (WockyBareContact *contact
,const gchar *name
);
Sets contact
's name to name
.
WockyRosterSubscriptionFlags
wocky_bare_contact_get_subscription (WockyBareContact *contact
);
Gets the subscription type contact
has.
void wocky_bare_contact_set_subscription (WockyBareContact *contact
,WockyRosterSubscriptionFlags subscription
);
Sets the subscription of contact
.
const gchar * const *
wocky_bare_contact_get_groups (WockyBareContact *contact
);
Returns the list of the groups of contact
.
void wocky_bare_contact_set_groups (WockyBareContact *contact
,gchar **groups
);
Sets contact
's groups.
gboolean wocky_bare_contact_equal (WockyBareContact *a
,WockyBareContact *b
);
Compares whether two WockyBareContact instances refer to the same roster item.
void wocky_bare_contact_add_group (WockyBareContact *contact
,const gchar *group
);
Adds group
to contact's groups.
gboolean wocky_bare_contact_in_group (WockyBareContact *contact
,const gchar *group
);
Determines whether the given contact is in group
.
void wocky_bare_contact_remove_group (WockyBareContact *contact
,const gchar *group
);
Removes group
from the contact's groups.
WockyBareContact *
wocky_bare_contact_copy (WockyBareContact *contact
);
Convenience function to obtain a copy of the given WockyBareContact.
void
wocky_bare_contact_debug_print (WockyBareContact *contact
);
Prints debug information for the given WockyBareContact.
void wocky_bare_contact_add_resource (WockyBareContact *contact
,WockyResourceContact *resource
);
Adds resource
to the contact's resources.
The WockyBareContact instance doesn't assume a reference to resource
.
GSList *
wocky_bare_contact_get_resources (WockyBareContact *contact
);
Gets a GSList of all the contact's resources. You should call g_slist_free on the list when done with it.
“groups”
property“groups” GStrv
A list of the contact's groups, according to the roster.
Flags: Read / Write / Construct
“jid”
property“jid” gchar *
The contact's bare JID, according to the roster.
Flags: Read / Write / Construct Only
Default value: ""
“name”
property“name” gchar *
The contact's name, according to the roster.
Flags: Read / Write / Construct
Default value: ""
“subscription”
property“subscription” guint
The subscription type of the contact, according to the roster.
Flags: Read / Write / Construct
Allowed values: <= 3
Default value: 0