]>
Commit | Line | Data |
---|---|---|
fa7225c8 A |
1 | // |
2 | // KCAccountKCCircleDelegate.h | |
3 | // Security | |
4 | // | |
5 | ||
6 | #import <KeychainCircle/KCJoiningSession.h> | |
7 | ||
8 | @interface KCJoiningRequestAccountCircleDelegate : NSObject < KCJoiningRequestCircleDelegate> | |
9 | /*! | |
10 | Get this devices peer info (As Application) | |
11 | ||
12 | @result | |
13 | SOSPeerInfoRef object or NULL if we had an error. | |
14 | */ | |
15 | - (SOSPeerInfoRef) copyPeerInfoError: (NSError**) error; | |
16 | ||
17 | /*! | |
18 | Handle recipt of confirmed circleJoinData over the channel | |
19 | ||
20 | @parameter circleJoinData | |
21 | Data the acceptor made to allow us to join the circle. | |
22 | ||
23 | */ | |
24 | - (bool) processCircleJoinData: (NSData*) circleJoinData error: (NSError**)error; | |
25 | ||
26 | + (instancetype) delegate; | |
27 | ||
28 | @end | |
29 | ||
30 | @interface KCJoiningAcceptAccountCircleDelegate : NSObject < KCJoiningAcceptCircleDelegate> | |
31 | /*! | |
32 | Handle the request's peer info and get the blob they can use to get in circle | |
33 | @param peer | |
34 | SOSPeerInfo sent from requestor to apply to the circle | |
35 | @param error | |
36 | Error resulting in looking at peer and trying to produce circle join data | |
37 | @result | |
38 | Data containing blob the requestor can use to get in circle | |
39 | */ | |
40 | - (NSData*) circleJoinDataFor: (SOSPeerInfoRef) peer | |
41 | error: (NSError**) error; | |
42 | ||
43 | + (instancetype) delegate; | |
44 | ||
45 | @end |