use extended version of initVMCPlugin()

This commit is contained in:
Gerhard Hoffmann 2023-11-13 12:54:28 +01:00
parent 08655a0229
commit f85bf3debf

View File

@ -12,10 +12,6 @@
#include "include/interfaces.h"
#include "vmc.h"
class ATBHMIconfig;
class AppControl;
class ATBSystem;
class ATBVMCPlugin : public VMCInterface {
Q_OBJECT
Q_INTERFACES(ATBAPPplugin)
@ -30,8 +26,10 @@ public:
// ----------------------------------------------------------------------------
// interface:
PLUGIN_STATE initVMCPlugin(QObject *eventReceiver, QSettings const &settings);
PLUGIN_STATE initVMCPlugin(QObject *eventReceiver, ATBHMIconfig *config);
virtual PLUGIN_STATE initVMCPlugin(QObject *eventReceiver,
QObject *atbSystem,
QObject *hmiConfig,
QSettings const &settings) override;
// mandantory ATBAPP plugin methods: ------------------------------------------
PLUGIN_STATE getState() override;
@ -61,9 +59,8 @@ private:
QString m_serialPortName;
bool m_useDebug;
PLUGIN_STATE m_pluginState;
QObject* m_eventReceiver;
QSettings const *m_settings;
ATBHMIconfig *m_config;
QObject* m_appControl;
VMC *m_vmc;
};
#endif // ATBDEVICECONTROLLERPLUGIN_H