forked from tinycode/xmppframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
XMPPUser.h
62 lines (46 loc) · 1.4 KB
/
XMPPUser.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
#import <Foundation/Foundation.h>
#import "DDXML.h"
@class XMPPJID;
@class XMPPIQ;
@class XMPPPresence;
@class XMPPResource;
#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4
#define NSStringCompareOptions unsigned
#endif
@interface XMPPUser : NSObject <NSCoding>
{
XMPPJID *jid;
NSMutableDictionary *itemAttributes;
NSMutableDictionary *resources;
XMPPResource *primaryResource;
#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4
int tag;
#else
NSInteger tag;
#endif
}
- (id)initWithJID:(XMPPJID *)jid;
- (id)initWithItem:(NSXMLElement *)item;
- (XMPPJID *)jid;
- (NSString *)nickname;
- (NSString *)displayName;
- (BOOL)isOnline;
- (BOOL)isPendingApproval;
- (XMPPResource *)primaryResource;
- (XMPPResource *)resourceForJID:(XMPPJID *)jid;
- (NSArray *)sortedResources;
- (NSArray *)unsortedResources;
- (void)updateWithItem:(NSXMLElement *)item;
- (void)updateWithPresence:(XMPPPresence *)presence;
- (NSComparisonResult)compareByName:(XMPPUser *)another;
- (NSComparisonResult)compareByName:(XMPPUser *)another options:(NSStringCompareOptions)mask;
- (NSComparisonResult)compareByAvailabilityName:(XMPPUser *)another;
- (NSComparisonResult)compareByAvailabilityName:(XMPPUser *)another options:(NSStringCompareOptions)mask;
#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4
- (int)tag;
- (void)setTag:(int)anInt;
#else
- (NSInteger)tag;
- (void)setTag:(NSInteger)anInt;
#endif
@end