4 #import "keychain/ckks/CKKSStates.h"
5 #import "keychain/ckks/CKKSKeychainView.h"
6 #import "keychain/ot/ObjCImprovements.h"
8 CKKSFlag* const CKKSFlagTrustedPeersSetChanged = (CKKSFlag*) @"trusted_peers_changed";
10 CKKSFlag* const CKKSFlagTLKCreationRequested = (CKKSFlag*)@"tlk_creation";
11 CKKSFlag* const CKKSFlagKeyStateTLKsUploaded = (CKKSFlag*)@"tlks_uploaded";
13 CKKSFlag* const CKKSFlagCloudKitLoggedIn = (CKKSFlag*)@"ck_account_logged_in";
14 CKKSFlag* const CKKSFlagCloudKitLoggedOut = (CKKSFlag*)@"ck_account_logged_out";
16 CKKSFlag* const CKKSFlagBeginTrustedOperation = (CKKSFlag*)@"trusted_operation_begin";
17 CKKSFlag* const CKKSFlagEndTrustedOperation = (CKKSFlag*)@"trusted_operation_end";
19 CKKSFlag* const CKKSFlagChangeTokenExpired = (CKKSFlag*)@"ck_change_token_expired";
20 CKKSFlag* const CKKSFlagCloudKitZoneMissing = (CKKSFlag*)@"ck_zone_missing";
22 CKKSFlag* const CKKSFlagDeviceUnlocked = (CKKSFlag*)@"device_unlocked";
24 CKKSFlag* const CKKSFlagFetchRequested = (CKKSFlag*) @"fetch_requested";
25 CKKSFlag* const CKKSFlagFetchComplete = (CKKSFlag*)@"fetch_complete";
27 CKKSFlag* const CKKSFlagKeyStateProcessRequested = (CKKSFlag*) @"key_process_requested";
29 CKKSFlag* const CKKSFlagProcessIncomingQueue = (CKKSFlag*)@"process_incoming_queue";
30 CKKSFlag* const CKKSFlagProcessOutgoingQueue = (CKKSFlag*)@"process_outgoing_queue";
31 CKKSFlag* const CKKSFlagScanLocalItems = (CKKSFlag*)@"dropped_items";
32 CKKSFlag* const CKKSFlagItemReencryptionNeeded = (CKKSFlag*)@"item_reencryption_needed";
34 CKKSFlag* const CKKSFlag24hrNotification = (CKKSFlag*)@"24_hr_notification";
36 NSSet<CKKSFlag*>* CKKSAllStateFlags(void)
38 static NSSet<CKKSFlag*>* s = nil;
39 static dispatch_once_t onceToken;
40 dispatch_once(&onceToken, ^{
41 s = [NSSet setWithArray:@[
42 CKKSFlagFetchRequested,
43 CKKSFlagKeyStateProcessRequested,
44 CKKSFlagTrustedPeersSetChanged,
45 CKKSFlagTLKCreationRequested,
46 CKKSFlagScanLocalItems,
47 CKKSFlagCloudKitLoggedIn,
48 CKKSFlagCloudKitLoggedOut,
49 CKKSFlagCloudKitZoneMissing,
50 CKKSFlagChangeTokenExpired,
51 CKKSFlagProcessIncomingQueue,
52 CKKSFlagProcessOutgoingQueue,
53 CKKSFlagItemReencryptionNeeded,
54 CKKSFlagBeginTrustedOperation,
55 CKKSFlagEndTrustedOperation,
56 CKKSFlagDeviceUnlocked,
57 CKKSFlagKeyStateTLKsUploaded,
58 CKKSFlagFetchComplete,
59 CKKSFlag24hrNotification,