Classes | Public Types | Public Member Functions

Swift::JinglePayload Class Reference

Inheritance diagram for Swift::JinglePayload:
Collaboration diagram for Swift::JinglePayload:

List of all members.

Classes

struct  Reason

Public Types

enum  Action {
  UnknownAction, ContentAccept, ContentAdd, ContentModify,
  ContentReject, ContentRemove, DescriptionInfo, SecurityInfo,
  SessionAccept, SessionInfo, SessionInitiate, SessionTerminate,
  TransportAccept, TransportInfo, TransportReject, TransportReplace
}
typedef boost::shared_ptr
< JinglePayload
ref

Public Member Functions

 JinglePayload ()
 JinglePayload (Action action, const std::string &sessionID)
void setAction (Action action)
Action getAction () const
void setInitiator (const JID &initiator)
const JIDgetInitiator () const
void setResponder (const JID &responder)
const JIDgetResponder () const
void setSessionID (const std::string &id)
const std::string & getSessionID () const
void addContent (JingleContentPayload::ref content)
void addPayload (boost::shared_ptr< Payload > payload)
const std::vector
< JingleContentPayload::ref
getContents () const
const std::vector
< boost::shared_ptr< Payload > > 
getPayloads () const
template<typename T >
const std::vector
< boost::shared_ptr< T > > 
getPayloads () const
template<typename T >
const boost::shared_ptr< T > getPayload () const
void setReason (const Reason &reason)
const boost::optional< Reason > & getReason () const

Detailed Description

Definition at line 20 of file JinglePayload.h.


Member Typedef Documentation

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

Reimplemented from Swift::Payload.

Definition at line 21 of file JinglePayload.h.


Member Enumeration Documentation

Enumerator:
UnknownAction 
ContentAccept 
ContentAdd 
ContentModify 
ContentReject 
ContentRemove 
DescriptionInfo 
SecurityInfo 
SessionAccept 
SessionInfo 
SessionInitiate 
SessionTerminate 
TransportAccept 
TransportInfo 
TransportReject 
TransportReplace 

Definition at line 50 of file JinglePayload.h.


Constructor & Destructor Documentation

Swift::JinglePayload::JinglePayload (  )  [inline]

Definition at line 68 of file JinglePayload.h.

Swift::JinglePayload::JinglePayload ( Action  action,
const std::string &  sessionID 
) [inline]

Definition at line 71 of file JinglePayload.h.


Member Function Documentation

void Swift::JinglePayload::addContent ( JingleContentPayload::ref  content  )  [inline]

Definition at line 107 of file JinglePayload.h.

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

Definition at line 111 of file JinglePayload.h.

Action Swift::JinglePayload::getAction (  )  const [inline]

Definition at line 79 of file JinglePayload.h.

const std::vector<JingleContentPayload::ref> Swift::JinglePayload::getContents (  )  const [inline]

Definition at line 115 of file JinglePayload.h.

const JID& Swift::JinglePayload::getInitiator (  )  const [inline]

Definition at line 87 of file JinglePayload.h.

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

Definition at line 138 of file JinglePayload.h.

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

Definition at line 124 of file JinglePayload.h.

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

Definition at line 119 of file JinglePayload.h.

const boost::optional<Reason>& Swift::JinglePayload::getReason (  )  const [inline]

Definition at line 154 of file JinglePayload.h.

const JID& Swift::JinglePayload::getResponder (  )  const [inline]

Definition at line 95 of file JinglePayload.h.

const std::string& Swift::JinglePayload::getSessionID (  )  const [inline]

Definition at line 103 of file JinglePayload.h.

void Swift::JinglePayload::setAction ( Action  action  )  [inline]

Definition at line 75 of file JinglePayload.h.

void Swift::JinglePayload::setInitiator ( const JID initiator  )  [inline]

Definition at line 83 of file JinglePayload.h.

void Swift::JinglePayload::setReason ( const Reason reason  )  [inline]

Definition at line 150 of file JinglePayload.h.

void Swift::JinglePayload::setResponder ( const JID responder  )  [inline]

Definition at line 91 of file JinglePayload.h.

void Swift::JinglePayload::setSessionID ( const std::string &  id  )  [inline]

Definition at line 99 of file JinglePayload.h.