tinycode / xmppframework

An XMPP Framework in Objective-C for the Cocoa development community. The framework can be used for desktop applications or iPhone applications.

xmppframework / XMPPPing.h
100644 33 lines (20 sloc) 0.544 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#import <Foundation/Foundation.h>
 
@class XMPPClient;
@class XMPPResource;
@class XMPPIQ;
 
 
@interface XMPPPing : NSObject
{
id delegate;
 
XMPPClient *client;
NSMutableArray *pingIDs;
}
 
- (id)initWithXMPPClient:(XMPPClient *)xmppClient delegate:(id)delegate;
 
- (XMPPClient *)xmppClient;
 
- (id)delegate;
- (void)setDelegate:(id)delegate;
 
- (void)sendPingToServer;
- (void)sendPingToResource:(XMPPResource *)resource;
 
@end
 
@interface NSObject (XMPPPingDelegate)
 
- (void)xmppPing:(XMPPPing *)sender didReceivePong:(XMPPIQ *)pong;
 
@end