qsrun/settingsprovider.h
Albert S 65b044e618 Begin SpecialCommand handling
Introduce SpecialCommand handling. Currently,
we block until the command finishes. SettingsProvider
provides a few example, but needs implementation to
read this from config.
2021-05-08 20:54:35 +02:00

25 рядки
579 B
C++

#ifndef SETTINGSPROVIDER_H
#define SETTINGSPROVIDER_H
#include <QSettings>
#include <stdexcept>
#include "specialcommandconfig.h"
class SettingsProvider
{
private:
QSettings *settings;
public:
SettingsProvider(QSettings &settings);
virtual QStringList userEntriesPaths() const;
virtual QStringList systemApplicationsEntriesPaths() const;
virtual int getMaxCols() const;
virtual bool singleInstanceMode() const;
QString getTerminalCommand() const;
QString socketPath() const;
QVector<SpecialCommandConfig> specialCommands() const;
};
#endif // SETTINGSPROVIDER_H