This repository has been archived on 2022-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
dasschmalter/DasSchmalterApp/Qt-Code/appsettings.h

31 lines
564 B
C
Raw Normal View History

2019-02-23 21:49:41 +01:00
#ifndef APPSETTINGS_H
#define APPSETTINGS_H
#include <QFile>
#include <QObject>
#include <QtDebug>
#include <QSettings>
#include <QJsonArray>
#include <QJsonDocument>
#include <QStandardPaths>
class AppSettings : public QObject
{
Q_OBJECT
public:
explicit AppSettings(QObject *parent = nullptr);
~AppSettings();
private:
2019-02-23 21:49:41 +01:00
QSettings *settingsManager;
signals:
public slots:
Q_INVOKABLE QString read(QString key);
Q_INVOKABLE void write(QString key, QVariant variant);
2019-02-23 21:49:41 +01:00
};
extern AppSettings * pGlobalAppSettings;
#endif // APPSETTINGS_H