This presence sender adds payloads to outgoing presences. More...
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 |
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.
Swift::PayloadAddingPresenceSender::PayloadAddingPresenceSender | ( | PresenceSender * | ) |
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] |
Implemented in Swift::DirectedPresenceSender, and Swift::StanzaChannelPresenceSender.
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.