From a5a31ade100ca5c88dc11aa3421912eb019a5c3b 2017-07-27 14:39:40 From: Alexandre Leroux Date: 2017-07-27 14:39:40 Subject: [PATCH] Creates interface that defines an object that can load/save QSettings values --- diff --git a/core/include/Settings/ISqpSettingsBindable.h b/core/include/Settings/ISqpSettingsBindable.h new file mode 100644 index 0000000..b69600b --- /dev/null +++ b/core/include/Settings/ISqpSettingsBindable.h @@ -0,0 +1,21 @@ +#ifndef SCIQLOP_ISQPSETTINGSBINDABLE_H +#define SCIQLOP_ISQPSETTINGSBINDABLE_H + +#include + +/** + * @brief The ISqpSettingsBindable interface represents an object that can bind a variable + */ +class ISqpSettingsBindable { + +public: + virtual ~ISqpSettingsBindable() = default; + + /// Loads settings into the object + virtual void loadSettings() = 0; + + /// Saves settings from the object + virtual void saveSettings() const = 0; +}; + +#endif // SCIQLOP_ISQPSETTINGSBINDABLE_H