]> git.saurik.com Git - apple/security.git/blob - OSX/sec/SOSCircle/SecureObjectSync/SOSTransportCircle.h
Security-58286.60.28.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / SOSTransportCircle.h
1
2 #ifndef SOSTransportCircle_h
3 #define SOSTransportCircle_h
4 #import "Security/SecureObjectSync/SOSPeerInfo.h"
5
6 @class SOSAccount;
7
8 @interface SOSCircleStorageTransport : NSObject
9 {
10 SOSAccount* account;
11 }
12
13 @property (retain, nonatomic) SOSAccount* account;
14
15 -(id) init;
16 -(SOSCircleStorageTransport*) initWithAccount:(SOSAccount*)account;
17
18 -(CFIndex)circleGetTypeID;
19 -(CFIndex)getTransportType;
20 -(SOSAccount*)getAccount;
21
22 -(bool) expireRetirementRecords:(CFDictionaryRef) retirements err:(CFErrorRef *)error;
23
24 -(bool) flushChanges:(CFErrorRef *)error;
25 -(bool) postCircle:(CFStringRef)circleName circleData:(CFDataRef)circle_data err:(CFErrorRef *)error;
26 -(bool) postRetirement:(CFStringRef) circleName peer:(SOSPeerInfoRef) peer err:(CFErrorRef *)error;
27
28 -(CFDictionaryRef) CF_RETURNS_RETAINED handleRetirementMessages:(CFMutableDictionaryRef) circle_retirement_messages_table err:(CFErrorRef *)error;
29 -(CFArrayRef)CF_RETURNS_RETAINED handleCircleMessagesAndReturnHandledCopy:(CFMutableDictionaryRef) circle_circle_messages_table err:(CFErrorRef *)error;
30
31 @end
32 #endif