#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) const |
int | operator!= (const JID &right) const |
Definition at line 30 of file jid.h.
JID | ( | const std::string & | jid | ) |
void setJID | ( | const std::string & | jid | ) |
Sets the JID from a string.
jid | The string containing the JID. |
Definition at line 34 of file jid.cpp.
Referenced by Search::handleIqID(), Stanza::init(), and JID::JID().
std::string full | ( | ) | const |
Returns the full (prepped) JID (user@host/resource).
Definition at line 85 of file jid.cpp.
Referenced by Registration::changePassword(), Registration::createAccount(), Stanza::createIqStanza(), Stanza::createMessageStanza(), Stanza::createPresenceStanza(), Stanza::createSubscriptionStanza(), Registration::fetchRegistrationFields(), Search::fetchSearchFields(), Disco::getDiscoInfo(), Disco::getDiscoItems(), LastActivity::handleIq(), InBandBytestreamManager::handleIq(), Disco::handleIq(), MessageSession::handleMessage(), MessageSession::MessageSession(), LastActivity::query(), MessageEventFilter::raiseMessageEvent(), Registration::removeAccount(), InBandBytestreamManager::requestInBandBytestream(), Search::search(), MessageSession::send(), InBandBytestream::sendBlock(), ChatStateFilter::setChatState(), RosterManager::subscribe(), and MessageSession::~MessageSession().
std::string bare | ( | ) | const |
Returns the bare (prepped) JID (user@host).
Definition at line 101 of file jid.cpp.
Referenced by RosterManager::ackSubscriptionRequest(), VCardManager::fetchVCard(), RosterManager::getRosterItem(), MessageSession::handleMessage(), RosterManager::handlePresence(), RosterManager::handleSubscription(), RosterManager::RosterManager(), ClientBase::startSASL(), and RosterManager::unsubscribe().
void setUsername | ( | const std::string & | username | ) |
Sets the username.
username | The new username. |
Definition at line 69 of file jid.cpp.
Referenced by Client::Client(), and Client::setUsername().
void setServer | ( | const std::string & | server | ) |
Sets the server.
server | The new server. |
Definition at line 74 of file jid.cpp.
Referenced by Client::Client(), and Component::Component().
void setResource | ( | const std::string & | resource | ) |
Sets the resource.
resource | The new resource. |
Definition at line 80 of file jid.cpp.
Referenced by Client::Client().
std::string username | ( | ) | const [inline] |
Returns the prepped username.
Definition at line 90 of file jid.h.
Referenced by NonSaslAuth::handleIqID(), ClientBase::processSASLChallenge(), and ClientBase::startSASL().
std::string server | ( | ) | const [inline] |
Returns the prepped server name.
Definition at line 96 of file jid.h.
Referenced by FlexibleOffline::checkSupport(), NonSaslAuth::doAuth(), FlexibleOffline::fetchHeaders(), FlexibleOffline::getMsgCount(), ClientBase::header(), and ClientBase::processSASLChallenge().
std::string serverRaw | ( | ) | const [inline] |
Returns the raw (unprepped) server name.
Definition at line 102 of file jid.h.
Referenced by Client::Client().
std::string resource | ( | ) | const [inline] |
Returns the prepped resource.
Definition at line 108 of file jid.h.
Referenced by NonSaslAuth::handleIqID(), MessageSession::handleMessage(), and RosterManager::handlePresence().
bool empty | ( | ) | const [inline] |
A JID is empty as long as no server is set.
Definition at line 114 of file jid.h.
Referenced by Registration::changePassword(), Registration::createAccount(), Stanza::createPresenceStanza(), Registration::fetchRegistrationFields(), Search::fetchSearchFields(), Registration::removeAccount(), and Search::search().
int operator== | ( | const JID & | right | ) | const |
int operator!= | ( | const JID & | right | ) | const |