2020-09-06 19:41:59 +02:00
|
|
|
#ifndef SETTINGSPROVIDER_H
|
|
|
|
#define SETTINGSPROVIDER_H
|
|
|
|
|
|
|
|
#include <QSettings>
|
2020-09-07 23:29:10 +02:00
|
|
|
#include <stdexcept>
|
2020-09-06 19:41:59 +02:00
|
|
|
|
|
|
|
class SettingsProvider
|
|
|
|
{
|
2020-09-07 23:29:10 +02:00
|
|
|
private:
|
2020-09-06 19:41:59 +02:00
|
|
|
QSettings *settings;
|
2020-09-07 23:29:10 +02:00
|
|
|
|
|
|
|
public:
|
2020-09-06 19:41:59 +02:00
|
|
|
SettingsProvider(QSettings &settings);
|
|
|
|
virtual QStringList userEntriesPaths() const;
|
|
|
|
virtual QStringList systemApplicationsEntriesPaths() const;
|
2020-09-07 23:29:10 +02:00
|
|
|
virtual int getMaxCols() const;
|
2020-09-06 19:41:59 +02:00
|
|
|
virtual bool singleInstanceMode() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SETTINGSPROVIDER_H
|