Following the pattern that singleton methods for effectively global state should get/set on their own dedicated dbConnection for consistency and to avoid being blocked by unrelated writes.
34 lines
809 B
C
34 lines
809 B
C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#ifndef TextSecureKit_TSStorageKeys_h
|
|
#define TextSecureKit_TSStorageKeys_h
|
|
|
|
#pragma mark User Account Keys
|
|
|
|
#define TSStorageUserAccountCollection @"TSStorageUserAccountCollection"
|
|
|
|
#define TSStorageServerAuthToken @"TSStorageServerAuthToken"
|
|
#define TSStorageServerSignalingKey @"TSStorageServerSignalingKey"
|
|
|
|
/**
|
|
* Preferences exposed to the user
|
|
*/
|
|
|
|
#pragma mark User Preferences
|
|
|
|
#define TSStorageUserPreferencesCollection @"TSStorageUserPreferencesCollection"
|
|
|
|
|
|
/**
|
|
* Internal settings of the application, not exposed to the user.
|
|
*/
|
|
|
|
#pragma mark Internal Settings
|
|
|
|
#define TSStorageInternalSettingsCollection @"TSStorageInternalSettingsCollection"
|
|
#define TSStorageInternalSettingsVersion @"TSLastLaunchedVersion"
|
|
|
|
#endif
|