3 #ifndef sec_SOSTransportCircleKVS_h
4 #define sec_SOSTransportCircleKVS_h
6 #import "SOSTransportCircle.h"
7 @
class SOSCircleStorageTransport
;
9 @interface SOSKVSCircleStorageTransport
: SOSCircleStorageTransport
11 NSMutableDictionary
*pending_changes
;
15 @
property (retain
, nonatomic
) NSMutableDictionary
*pending_changes
;
16 @
property (retain
, nonatomic
) NSString
*circleName
;
20 -(id
)initWithAccount
:(SOSAccount
*)acct andCircleName
:(NSString
*)name
;
21 -(NSString
*) getCircleName
;
22 -(bool) flushChanges
:(CFErrorRef
*)error
;
24 -(void)kvsAddToPendingChanges
:(CFStringRef
) message_key data
:(CFDataRef
)message_data
;
25 -(bool)kvsSendPendingChanges
:(CFErrorRef
*)error
;
27 -(bool)kvsAppendKeyInterest
:(CFMutableArrayRef
) alwaysKeys firstUnlock
:(CFMutableArrayRef
) afterFirstUnlockKeys unlocked
:(CFMutableArrayRef
)unlockedKeys err
:(CFErrorRef
*)error
;
28 -(bool)kvsAppendRingKeyInterest
:(CFMutableArrayRef
) alwaysKeys firstUnlock
:(CFMutableArrayRef
)afterFirstUnlockKeys unlocked
:(CFMutableArrayRef
) unlockedKeys err
:(CFErrorRef
*)error
;
29 -(bool)kvsAppendDebugKeyInterest
:(CFMutableArrayRef
) alwaysKeys firstUnlock
:(CFMutableArrayRef
)afterFirstUnlockKeys unlocked
:(CFMutableArrayRef
) unlockedKeys err
:(CFErrorRef
*)error
;
31 -(bool) kvsRingFlushChanges
:(CFErrorRef
*) error
;
32 -(bool) kvsRingPostRing
:(CFStringRef
) ringName ring
:(CFDataRef
) ring err
:(CFErrorRef
*)error
;
34 -(bool) kvssendDebugInfo
:(CFStringRef
) type debug
:(CFTypeRef
) debugInfo err
:(CFErrorRef
*)error
;
35 -(bool) kvsSendOfficialDSID
:(CFStringRef
) dsid err
:(CFErrorRef
*)error
;
37 -(bool) kvsSendAccountChangedWithDSID
:(CFStringRef
) dsid err
:(CFErrorRef
*)error
;