#include <rosteritem.h>
Public Types | |
| typedef std::map< std::string, Resource * > | ResourceMap |
Public Member Functions | |
| RosterItem (const std::string &jid, const std::string &name=EmptyString) | |
| RosterItem (const RosterItemData &data) | |
| virtual | ~RosterItem () |
| void | setName (const std::string &name) |
| const std::string & | name () const |
| const std::string & | jid () const |
| void | setSubscription (const std::string &subscription, const std::string &ask) |
| SubscriptionType | subscription () const |
| void | setGroups (const StringList &groups) |
| const StringList | groups () const |
| bool | changed () const |
| bool | online () const |
| const ResourceMap & | resources () const |
| const Resource * | resource (const std::string &res) const |
Protected Member Functions | |
| void | setPresence (const std::string &resource, Presence::PresenceType presence) |
| void | setStatus (const std::string &resource, const std::string &msg) |
| void | setPriority (const std::string &resource, int priority) |
| void | setExtensions (const std::string &resource, const StanzaExtensionList &exts) |
| void | setSynchronized () |
| void | removeResource (const std::string &resource) |
| void | setData (const RosterItemData &rid) |
For each RosterItem all resources that are available (online in some way) are stored in a ResourceMap. This map is accessible using the resources() function.
Definition at line 39 of file rosteritem.h.
|
|
A list of resources for the given JID. Definition at line 47 of file rosteritem.h. |
|
||||||||||||
|
Constructs a new item of the roster.
Definition at line 22 of file rosteritem.cpp. |
|
|
Constructs a new RosterItem using the data holding class.
Definition at line 27 of file rosteritem.cpp. |
|
|
Virtual destructor. Definition at line 32 of file rosteritem.cpp. |
|
|
Whether the item has unsynchronized changes.
Definition at line 98 of file rosteritem.cpp. |
|
|
Returns the groups this RosterItem belongs to.
Definition at line 90 of file rosteritem.cpp. |
|
|
Returns the contact's bare JID.
Definition at line 62 of file rosteritem.cpp. |
|
|
Retrieves the displayed name of a contact/roster item.
Definition at line 54 of file rosteritem.cpp. |
|
|
Indicates whether this item has at least one resource online (in any state).
Definition at line 154 of file rosteritem.cpp. |
|
|
This function is called to remove subsequent resources from a RosterItem.
Definition at line 144 of file rosteritem.cpp. |
|
|
Returns the Resource for a specific resource string.
Definition at line 159 of file rosteritem.cpp. |
|
|
Returns the contact's resources.
Definition at line 127 of file rosteritem.h. |
|
|
This function deletes the internal RosterItemData and replaces it with the provided one. The RosterItem will own the RosterItemData instance. Definition at line 165 of file rosteritem.cpp. |
|
||||||||||||
|
Sets the resource's Entity Capabilities.
Definition at line 136 of file rosteritem.cpp. |
|
|
Sets the groups this RosterItem belongs to.
Definition at line 84 of file rosteritem.cpp. |
|
|
Sets the displayed name of a contact/roster item.
Definition at line 48 of file rosteritem.cpp. |
|
||||||||||||
|
Sets the current presence of the resource.
Definition at line 112 of file rosteritem.cpp. |
|
||||||||||||
|
Sets the current priority of the resource.
Definition at line 128 of file rosteritem.cpp. |
|
||||||||||||
|
Sets the current status message of the resource.
Definition at line 120 of file rosteritem.cpp. |
|
||||||||||||
|
Sets the current subscription status of the contact.
Definition at line 70 of file rosteritem.cpp. |
|
|
Removes the 'changed' flag from the item. Definition at line 106 of file rosteritem.cpp. |
|
|
Returns the current subscription type between the remote and the local entity.
Definition at line 76 of file rosteritem.cpp. |
1.4.1