From 08655a0229e349aff2cee443aa7cc33cf4334a63 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Mon, 13 Nov 2023 12:53:27 +0100 Subject: [PATCH] extend signature of initPlugin and inintVMC plugin --- src/ATBAPP/VMCInterface.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/ATBAPP/VMCInterface.h b/src/ATBAPP/VMCInterface.h index 12e3bc0..2e59b70 100644 --- a/src/ATBAPP/VMCInterface.h +++ b/src/ATBAPP/VMCInterface.h @@ -18,8 +18,6 @@ namespace nsVMCInterface { } -class ATBHMIconfig; - class VMCInterface : public UnifiedDCVMCInterface { Q_OBJECT @@ -31,12 +29,9 @@ public: explicit VMCInterface(QObject *parent = nullptr) : UnifiedDCVMCInterface(parent) {} - virtual PLUGIN_STATE initPlugin(QObject *eventReceiver, QSettings const &settings) override { - return initVMCPlugin(eventReceiver, settings); - } - - virtual PLUGIN_STATE initPlugin(QObject *eventReceiver, ATBHMIconfig *config) override { - return initVMCPlugin(eventReceiver, config->getSettings()); + virtual PLUGIN_STATE initPlugin(QObject *eventReceiver, QObject *atbSystem, + QObject *hmiConfig, QSettings const &settings) override { + return initVMCPlugin(eventReceiver, atbSystem, hmiConfig, settings); } virtual ~VMCInterface() {} @@ -47,7 +42,9 @@ public: * @param settings * @return */ - virtual PLUGIN_STATE initVMCPlugin(QObject *eventReceiver, const QSettings & settings) = 0; + virtual PLUGIN_STATE initVMCPlugin(QObject *eventReceiver, + QObject *atbSystem, QObject *hmiConfig, + const QSettings & settings) = 0; }; #endif // VMCINTERFACE_H