1 #ifndef QSETTINGSLOADER_H 2 #define QSETTINGSLOADER_H 4 #include "qsettingsdialog_global.h" 26 virtual bool isAsync()
const = 0;
47 virtual bool save(
const QVariant &data) = 0;
49 virtual bool reset() = 0;
65 virtual void loadData() = 0;
67 virtual void saveData(
const QVariant &data) = 0;
69 virtual void resetData() = 0;
73 void loadDone(
bool successful,
const QVariant &data,
bool isUserEdited =
true);
75 void saveDone(
bool successful);
77 void resetDone(
bool successful);
81 #endif // QSETTINGSLOADER_H QSimpleSettingsLoader * simple()
Casts this instance to a QSimpleSettingsLoader. Will assert if the conversion fails.
Defines a simple, synchronous loader.
Definition: qsettingsloader.h:39
virtual bool isAsync() const =0
Specifies, whether this loader is async or not.
Defines an asynchronous loader, that can load settings from any thread with any delay.
Definition: qsettingsloader.h:53
QAsyncSettingsLoader * async()
Casts this instance to a QAsyncSettingsLoader. Will assert if the conversion fails.
The basic settings loader class. Serves as utility class.
Definition: qsettingsloader.h:16
bool isAsync() const final
Specifies, whether this loader is async or not.
#define outParam
Simple define for "&" to mark parameters as out-parameter.
Definition: qsettingsdialog_global.h:17