Introduce Settingsprovider to read settings

Previously, it was in the configprovider.cpp.

Now, it has been split to this file
此提交包含在:
2020-09-06 19:41:59 +02:00
父節點 f03e247bd8
當前提交 2824f84f9f
共有 2 個檔案被更改,包括 45 行新增0 行删除

18
settingsprovider.h 一般檔案
查看文件

@@ -0,0 +1,18 @@
#ifndef SETTINGSPROVIDER_H
#define SETTINGSPROVIDER_H
#include <stdexcept>
#include <QSettings>
class SettingsProvider
{
private:
QSettings *settings;
public:
SettingsProvider(QSettings &settings);
virtual QStringList userEntriesPaths() const;
virtual QStringList systemApplicationsEntriesPaths() const;
virtual bool singleInstanceMode() const;
};
#endif // SETTINGSPROVIDER_H