-
Notifications
You must be signed in to change notification settings - Fork 2
/
XMPPCapabilities.h
75 lines (70 loc) · 1.82 KB
/
XMPPCapabilities.h
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
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
69
70
71
72
73
74
75
//
// XMPPCapabilities.h
// Jabber
//
// Created by David Chisnall on 08/05/2005.
// Copyright 2005 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "JID.h"
#import <EtoileXML/ETXMLNode.h>
/**
* Service Discovery node. Not yet implemented; please feel free to modify this
*/
@interface XMPPDiscoIdentity : NSObject {
NSString * category;
NSString * type;
NSString * name;
}
+ (XMPPDiscoIdentity*) identityWithCategory:(NSString*)aCategory
type:(NSString*)aType
name:(NSString*)aName;
+ (XMPPDiscoIdentity*) identityWithXML:(ETXMLNode*)xml;
- (NSString*) category;
- (NSString*) type;
- (NSString*) name;
- (ETXMLNode*) toXML;
@end
@interface XMPPDiscoNode : NSObject {
JID * jid;
NSString * node;
NSSet * identities;
NSSet * features;
}
+ (XMPPDiscoNode*) discoNodeWithJID:(JID*)aJID
node:(NSString*)aNode
identities:(NSSet*)anIdentities
features:(NSSet*)aFeatures;
- (XMPPDiscoNode*) initWithJID:(JID*)aJID
node:(NSString*)aNode
identities:(NSSet*)anIdentities
features:(NSSet*)aFeatures;
+ (XMPPDiscoNode*) discoNodeFromXML:(ETXMLNode*)xml;
- (XMPPDiscoNode*) initFromXML:(ETXMLNode*)xml;
- (NSString*) node;
- (NSSet*) features;
- (NSSet*) identities;
- (JID*) jid;
- (BOOL) supportsFeature:(NSString*)feature;
- (ETXMLNode*) toXML;
@end
@interface XMPPDiscoTreeNode : NSObject {
JID * jid;
NSString * name;
NSString * node;
NSSet * children;
}
+ (XMPPDiscoTreeNode*) discoTreeNodeWithJID:(JID*)aJID
name:(NSString*)aName
node:(NSString*)aNode;
- (XMPPDiscoTreeNode*) initWithJID:(JID*)aJID
name:(NSString*)aName
node:(NSString*)aNode;
- (void) addChildrenFromXML:(ETXMLNode*)xml;
- (JID*) jid;
- (NSString*) name;
- (NSString*) node;
- (NSSet*) children;
- (ETXMLNode*) toXML;
- (ETXMLNode*) toXMLAsChild;
@end