Settings write worker. More...
#include <SettingManager.h>
Inherits QObject.
Public Slots | |
void | start () |
Initialize anything that needs initializing, called on thread start. | |
void | setValue (const QString key, const QVariant value) |
Sets a configuration value. More... | |
void | removeKey (const QString key) |
Remove a value from the configuration. More... | |
void | clearAllSettings () |
Remove all values from the configuration. | |
void | sync () |
Force writing the config to disk. | |
void | threadFinished () |
Called when the thread is terminating. | |
void | terminate () |
Thread is being asked to finish work and quit. | |
Settings write worker.
This class is used by Setting::Manager to write settings to permanent storage without blocking anything else. It receives setting updates, and writes them to disk whenever convenient.
All communication to this class must be done over queued connections.
This class is purely an implementation detail and shouldn't be used outside of Setting::Manager.
|
slot |
Remove a value from the configuration.
key | Key to remove |
|
slot |
Sets a configuration value.
key | Configuration key |
value | Configuration value |