use extended version of initVMCPlugin()
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user