#include <roster.hh>
Public Types | |
enum | Subscription { rsNone, rsTo, rsFrom, rsBoth, rsRemove } |
The Subscription you have in relation to this Roster Item. More... | |
Public Member Functions | |
iterator | begin () |
Get the first Roster::Item. | |
iterator | end () |
Get the last Roster::Item. | |
const_iterator | begin () const |
Get the first Roster::Item. | |
const_iterator | end () const |
Get the last Roster::Item. | |
Roster (Session &s) | |
Create a Roster for a given Session. | |
Session & | getSession () |
Get the Session this Roster is using. | |
const Roster::Item & | operator[] (const std::string &jid) const |
Get a Roster Item in the Roster given a JabberID. | |
Roster & | operator<< (const Item &i) |
Add a Roster Item to the Roster. | |
bool | containsJID (const std::string &jid) const |
Whether or not this Roster contains a certain JabberID. | |
void | update (const judo::Element &t) |
Add a Roster Item to the Roster given a judo::Element. | |
void | update (const Presence &p, Presence::Type prev_type) |
Update the Presence for the appropriate Roster Items. | |
void | update (const Item &i) |
Add a Roster Item. | |
void | deleteUser (const std::string &jid) |
Remove a Roster Item based on JabberID. | |
void | fetch () const |
Fetch the Roster from the server. | |
int | size () const |
Get the number of items in the roster. | |
Public Attributes | |
SigC::Signal0< void, SigC::Marshal< void > > | evtRefresh |
This signal is emitted whenever the Roster display should be refreshed. | |
SigC::Signal3< void, const std::string &, bool, Presence::Type, SigC::Marshal< void > > | evtPresence |
This signal is emitted whenever the Presence for a user changes. |
A Roster is a list of users, or Roster Items.
Definition at line 52 of file roster.hh.
|
The Subscription you have in relation to this Roster Item. The Subscription determines who can see whose Presence. |
|
Create a Roster for a given Session.
Definition at line 40 of file jabberoo-roster.cpp. |
|
Get the first Roster::Item.
|
|
Get the first Roster::Item.
|
|
Whether or not this Roster contains a certain JabberID.
Definition at line 71 of file jabberoo-roster.cpp. |
|
Remove a Roster Item based on JabberID.
Definition at line 163 of file jabberoo-roster.cpp. References judo::Element::addElement(), judo::Element::putAttrib(), jabberoo::Session::queryNamespace(), and judo::Element::toString(). |
|
Get the last Roster::Item.
|
|
Get the last Roster::Item.
|
|
Fetch the Roster from the server.
Definition at line 200 of file jabberoo-roster.cpp. References judo::Element::addElement(), judo::Element::putAttrib(), and judo::Element::toString(). |
|
Get the Session this Roster is using.
|
|
Add a Roster Item to the Roster.
Definition at line 241 of file roster.hh. References update(). |
|
Get a Roster Item in the Roster given a JabberID.
Definition at line 44 of file jabberoo-roster.cpp. |
|
This is generally used when an application wants to add or modify Roster Items. Note that duplicate Roster Items for a particular JabberID cannot exist, the previous one for the JabberID will be overwritten.
Definition at line 139 of file jabberoo-roster.cpp. References judo::Element::addElement(), jabberoo::Roster::Item::begin(), jabberoo::Roster::Item::end(), jabberoo::Roster::Item::getJID(), jabberoo::Roster::Item::getNickname(), judo::Element::putAttrib(), and judo::Element::toString(). |
|
Update the Presence for the appropriate Roster Items.
Definition at line 128 of file jabberoo-roster.cpp. References jabberoo::Packet::getFrom(). |
|
Add a Roster Item to the Roster given a judo::Element. This is how you push Items as they're received.
Definition at line 79 of file jabberoo-roster.cpp. References judo::Element::begin(), judo::Element::cmpAttrib(), judo::Element::end(), evtRefresh, and judo::Element::getAttrib(). Referenced by jabberoo::Roster::Item::Item(), and operator<<(). |
|
This signal is emitted whenever the Presence for a user changes.
|
|
This signal is emitted whenever the Roster display should be refreshed.
Definition at line 302 of file roster.hh. Referenced by update(). |