Document XMPPMulticastDelegate
This commit is contained in:
parent
064827b96c
commit
b6e0e916e1
2 changed files with 30 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A protocol should be (partially) implemented
|
* \brief A protocol should be (partially) implemented
|
||||||
* by delegates of a XMPPConnection
|
* by delegates of a XMPPConnection
|
||||||
*/
|
*/
|
||||||
@protocol XMPPConnectionDelegate
|
@protocol XMPPConnectionDelegate
|
||||||
#ifndef XMPP_CONNECTION_M
|
#ifndef XMPP_CONNECTION_M
|
||||||
|
|
|
@ -24,15 +24,44 @@
|
||||||
|
|
||||||
@class OFDataArray;
|
@class OFDataArray;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A class to provide multiple delegates in a single class
|
||||||
|
*/
|
||||||
@interface XMPPMulticastDelegate: OFObject
|
@interface XMPPMulticastDelegate: OFObject
|
||||||
{
|
{
|
||||||
OFDataArray *delegates;
|
OFDataArray *delegates;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a delegate to the set of managed delegates
|
||||||
|
*
|
||||||
|
* \param delegate The delegate to add
|
||||||
|
*/
|
||||||
- (void)addDelegate: (id)delegate;
|
- (void)addDelegate: (id)delegate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes a delegate from the set of managed delegates
|
||||||
|
*
|
||||||
|
* \param delegate The delegate to remove
|
||||||
|
*/
|
||||||
- (void)removeDelegate: (id)delegate;
|
- (void)removeDelegate: (id)delegate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Broadcasts a selector with one object to all managed delegates
|
||||||
|
*
|
||||||
|
* \param selector The selector to broadcast
|
||||||
|
* \param object The object to broadcast
|
||||||
|
*/
|
||||||
- (BOOL)broadcastSelector: (SEL)selector
|
- (BOOL)broadcastSelector: (SEL)selector
|
||||||
withObject: (id)object;
|
withObject: (id)object;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Broadcasts a selector with two objects to all managed delegates
|
||||||
|
*
|
||||||
|
* \param selector The selector to broadcast
|
||||||
|
* \param object1 The first object to broadcast
|
||||||
|
* \param object2 The second object to broadcast
|
||||||
|
*/
|
||||||
- (BOOL)broadcastSelector: (SEL)selector
|
- (BOOL)broadcastSelector: (SEL)selector
|
||||||
withObject: (id)object1
|
withObject: (id)object1
|
||||||
withObject: (id)object2;
|
withObject: (id)object2;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue