Public Member Functions | Public Attributes

Swift::SubscriptionManager Class Reference

Collaboration diagram for Swift::SubscriptionManager:

List of all members.

Public Member Functions

 SubscriptionManager (StanzaChannel *stanzaChannel)
 ~SubscriptionManager ()
void cancelSubscription (const JID &jid)
void confirmSubscription (const JID &jid)
void requestSubscription (const JID &jid)

Public Attributes

boost::signal< void(const JID
&, const std::string
&, Presence::ref)> 
onPresenceSubscriptionRequest
 This signal is emitted when a presence subscription request is received.
boost::signal< void(const JID
&, const std::string &)> 
onPresenceSubscriptionRevoked

Detailed Description

Definition at line 20 of file SubscriptionManager.h.


Constructor & Destructor Documentation

Swift::SubscriptionManager::SubscriptionManager ( StanzaChannel stanzaChannel  ) 
Swift::SubscriptionManager::~SubscriptionManager (  ) 

Member Function Documentation

void Swift::SubscriptionManager::cancelSubscription ( const JID jid  ) 
void Swift::SubscriptionManager::confirmSubscription ( const JID jid  ) 
void Swift::SubscriptionManager::requestSubscription ( const JID jid  ) 

Member Data Documentation

boost::signal<void (const JID&, const std::string&, Presence::ref)> Swift::SubscriptionManager::onPresenceSubscriptionRequest

This signal is emitted when a presence subscription request is received.

The third parameter of this signal is the original presence stanza received. This is useful when the subscriber adds extensions to the request.

Definition at line 37 of file SubscriptionManager.h.

boost::signal<void (const JID&, const std::string&)> Swift::SubscriptionManager::onPresenceSubscriptionRevoked

Definition at line 39 of file SubscriptionManager.h.