#ifndef SETTING_H #define SETTING_H #include #include namespace chatterino { namespace settings { class Setting : public QObject { Q_OBJECT public: explicit Setting(const QString &name) : name(name) { } virtual void save(const QSettings &settings) = 0; virtual void load(const QSettings &settings) = 0; protected: const QString & getName() const { return name; } private: QString name; }; } } #endif // SETTING_H