Public Member Functions

Swift::PayloadAddingPresenceSender Class Reference

This presence sender adds payloads to outgoing presences. More...

Inheritance diagram for Swift::PayloadAddingPresenceSender:
Collaboration diagram for Swift::PayloadAddingPresenceSender:

List of all members.

Public Member Functions

 PayloadAddingPresenceSender (PresenceSender *)
void sendPresence (boost::shared_ptr< Presence >)
bool isAvailable () const
void setPayload (boost::shared_ptr< Payload >)
 Sets the payload to be added to outgoing presences.
void reset ()
 Resets the presence sender.
virtual void sendPresence (Presence::ref)=0

Detailed Description

This presence sender adds payloads to outgoing presences.

This class isn't meant to be used with directed presence.

Definition at line 21 of file PayloadAddingPresenceSender.h.


Constructor & Destructor Documentation

Swift::PayloadAddingPresenceSender::PayloadAddingPresenceSender ( PresenceSender  ) 

Member Function Documentation

bool Swift::PayloadAddingPresenceSender::isAvailable (  )  const [virtual]

Implements Swift::PresenceSender.

void Swift::PayloadAddingPresenceSender::reset (  ) 

Resets the presence sender.

This puts the presence sender back in the initial state (before initial presence has been sent). This also resets the chained sender.

void Swift::PayloadAddingPresenceSender::sendPresence ( boost::shared_ptr< Presence  ) 
virtual void Swift::PresenceSender::sendPresence ( Presence::ref   )  [pure virtual, inherited]
void Swift::PayloadAddingPresenceSender::setPayload ( boost::shared_ptr< Payload  ) 

Sets the payload to be added to outgoing presences.

If initial presence has been sent, this will resend the last sent presence with an updated payload. Initial presence is reset when unavailable presence is sent, or when reset() is called.