4 #import <Foundation/Foundation.h>
5 #import "keychain/ckks/CKKSKeychainView.h"
6 #import "keychain/ckks/CKKSGroupOperation.h"
7 #import "keychain/ot/OctagonStateMachine.h"
9 NS_ASSUME_NONNULL_BEGIN
11 // Flag initialization
12 typedef OctagonFlag CKKSFlag
;
14 // The set of trusted peers has changed
15 extern CKKSFlag
* const CKKSFlagTrustedPeersSetChanged
;
17 // A client has requested that TLKs be created
18 extern CKKSFlag
* const CKKSFlagTLKCreationRequested
;
19 // We were waiting for a TLK upload, and one has occurred
20 extern CKKSFlag
* const CKKSFlagKeyStateTLKsUploaded
;
22 extern CKKSFlag
* const CKKSFlagCloudKitLoggedIn
;
23 extern CKKSFlag
* const CKKSFlagCloudKitLoggedOut
;
25 extern CKKSFlag
* const CKKSFlagBeginTrustedOperation
;
26 extern CKKSFlag
* const CKKSFlagEndTrustedOperation
;
28 extern CKKSFlag
* const CKKSFlagChangeTokenExpired
;
29 extern CKKSFlag
* const CKKSFlagCloudKitZoneMissing
;
31 extern CKKSFlag
* const CKKSFlagDeviceUnlocked
;
33 extern CKKSFlag
* const CKKSFlagFetchRequested
;
34 // Added when a key hierarchy fetch completes.
35 extern CKKSFlag
* const CKKSFlagFetchComplete
;
37 extern CKKSFlag
* const CKKSFlagKeyStateProcessRequested
;
39 extern CKKSFlag
* const CKKSFlagProcessIncomingQueue
;
40 extern CKKSFlag
* const CKKSFlagProcessOutgoingQueue
;
41 extern CKKSFlag
* const CKKSFlagScanLocalItems
;
42 extern CKKSFlag
* const CKKSFlagItemReencryptionNeeded
;
44 extern CKKSFlag
* const CKKSFlag24hrNotification
;
46 NSSet
<CKKSFlag
*>* CKKSAllStateFlags(void);