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;
|
2020-10-04 22:16:49 +02:00
|
|
|
QString getTerminalCommand() const;
|
2020-10-10 21:10:53 +02:00
|
|
|
QString socketPath() const;
|
2020-09-06 19:41:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SETTINGSPROVIDER_H
|