XMPPContactManager: Support for handling subscription requests

This commit is contained in:
Florian Zeitz 2013-06-09 20:26:24 +02:00
parent 702a18636d
commit bd0440b3ee
2 changed files with 49 additions and 4 deletions

View file

@ -57,6 +57,15 @@
- (void)contactManager: (XMPPContactManager*)manager
didRemoveContact: (XMPPContact*)contact;
/**
* \brief This callback is called when a subscription request is received
*
* \param manager The contact manager that received the request
* \param presence The type=subscribe presence
*/
- (void)contactManager: (XMPPContactManager*)manager
didReceiveSubscriptionRequest: (XMPPPresence*)presence;
/**
* \brief This callback is called whenever a contact is about to change its
* roster item
@ -118,6 +127,9 @@
- initWithConnection: (XMPPConnection*)connection
roster: (XMPPRoster*)roster;
- (void)sendSubscribedToJID: (XMPPJID*)subscriber;
- (void)sendUnsubscribedToJID: (XMPPJID*)subscriber;
/**
* \brief Adds the specified delegate.
*