QuasarAppLib/settings.h

36 lines
743 B
C
Raw Normal View History

2018-09-29 15:56:04 +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.
*/
2018-09-29 15:56:04 +03:00
#ifndef SETTINGS_H
#define SETTINGS_H
#include "quasarapp_global.h"
#include "isettings.h"
2018-09-29 15:56:04 +03:00
namespace QuasarAppUtils {
class QUASARAPPSHARED_EXPORT Settings: public ISettings
2018-09-29 15:56:04 +03:00
{
public:
Settings();
2018-09-29 15:56:04 +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
private:
QSettings *_settings = nullptr;
2018-09-29 15:56:04 +03:00
};
}
2018-09-29 15:56:04 +03:00
#endif // SETTINGS_H