extend signature of initPlugin and inintVMC plugin
This commit is contained in:
parent
197dacf822
commit
08655a0229
@ -18,8 +18,6 @@ namespace nsVMCInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class ATBHMIconfig;
|
|
||||||
|
|
||||||
class VMCInterface : public UnifiedDCVMCInterface {
|
class VMCInterface : public UnifiedDCVMCInterface {
|
||||||
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@ -31,12 +29,9 @@ public:
|
|||||||
explicit VMCInterface(QObject *parent = nullptr)
|
explicit VMCInterface(QObject *parent = nullptr)
|
||||||
: UnifiedDCVMCInterface(parent) {}
|
: UnifiedDCVMCInterface(parent) {}
|
||||||
|
|
||||||
virtual PLUGIN_STATE initPlugin(QObject *eventReceiver, QSettings const &settings) override {
|
virtual PLUGIN_STATE initPlugin(QObject *eventReceiver, QObject *atbSystem,
|
||||||
return initVMCPlugin(eventReceiver, settings);
|
QObject *hmiConfig, QSettings const &settings) override {
|
||||||
}
|
return initVMCPlugin(eventReceiver, atbSystem, hmiConfig, settings);
|
||||||
|
|
||||||
virtual PLUGIN_STATE initPlugin(QObject *eventReceiver, ATBHMIconfig *config) override {
|
|
||||||
return initVMCPlugin(eventReceiver, config->getSettings());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~VMCInterface() {}
|
virtual ~VMCInterface() {}
|
||||||
@ -47,7 +42,9 @@ public:
|
|||||||
* @param settings
|
* @param settings
|
||||||
* @return
|
* @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
|
#endif // VMCINTERFACE_H
|
||||||
|
Loading…
Reference in New Issue
Block a user