]> git.saurik.com Git - apple/security.git/blob - OSX/sec/SOSCircle/SecureObjectSync/SOSTransportMessageIDS.h
Security-58286.70.7.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / SOSTransportMessageIDS.h
1 //
2 // SOSTransportMessageIDS.h
3 // sec
4 //
5 //
6 #ifndef sec_SOSTransportMessageIDS_h
7 #define sec_SOSTransportMessageIDS_h
8
9 @class SOSMessage;
10
11 typedef enum {
12 kIDSStartPingTestMessage = 1,
13 kIDSEndPingTestMessage= 2,
14 kIDSSendOneMessage = 3,
15 kIDSPeerReceivedACK = 4,
16 kIDSPeerAvailability = 6,
17 kIDSPeerAvailabilityDone = 7,
18 kIDSKeychainSyncIDSFragmentation = 8,
19 kIDSPeerUsesACK = 9
20 } idsOperation;
21
22
23 extern const CFStringRef kSecIDSErrorDomain;
24 extern const CFStringRef kIDSOperationType;
25 extern const CFStringRef kIDSMessageToSendKey;
26 extern const CFStringRef kIDSMessageUniqueID;
27 extern const CFStringRef kIDSMessageRecipientPeerID;
28 extern const CFStringRef kIDSMessageRecipientDeviceID;
29 extern const CFStringRef kIDSMessageUsesAckModel;
30 extern const CFStringRef kIDSMessageSenderDeviceID;;
31
32 @interface SOSMessageIDS : SOSMessage
33 {
34 CFBooleanRef useFragmentation;
35 }
36 @property (atomic) CFBooleanRef useFragmentation;
37
38 -(id) initWithAcount:(SOSAccount*)acct circleName:(CFStringRef)name;
39
40 -(HandleIDSMessageReason) SOSTransportMessageIDSHandleMessage:(SOSAccount*)account m:(CFDictionaryRef) message err:(CFErrorRef *)error;
41
42 -(bool) SOSTransportMessageIDSGetIDSDeviceID:(SOSAccount*)acct;
43
44 -(void) SOSTransportMessageIDSSetFragmentationPreference:(SOSMessage*) transport pref:(CFBooleanRef) preference;
45 -(CFBooleanRef) SOSTransportMessageIDSGetFragmentationPreference:(SOSMessage*) transport;
46
47 @end
48 #endif