#include <jid.h>
Public Member Functions | |
JID () | |
JID (const std::string &jid) | |
virtual | ~JID () |
void | setJID (const std::string &jid) |
std::string | full () const |
std::string | bare () const |
void | setUsername (const std::string &username) |
void | setServer (const std::string &server) |
void | setResource (const std::string &resource) |
std::string | username () const |
std::string | server () const |
std::string | serverRaw () const |
std::string | resource () const |
bool | empty () const |
int | operator== (const JID &right) |
Definition at line 30 of file jid.h.
|
Constructs an empty JID. |
|
Constructs a new JID from a string.
Definition at line 25 of file jid.cpp. References JID::setJID(). |
|
Virtual destructor. |
|
Returns the bare (prepped) JID (user@host).
Definition at line 101 of file jid.cpp. Referenced by RosterManager::ackSubscriptionRequest(), RosterManager::handlePresence(), RosterManager::handleSubscription(), RosterManager::RosterManager(), and RosterManager::unsubscribe(). |
|
A JID is empty as long as no server is set.
Definition at line 114 of file jid.h. Referenced by Stanza::createPresenceStanza(). |
|
Returns the full (prepped) JID (user@host/resource).
Definition at line 85 of file jid.cpp. Referenced by Stanza::createMessageStanza(), Stanza::createPresenceStanza(), Stanza::createSubscriptionStanza(), Disco::getDiscoInfo(), Disco::getDiscoItems(), LastActivity::handleIq(), Disco::handleIq(), LastActivity::query(), Registration::removeAccount(), and RosterManager::subscribe(). |
|
Compares two JIDs.
Definition at line 111 of file jid.cpp. References JID::m_resource, JID::m_server, and JID::m_username. |
|
Returns the prepped resource.
|
|
Returns the prepped server name.
Definition at line 96 of file jid.h. Referenced by FlexibleOffline::checkSupport(), NonSaslAuth::doAuth(), FlexibleOffline::fetchHeaders(), FlexibleOffline::getMsgCount(), and ClientBase::header(). |
|
Returns the raw (unprepped) server name.
Definition at line 102 of file jid.h. Referenced by Client::Client(). |
|
Sets the JID from a string.
Definition at line 34 of file jid.cpp. References Prep::nameprep(), Prep::nodeprep(), and Prep::resourceprep(). Referenced by Stanza::init(), and JID::JID(). |
|
Sets the resource.
Definition at line 80 of file jid.cpp. References Prep::resourceprep(). Referenced by Client::Client(). |
|
Sets the server.
Definition at line 74 of file jid.cpp. References Prep::nameprep(). Referenced by Client::Client(), and Component::Component(). |
|
Sets the username.
Definition at line 69 of file jid.cpp. References Prep::nodeprep(). Referenced by Client::Client(). |
|
Returns the prepped username.
Definition at line 90 of file jid.h. Referenced by ClientBase::startSASL(). |