diff options
Diffstat (limited to 'plugins/ConfigurationEditor/configurationeditorplugin.h')
-rw-r--r-- | plugins/ConfigurationEditor/configurationeditorplugin.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/ConfigurationEditor/configurationeditorplugin.h b/plugins/ConfigurationEditor/configurationeditorplugin.h new file mode 100644 index 0000000..6054723 --- /dev/null +++ b/plugins/ConfigurationEditor/configurationeditorplugin.h @@ -0,0 +1,26 @@ +#ifndef CONFIGURATIONEDITOR_PLUGIN_H +#define CONFIGURATIONEDITOR_PLUGIN_H + +#include <QVector> +#include <interfaces.h> + +class QDialog; +class ConfigurationEditorPlugin : public QObject, public PluginInterface, public ConfigurationInterface +{ + Q_OBJECT + Q_PLUGIN_METADATA(IID ProfileInterfaceIid FILE "ConfigurationEditor.json") + Q_INTERFACES(PluginInterface ConfigurationInterface) + +public: + // PluginInterface + CommandHash_t commands() override; + QDialog *createWidget(QWidget *parent = nullptr) override; + + // ConfigurationInterface + void setConfiguration(Configuration *cfg) override; + +private: + Configuration *m_config = nullptr; +}; + +#endif // CONFIGURATIONEDITOR_PLUGIN_H |