| 43 | |
| 44 | |
| 45 | class CryptSettings { |
| 46 | private: |
| 47 | |
| 48 | CryptSettings(); |
| 49 | |
| 50 | std::unordered_map<enum CryptSettingsRegistryValuesKeys, CryptSettingConsts> m_settings_registry_map; |
| 51 | public: |
| 52 | |
| 53 | static CryptSettings& getInstance(); |
| 54 | |
| 55 | bool GetSettingDefault(enum CryptSettingsRegistryValuesKeys key, int& default); |
| 56 | bool GetSettingRecommended(enum CryptSettingsRegistryValuesKeys key, int& recommended); |
| 57 | bool GetSettingDefault(enum CryptSettingsRegistryValuesKeys key, bool& default); |
| 58 | bool GetSettingRecommended(enum CryptSettingsRegistryValuesKeys key, bool& recommended); |
| 59 | bool GetSettingCurrent(enum CryptSettingsRegistryValuesKeys key, bool& cur); |
| 60 | bool GetSettingCurrent(enum CryptSettingsRegistryValuesKeys key, int& cur); |
| 61 | |
| 62 | bool SaveSetting(enum CryptSettingsRegistryValuesKeys key, int val); |
| 63 | |
| 64 | void GetSettings(CryptMountOptions& opts); |
| 65 | |
| 66 | |
| 67 | // disallow copying and moving |
| 68 | CryptSettings(CryptSettings const&) = delete; |
| 69 | void operator=(CryptSettings const&) = delete; |
| 70 | |
| 71 | CryptSettings(CryptSettings const&&) = delete; |
| 72 | void operator=(CryptSettings const&&) = delete; |
| 73 | |
| 74 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected