blob: 605472391392e8407ba0675a29c2a4c3ccc49abc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|