ObjXMPP  Diff

Differences From Artifact [7474d32e16]:

To Artifact [dd96fb9a11]:


20
21
22
23
24
25
26



27
28
29
30
31





32






33







34
35








36
37
38
39
 * POSSIBILITY OF SUCH DAMAGE.
 */

#import <ObjFW/OFObject.h>

@class OFDataArray;




@interface XMPPMulticastDelegate: OFObject
{
	OFDataArray *delegates;
}






- (void)addDelegate: (id)delegate;






- (void)removeDelegate: (id)delegate;







- (BOOL)broadcastSelector: (SEL)selector
	       withObject: (id)object;








- (BOOL)broadcastSelector: (SEL)selector
	       withObject: (id)object1
	       withObject: (id)object2;
@end







>
>
>





>
>
>
>
>

>
>
>
>
>
>

>
>
>
>
>
>
>


>
>
>
>
>
>
>
>




20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
 * POSSIBILITY OF SUCH DAMAGE.
 */

#import <ObjFW/OFObject.h>

@class OFDataArray;

/**
 * \brief A class to provide multiple delegates in a single class
 */
@interface XMPPMulticastDelegate: OFObject
{
	OFDataArray *delegates;
}

/**
 * Adds a delegate to the set of managed delegates
 *
 * \param delegate The delegate to add
 */
- (void)addDelegate: (id)delegate;

/**
 * Removes a delegate from the set of managed delegates
 *
 * \param delegate The delegate to remove
 */
- (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
	       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
	       withObject: (id)object1
	       withObject: (id)object2;
@end