]> git.saurik.com Git - apple/security.git/blob - Keychain/KDSecCircle.h
Security-55471.14.tar.gz
[apple/security.git] / Keychain / KDSecCircle.h
1 //
2 // KDSecCircle.h
3 // Security
4 //
5 // Created by J Osborne on 2/20/13.
6 //
7 //
8
9 #import "SecureObjectSync/SOSCloudCircle.h"
10 #import <Foundation/Foundation.h>
11
12 @interface KDSecCircle : NSObject
13
14 @property (readonly) BOOL isInCircle;
15 @property (readonly) BOOL isOutOfCircle;
16
17 @property (readonly) SOSCCStatus rawStatus;
18
19 @property (readonly) NSString *status;
20 @property (readonly) NSError *error;
21
22 // Both of these are arrays of KDCircelPeer objects
23 @property (readonly) NSArray *peers;
24 @property (readonly) NSArray *applicants;
25
26 -(void)addChangeCallback:(dispatch_block_t)callback;
27 -(id)init;
28
29 // these are "try to", and may (most likely will) not complete by the time they return
30 -(void)enableSync;
31 -(void)disableSync;
32 -(void)rejectApplicantId:(NSString*)applicantId;
33 -(void)acceptApplicantId:(NSString*)applicantId;
34
35 @end