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