2 // SOSTransportMessageIDS.h
6 #ifndef sec_SOSTransportMessageIDS_h
7 #define sec_SOSTransportMessageIDS_h
12 kIDSStartPingTestMessage
= 1,
13 kIDSEndPingTestMessage
= 2,
14 kIDSSendOneMessage
= 3,
15 kIDSPeerReceivedACK
= 4,
16 kIDSPeerAvailability
= 6,
17 kIDSPeerAvailabilityDone
= 7,
18 kIDSKeychainSyncIDSFragmentation
= 8,
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
;;
32 @interface SOSMessageIDS
: SOSMessage
34 CFBooleanRef useFragmentation
;
36 @
property (atomic
) CFBooleanRef useFragmentation
;
38 -(id
) initWithAcount
:(SOSAccount
*)acct circleName
:(CFStringRef
)name
;
40 -(HandleIDSMessageReason
) SOSTransportMessageIDSHandleMessage
:(SOSAccount
*)account m
:(CFDictionaryRef
) message err
:(CFErrorRef
*)error
;
42 -(bool) SOSTransportMessageIDSGetIDSDeviceID
:(SOSAccount
*)acct
;
44 -(void) SOSTransportMessageIDSSetFragmentationPreference
:(SOSMessage
*) transport pref
:(CFBooleanRef
) preference
;
45 -(CFBooleanRef
) SOSTransportMessageIDSGetFragmentationPreference
:(SOSMessage
*) transport
;