Overte C++ Documentation
Setting::WriteWorker Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ removeKey

void Setting::WriteWorker::removeKey ( const QString  key)
slot

Remove a value from the configuration.

Parameters
keyKey to remove

◆ setValue

void Setting::WriteWorker::setValue ( const QString  key,
const QVariant  value 
)
slot

Sets a configuration value.

Parameters
keyConfiguration key
valueConfiguration value

The documentation for this class was generated from the following files: