#include <roster.hh>
Public Member Functions | |
Item (const judo::Element &t) | |
Create a Roster Item from a judo::Element. | |
Item (Roster &r, const judo::Element &t) | |
Create a Roster Item for a particular Roster, given a judo::Element. | |
Item (const std::string &jid, const std::string &nickname) | |
Create a Roster Item based on a JabberID and a nickname. | |
~Item () | |
Roster Item destructor. | |
void | addToGroup (const std::string &group) |
Add this Roster Item to a group. | |
void | delFromGroup (const std::string &group) |
Delete this Roster Item from a group. | |
void | clearGroups () |
Remove this Roster Item from all groups it is in. | |
void | setNickname (const std::string &nickname) |
Set the nickname for this Roster Item. | |
void | setJID (const std::string &jid) |
Set the JabberID for this Roster Item. | |
bool | isAvailable () const |
Whether or not this Roster Item is online. | |
std::string | getNickname () const |
Get the nickname for this Roster Item. | |
std::string | getJID () const |
Get the JabberID for this Roster Item. | |
Subscription | getSubsType () const |
Get the Subscription to this Roster Item. | |
bool | isPending () const |
Whether or not this Roster Item is pending a subscription approval. | |
iterator | begin () const |
Get the first group this item belongs to. | |
iterator | end () const |
Get the last group this item belongs to. | |
bool | empty () const |
Whether this item has any groups. |
Definition at line 74 of file roster.hh.
|
Create a Roster Item from a judo::Element.
Definition at line 318 of file jabberoo-roster.cpp. References jabberoo::Roster::update(). |
|
Create a Roster Item for a particular Roster, given a judo::Element.
Definition at line 324 of file jabberoo-roster.cpp. References jabberoo::Roster::update(). |
|
Create a Roster Item based on a JabberID and a nickname.
Definition at line 330 of file jabberoo-roster.cpp. |
|
Definition at line 334 of file jabberoo-roster.cpp. |
|
Add this Roster Item to a group. Roster Items can be in multiple groups.
Definition at line 337 of file jabberoo-roster.cpp. |
|
Get the first group this item belongs to.
Definition at line 162 of file roster.hh. Referenced by jabberoo::Roster::update(). |
|
Remove this Roster Item from all groups it is in.
Definition at line 347 of file jabberoo-roster.cpp. |
|
Delete this Roster Item from a group. Roster Items can be in multiple groups.
Definition at line 342 of file jabberoo-roster.cpp. |
|
Whether this item has any groups.
|
|
Get the last group this item belongs to.
Definition at line 167 of file roster.hh. Referenced by jabberoo::Roster::update(). |
|
Get the JabberID for this Roster Item.
Definition at line 444 of file jabberoo-roster.cpp. Referenced by jabberoo::Roster::update(). |
|
Get the nickname for this Roster Item.
Definition at line 434 of file jabberoo-roster.cpp. Referenced by jabberoo::Roster::update(). |
|
Get the Subscription to this Roster Item.
Definition at line 454 of file jabberoo-roster.cpp. |
|
Whether or not this Roster Item is online.
Definition at line 429 of file jabberoo-roster.cpp. |
|
Whether or not this Roster Item is pending a subscription approval.
Definition at line 459 of file jabberoo-roster.cpp. |
|
Set the JabberID for this Roster Item. This will NOT modify an existing Roster Item. By changing the JabberID, you are essentially creating a new Roster Item.
Definition at line 449 of file jabberoo-roster.cpp. |
|
Set the nickname for this Roster Item.
Definition at line 439 of file jabberoo-roster.cpp. |