Public Member Functions | Protected Member Functions

Swift::Request Class Reference

An IQ get/set request query. More...

Inheritance diagram for Swift::Request:
Collaboration diagram for Swift::Request:

List of all members.

Public Member Functions

void send ()
const JIDgetReceiver () const

Protected Member Functions

 Request (IQ::Type type, const JID &receiver, boost::shared_ptr< Payload > payload, IQRouter *router)
 Constructs a request of a certain type to a specific receiver, and attaches the given payload.
 Request (IQ::Type type, const JID &sender, const JID &receiver, boost::shared_ptr< Payload > payload, IQRouter *router)
 Constructs a request of a certain type to a specific receiver from a specific sender, and attaches the given payload.
 Request (IQ::Type type, const JID &receiver, IQRouter *router)
 Constructs a request of a certain type to a specific receiver.
 Request (IQ::Type type, const JID &sender, const JID &receiver, IQRouter *router)
 Constructs a request of a certain type to a specific receiver from a specific sender.
virtual void setPayload (boost::shared_ptr< Payload > payload)
boost::shared_ptr< PayloadgetPayload () const
virtual void handleResponse (boost::shared_ptr< Payload >, boost::shared_ptr< ErrorPayload >)=0

Detailed Description

An IQ get/set request query.

Definition at line 25 of file Request.h.


Constructor & Destructor Documentation

Swift::Request::Request ( IQ::Type  type,
const JID receiver,
boost::shared_ptr< Payload payload,
IQRouter router 
) [protected]

Constructs a request of a certain type to a specific receiver, and attaches the given payload.

Referenced by Swift::GetPrivateStorageRequest< PAYLOAD_TYPE >::create().

Swift::Request::Request ( IQ::Type  type,
const JID sender,
const JID receiver,
boost::shared_ptr< Payload payload,
IQRouter router 
) [protected]

Constructs a request of a certain type to a specific receiver from a specific sender, and attaches the given payload.

Swift::Request::Request ( IQ::Type  type,
const JID receiver,
IQRouter router 
) [protected]

Constructs a request of a certain type to a specific receiver.

Swift::Request::Request ( IQ::Type  type,
const JID sender,
const JID receiver,
IQRouter router 
) [protected]

Constructs a request of a certain type to a specific receiver from a specific sender.


Member Function Documentation

boost::shared_ptr<Payload> Swift::Request::getPayload (  )  const [inline, protected]
const JID& Swift::Request::getReceiver (  )  const [inline]

Definition at line 29 of file Request.h.

virtual void Swift::Request::handleResponse ( boost::shared_ptr< Payload ,
boost::shared_ptr< ErrorPayload  
) [protected, pure virtual]
void Swift::Request::send (  ) 
virtual void Swift::Request::setPayload ( boost::shared_ptr< Payload payload  )  [inline, protected, virtual]

Definition at line 74 of file Request.h.