2 // KCAccountKCCircleDelegate.h
6 #import <KeychainCircle/KCJoiningSession.h>
8 @interface KCJoiningRequestAccountCircleDelegate
: NSObject
< KCJoiningRequestCircleDelegate
>
10 Get this devices peer info (As Application)
13 SOSPeerInfoRef object or NULL if we had an error.
15 - (SOSPeerInfoRef
) copyPeerInfoError
: (NSError
**) error
;
18 Handle recipt of confirmed circleJoinData over the channel
20 @parameter circleJoinData
21 Data the acceptor made to allow us to join the circle.
23 Piggybacking version, let's secd know it should expect more data
25 - (bool) processCircleJoinData
: (NSData
*) circleJoinData version
:(PiggyBackProtocolVersion
)version error
: (NSError
**)error
;
27 + (instancetype
) delegate
;
31 @interface KCJoiningAcceptAccountCircleDelegate
: NSObject
< KCJoiningAcceptCircleDelegate
>
33 Handle the request's peer info and get the blob they can use to get in circle
35 SOSPeerInfo sent from requestor to apply to the circle
37 Error resulting in looking at peer and trying to produce circle join data
39 Data containing blob the requestor can use to get in circle
41 - (NSData
*) circleJoinDataFor
: (SOSPeerInfoRef
) peer
42 error
: (NSError
**) error
;
43 -(NSData
*) circleGetInitialSyncViews
:(SOSInitialSyncFlags
)flags error
:(NSError
**) error
;
45 + (instancetype
) delegate
;