Public Types | Public Member Functions | Static Public Member Functions

Swift::Presence Class Reference

Inheritance diagram for Swift::Presence:
Collaboration diagram for Swift::Presence:

List of all members.

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< Presenceclone () 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< PayloadgetPayloadOfSameType (boost::shared_ptr< Payload >) const
const JIDgetFrom () const
void setFrom (const JID &from)
const JIDgetTo () 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)

Detailed Description

Definition at line 16 of file Presence.h.


Member Typedef Documentation

typedef boost::shared_ptr<Presence> Swift::Presence::ref

Reimplemented from Swift::Stanza.

Definition at line 18 of file Presence.h.


Member Enumeration Documentation

Enumerator:
Available 
Error 
Probe 
Subscribe 
Subscribed 
Unavailable 
Unsubscribe 
Unsubscribed 

Definition at line 20 of file Presence.h.


Constructor & Destructor Documentation

Swift::Presence::Presence (  ) 
Swift::Presence::Presence ( const std::string &  status  ) 
virtual Swift::Presence::~Presence (  )  [virtual]

Member Function Documentation

void Swift::Stanza::addPayload ( boost::shared_ptr< Payload payload  )  [inline, inherited]

Definition at line 57 of file Stanza.h.

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]

Definition at line 65 of file Stanza.h.

const std::string& Swift::Stanza::getID (  )  const [inline, inherited]

Definition at line 71 of file Stanza.h.

template<typename T >
boost::shared_ptr<T> Swift::Stanza::getPayload (  )  const [inline, inherited]

Definition at line 30 of file Stanza.h.

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]

Definition at line 53 of file Stanza.h.

template<typename T >
std::vector< boost::shared_ptr<T> > Swift::Stanza::getPayloads (  )  const [inline, inherited]

Definition at line 41 of file Stanza.h.

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]

Definition at line 68 of file Stanza.h.

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]

Definition at line 66 of file Stanza.h.

void Swift::Stanza::setID ( const std::string &  id  )  [inline, inherited]

Definition at line 72 of file Stanza.h.

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]

Definition at line 69 of file Stanza.h.

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]