Public Types | |
enum | Type { Available, Error, Probe, Subscribe, Subscribed, Unavailable, Unsubscribe, Unsubscribed } |
typedef boost::shared_ptr < Presence > | ref |
Public Member Functions | |
Presence () | |
Presence (const std::string &status) | |
virtual | ~Presence () |
Type | getType () const |
void | setType (Type type) |
StatusShow::Type | getShow () const |
void | setShow (const StatusShow::Type &show) |
std::string | getStatus () const |
void | setStatus (const std::string &status) |
int | getPriority () const |
void | setPriority (int priority) |
boost::shared_ptr< Presence > | clone () const |
bool | isAvailable () const |
template<typename T > | |
boost::shared_ptr< T > | getPayload () const |
template<typename T > | |
std::vector< boost::shared_ptr < T > > | getPayloads () const |
const std::vector < boost::shared_ptr< Payload > > & | getPayloads () const |
void | addPayload (boost::shared_ptr< Payload > payload) |
void | updatePayload (boost::shared_ptr< Payload > payload) |
boost::shared_ptr< Payload > | getPayloadOfSameType (boost::shared_ptr< Payload >) const |
const JID & | getFrom () const |
void | setFrom (const JID &from) |
const JID & | getTo () const |
void | setTo (const JID &to) |
const std::string & | getID () const |
void | setID (const std::string &id) |
boost::optional < boost::posix_time::ptime > | getTimestamp () const |
boost::optional < boost::posix_time::ptime > | getTimestampFrom (const JID &jid) const |
Static Public Member Functions | |
static ref | create () |
static ref | create (const std::string &status) |
static ref | create (Presence::ref presence) |
Definition at line 16 of file Presence.h.
typedef boost::shared_ptr<Presence> Swift::Presence::ref |
Reimplemented from Swift::Stanza.
Definition at line 18 of file Presence.h.
Definition at line 20 of file Presence.h.
Swift::Presence::Presence | ( | ) |
Swift::Presence::Presence | ( | const std::string & | status | ) |
virtual Swift::Presence::~Presence | ( | ) | [virtual] |
void Swift::Stanza::addPayload | ( | boost::shared_ptr< Payload > | payload | ) | [inline, inherited] |
boost::shared_ptr<Presence> Swift::Presence::clone | ( | ) | const [inline] |
Definition at line 59 of file Presence.h.
static ref Swift::Presence::create | ( | const std::string & | status | ) | [inline, static] |
Definition at line 30 of file Presence.h.
static ref Swift::Presence::create | ( | ) | [inline, static] |
Definition at line 26 of file Presence.h.
static ref Swift::Presence::create | ( | Presence::ref | presence | ) | [inline, static] |
Definition at line 34 of file Presence.h.
const JID& Swift::Stanza::getFrom | ( | ) | const [inline, inherited] |
const std::string& Swift::Stanza::getID | ( | ) | const [inline, inherited] |
boost::shared_ptr<T> Swift::Stanza::getPayload | ( | ) | const [inline, inherited] |
boost::shared_ptr<Payload> Swift::Stanza::getPayloadOfSameType | ( | boost::shared_ptr< Payload > | ) | const [inherited] |
const std::vector< boost::shared_ptr<Payload> >& Swift::Stanza::getPayloads | ( | ) | const [inline, inherited] |
std::vector< boost::shared_ptr<T> > Swift::Stanza::getPayloads | ( | ) | const [inline, inherited] |
int Swift::Presence::getPriority | ( | ) | const |
StatusShow::Type Swift::Presence::getShow | ( | ) | const [inline] |
Definition at line 41 of file Presence.h.
References Swift::StatusShow::Online.
std::string Swift::Presence::getStatus | ( | ) | const |
boost::optional<boost::posix_time::ptime> Swift::Stanza::getTimestamp | ( | ) | const [inherited] |
boost::optional<boost::posix_time::ptime> Swift::Stanza::getTimestampFrom | ( | const JID & | jid | ) | const [inherited] |
const JID& Swift::Stanza::getTo | ( | ) | const [inline, inherited] |
Type Swift::Presence::getType | ( | ) | const [inline] |
Definition at line 38 of file Presence.h.
bool Swift::Presence::isAvailable | ( | ) | const [inline] |
Definition at line 63 of file Presence.h.
void Swift::Stanza::setFrom | ( | const JID & | from | ) | [inline, inherited] |
void Swift::Stanza::setID | ( | const std::string & | id | ) | [inline, inherited] |
void Swift::Presence::setPriority | ( | int | priority | ) |
void Swift::Presence::setShow | ( | const StatusShow::Type & | show | ) | [inline] |
Definition at line 49 of file Presence.h.
void Swift::Presence::setStatus | ( | const std::string & | status | ) |
void Swift::Stanza::setTo | ( | const JID & | to | ) | [inline, inherited] |
void Swift::Presence::setType | ( | Type | type | ) | [inline] |
Definition at line 39 of file Presence.h.
void Swift::Stanza::updatePayload | ( | boost::shared_ptr< Payload > | payload | ) | [inherited] |
Referenced by Swift::Message::setBody(), and Swift::Message::setSubject().