Public Types | Public Member Functions

Swift::Stanza Class Reference

Inheritance diagram for Swift::Stanza:
Collaboration diagram for Swift::Stanza:

List of all members.

Public Types

typedef boost::shared_ptr< Stanzaref

Public Member Functions

 Stanza ()
virtual ~Stanza ()
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

Detailed Description

Definition at line 22 of file Stanza.h.


Member Typedef Documentation

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

Reimplemented in Swift::IQ, Swift::Message, and Swift::Presence.

Definition at line 24 of file Stanza.h.


Constructor & Destructor Documentation

Swift::Stanza::Stanza (  ) 
virtual Swift::Stanza::~Stanza (  )  [virtual]

Member Function Documentation

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

Definition at line 57 of file Stanza.h.

const JID& Swift::Stanza::getFrom (  )  const [inline]

Definition at line 65 of file Stanza.h.

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

Definition at line 71 of file Stanza.h.

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

Definition at line 30 of file Stanza.h.

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

Definition at line 41 of file Stanza.h.

const std::vector< boost::shared_ptr<Payload> >& Swift::Stanza::getPayloads (  )  const [inline]

Definition at line 53 of file Stanza.h.

boost::optional<boost::posix_time::ptime> Swift::Stanza::getTimestamp (  )  const
boost::optional<boost::posix_time::ptime> Swift::Stanza::getTimestampFrom ( const JID jid  )  const
const JID& Swift::Stanza::getTo (  )  const [inline]

Definition at line 68 of file Stanza.h.

void Swift::Stanza::setFrom ( const JID from  )  [inline]

Definition at line 66 of file Stanza.h.

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

Definition at line 72 of file Stanza.h.

void Swift::Stanza::setTo ( const JID to  )  [inline]

Definition at line 69 of file Stanza.h.

void Swift::Stanza::updatePayload ( boost::shared_ptr< Payload payload  )