#include <rostermanager.h>
Inherits IqHandler, PresenceHandler, SubscriptionHandler, and PrivateXMLHandler.
Inheritance diagram for RosterManager:


Public Member Functions | |
| RosterManager (ClientBase *parent) | |
| virtual | ~RosterManager () |
| void | fill () |
| Roster * | roster () |
| void | subscribe (const JID &jid, const std::string &name="", const StringList &groups=StringList(), const std::string &msg="") |
| void | synchronize () |
| void | add (const JID &jid, const std::string &name, const StringList &groups) |
| void | unsubscribe (const JID &jid, const std::string &msg="") |
| void | cancel (const JID &jid, const std::string &msg="") |
| void | remove (const JID &jid) |
| void | ackSubscriptionRequest (const JID &to, bool ack) |
| const std::string & | delimiter () const |
| void | setDelimiter (const std::string &delimiter) |
| RosterItem * | getRosterItem (const JID &jid) |
| void | registerRosterListener (RosterListener *rl, bool syncSubscribeReq=true) |
| void | removeRosterListener () |
| virtual bool | handleIq (Stanza *stanza) |
| virtual bool | handleIqID (Stanza *stanza, int context) |
| virtual void | handlePresence (Stanza *stanza) |
| virtual void | handleSubscription (Stanza *stanza) |
| virtual void | handlePrivateXML (const std::string &tag, Tag *xml) |
| virtual void | handlePrivateXMLResult (const std::string &uid, PrivateXMLResult pxResult) |
It takes care of changing presence, subscriptions, etc. You can modify any number of RosterItems within the Roster at any time. These changes must be synchronized with the server by calling synchronize(). Note that incoming Roster pushes initiated by other resources may overwrite changed values. Additionally, XEP-0083 (Nested Roster Groups) is implemented herein.
Definition at line 47 of file rostermanager.h.
|
|
Creates a new RosterManager.
Definition at line 25 of file rostermanager.cpp. |
|
|
Virtual destructor. Definition at line 41 of file rostermanager.cpp. |
|
||||||||||||
|
Use this function to acknowledge a subscription request if you requested asynchronous subscription request handling.
Definition at line 296 of file rostermanager.cpp. |
|
||||||||||||||||
|
Use this function to add a contact to the roster. No subscription request is sent.
Definition at line 198 of file rostermanager.cpp. |
|
||||||||||||
|
Use this function to cancel the contact's subscription to your presence. The contact will no longer receive presence from you.
Definition at line 237 of file rostermanager.cpp. |
|
|
Use this function to retrieve the delimiter of Nested Roster Groups (XEP-0083).
Definition at line 140 of file rostermanager.h. |
|
|
This function does the initial filling of the roster with the current server-side roster. Definition at line 64 of file rostermanager.cpp. |
|
|
Lets you retrieve the RosterItem that belongs to the given JID.
Definition at line 471 of file rostermanager.cpp. |
|
|
Reimplement this function if you want to be notified about incoming IQs.
Implements IqHandler. Definition at line 76 of file rostermanager.cpp. |
|
||||||||||||
|
Reimplement this function if you want to be notified about incoming IQs with a specific value of the
Implements IqHandler. Definition at line 109 of file rostermanager.cpp. |
|
|
Reimplement this function if you want to be updated on incoming presence notifications.
Implements PresenceHandler. Definition at line 114 of file rostermanager.cpp. |
|
||||||||||||
|
Reimplement this function to receive the private XML that was requested earlier using
Implements PrivateXMLHandler. Definition at line 462 of file rostermanager.cpp. |
|
||||||||||||
|
This function is called to notify about the result of a 'store' or 'request' operation (successful requests are announced by means of handlePrivateXML()).
Implements PrivateXMLHandler. Definition at line 467 of file rostermanager.cpp. |
|
|
Reimplement this function if you want to be notified about incoming subscriptions/subscription requests.
Implements SubscriptionHandler. Definition at line 308 of file rostermanager.cpp. |
|
||||||||||||
|
Register
Definition at line 364 of file rostermanager.cpp. |
|
|
Use this function to remove a contact from the roster. Subscription is implicitely cancelled.
Definition at line 249 of file rostermanager.cpp. |
|
|
Complementary function to registerRosterListener. Removes the current RosterListener. Roster events will not be delivered anywhere. Definition at line 370 of file rostermanager.cpp. |
|
|
This function returns the roster.
Definition at line 59 of file rostermanager.cpp. |
|
|
Use this function to set the group delimiter (XEP-0083).
Definition at line 454 of file rostermanager.cpp. |
|
||||||||||||||||||||
|
Use this function to subscribe to a new JID. The contact is added to the roster automatically (by compliant servers, as required by RFC 3921).
Definition at line 179 of file rostermanager.cpp. |
|
|
Synchronizes locally modified RosterItems back to the server. Definition at line 265 of file rostermanager.cpp. |
|
||||||||||||
|
Use this function to unsubscribe from a contact's presence. You will no longer receive presence from this contact.
Definition at line 225 of file rostermanager.cpp. |
1.4.1