Introduce Settingsprovider to read settings

Previously, it was in the configprovider.cpp.

Now, it has been split to this file
This commit is contained in:
2020-09-06 19:41:59 +02:00
parent f03e247bd8
commit 2824f84f9f
2 changed files with 45 additions and 0 deletions

18
settingsprovider.h Normal file
View File

@ -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