ObjXMPP  Check-in [34a22d87a9]

Overview
Comment:Document XMPPMulticastDelegate
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 34a22d87a9bb3526627afba8e589e8d340e58389fdd3bec510929f3470da02dc
User & Date: florob@babelmonkeys.de on 2012-02-01 00:26:06
Other Links: manifest | tags
Context
2012-02-03
09:40
Merge. check-in: 7738fa4342 user: js tags: trunk
2012-02-01
00:26
Document XMPPMulticastDelegate check-in: 34a22d87a9 user: florob@babelmonkeys.de tags: trunk
2012-01-30
22:39
Document XMPPConnectionDelegate check-in: b0ac3cc5eb user: florob@babelmonkeys.de tags: trunk
Changes

Modified src/XMPPConnection.h from [211daaefb9] to [f6f5de0471].

30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@class XMPPPresence;
@class XMPPAuthenticator;
@class SSLSocket;
@class XMPPMulticastDelegate;

/**
 * \brief A protocol should be (partially) implemented
 * 	  by delegates of a XMPPConnection
 */
@protocol XMPPConnectionDelegate
#ifndef XMPP_CONNECTION_M
    <OFObject>
#endif
#ifdef OF_HAVE_OPTIONAL_PROTOCOLS
@optional







|







30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@class XMPPPresence;
@class XMPPAuthenticator;
@class SSLSocket;
@class XMPPMulticastDelegate;

/**
 * \brief A protocol should be (partially) implemented
 *	  by delegates of a XMPPConnection
 */
@protocol XMPPConnectionDelegate
#ifndef XMPP_CONNECTION_M
    <OFObject>
#endif
#ifdef OF_HAVE_OPTIONAL_PROTOCOLS
@optional

Modified src/XMPPMulticastDelegate.h from [7474d32e16] to [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