XMPPRosterMemoryStoragePrivate.h
1.31 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#import "XMPPUserMemoryStorageObject.h"
#import "XMPPResourceMemoryStorageObject.h"
/**
* The following methods are designed to be invoked ONLY from
* within the XMPPRosterMemoryStorage implementation.
*
* Warning: XMPPUserMemoryStorage and XMPPResourceMemoryStorage are not explicitly thread-safe.
* Only copies that are no longer being actively
* altered by the XMPPRosterMemoryStorage class should be considered read-only and therefore thread-safe.
**/
#define XMPP_USER_NO_CHANGE 0
#define XMPP_USER_ADDED_RESOURCE 1
#define XMPP_USER_UPDATED_RESOURCE 2
#define XMPP_USER_REMOVED_RESOURCE 3
@interface XMPPUserMemoryStorageObject ()
- (void)commonInit;
- (id)initWithJID:(XMPPJID *)aJid;
- (id)initWithItem:(NSXMLElement *)item;
- (void)updateWithItem:(NSXMLElement *)item;
- (int)updateWithPresence:(XMPPPresence *)presence
resourceClass:(Class)resourceClass
andGetResource:(XMPPResourceMemoryStorageObject **)resourcePtr;
- (void)clearAllResources;
#if TARGET_OS_IPHONE
@property (nonatomic, strong, readwrite) UIImage *photo;
#else
@property (nonatomic, strong, readwrite) NSImage *photo;
#endif
@end
@interface XMPPResourceMemoryStorageObject ()
- (id)initWithPresence:(XMPPPresence *)aPresence;
- (void)updateWithPresence:(XMPPPresence *)presence;
- (XMPPPresence *)presence;
@end