2018-09-29 15:56:04 +03:00
|
|
|
/*
|
2021-11-05 23:58:23 +03:00
|
|
|
* Copyright (C) 2021-2021 QuasarApp.
|
2018-09-29 15:56:04 +03:00
|
|
|
* Distributed under the lgplv3 software license, see the accompanying
|
|
|
|
* Everyone is permitted to copy and distribute verbatim copies
|
|
|
|
* of this license document, but changing it is not allowed.
|
|
|
|
*/
|
|
|
|
|
2021-11-05 23:58:23 +03:00
|
|
|
|
2018-09-29 15:56:04 +03:00
|
|
|
#ifndef SETTINGS_H
|
|
|
|
#define SETTINGS_H
|
|
|
|
|
|
|
|
#include "quasarapp_global.h"
|
2021-11-05 23:58:23 +03:00
|
|
|
#include "isettings.h"
|
2018-09-29 15:56:04 +03:00
|
|
|
|
|
|
|
namespace QuasarAppUtils {
|
|
|
|
|
2021-11-05 23:58:23 +03:00
|
|
|
class QUASARAPPSHARED_EXPORT Settings: public ISettings
|
2018-09-29 15:56:04 +03:00
|
|
|
{
|
|
|
|
public:
|
2021-11-05 23:58:23 +03:00
|
|
|
Settings();
|
2018-09-29 15:56:04 +03:00
|
|
|
|
2021-11-05 23:58:23 +03:00
|
|
|
// ISettings interface
|
|
|
|
protected:
|
|
|
|
void syncImplementation();
|
|
|
|
QVariant getValueImplementation(const QString &key, const QVariant &def);
|
|
|
|
void setValueImplementation(const QString key, const QVariant &value);
|
2019-09-28 16:41:43 +03:00
|
|
|
|
2018-09-29 15:56:04 +03:00
|
|
|
|
2021-04-26 11:27:19 +03:00
|
|
|
private:
|
|
|
|
QSettings *_settings = nullptr;
|
2018-09-29 15:56:04 +03:00
|
|
|
};
|
|
|
|
|
2021-11-05 23:58:23 +03:00
|
|
|
}
|
2018-09-29 15:56:04 +03:00
|
|
|
|
|
|
|
#endif // SETTINGS_H
|