mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
CPluginManagerSimulator::getListener should not create listeners
Up to now, CPluginManagerSimulator::getListener was allocating a listener automatically in the background which was not always the desired behaviour. For example in case simulators are stopped, it is unnecessary to allocate all listeners and call stop on them. It is enough to stop the existing ones. In order to achieve the correct behaviour the creation part is moved to CPluginManagerSimulator::createListener. refs #606
This commit is contained in:
@@ -47,7 +47,12 @@ namespace BlackCore
|
||||
//! Get simulator factory from the plugin
|
||||
ISimulatorFactory *getFactory(const QString &pluginId);
|
||||
|
||||
//! Get simulator listener from the plugin
|
||||
//! Create simulator listener from the plugin
|
||||
//! In case one is existing already, it is returned instead.
|
||||
ISimulatorListener *createListener(const QString &pluginId);
|
||||
|
||||
//! Get previously created simulator listener from the plugin
|
||||
//! Returns nullptr if listener is not yet created
|
||||
ISimulatorListener *getListener(const QString &pluginId);
|
||||
|
||||
//! Get all simulator driver plugins
|
||||
|
||||
Reference in New Issue
Block a user