|
|
@ -165,6 +165,7 @@ public: |
|
|
private: |
|
|
private: |
|
|
bool LoadSettingsFile(std::filesystem::path& path, auto&& default_func); |
|
|
bool LoadSettingsFile(std::filesystem::path& path, auto&& default_func); |
|
|
bool StoreSettingsFile(std::filesystem::path& path, auto& settings); |
|
|
bool StoreSettingsFile(std::filesystem::path& path, auto& settings); |
|
|
|
|
|
void StoreSettingsThreadFunc(std::stop_token stop_token); |
|
|
void SetupSettings(); |
|
|
void SetupSettings(); |
|
|
void StoreSettings(); |
|
|
void StoreSettings(); |
|
|
void SetSaveNeeded(); |
|
|
void SetSaveNeeded(); |
|
|
@ -174,6 +175,7 @@ private: |
|
|
PrivateSettings m_private_settings{}; |
|
|
PrivateSettings m_private_settings{}; |
|
|
DeviceSettings m_device_settings{}; |
|
|
DeviceSettings m_device_settings{}; |
|
|
ApplnSettings m_appln_settings{}; |
|
|
ApplnSettings m_appln_settings{}; |
|
|
|
|
|
std::jthread m_save_thread; |
|
|
std::mutex m_save_needed_mutex; |
|
|
std::mutex m_save_needed_mutex; |
|
|
bool m_save_needed{false}; |
|
|
bool m_save_needed{false}; |
|
|
}; |
|
|
}; |
|
|
|