77 pAddedPlugin = pPlugin->
clone();
78 m_pluginList.append(pAddedPlugin);
79 m_pluginList.last()->init();
85 QString sPluginName = pPlugin->
getName();
86 bool bPluginFound =
false;
88 for(qint32 i = 0; i < m_pluginList.size(); ++i)
90 if(sPluginName == m_pluginList[i]->getName())
100 pAddedPlugin = pPlugin->
clone();
101 m_pluginList.append(pAddedPlugin);
102 m_pluginList.last()->init();
106 pAddedPlugin.clear();
116 for(qint32 i = 0; i < m_pluginList.size(); ++i)
118 if(m_pluginList[i] == pPlugin)
126 m_pluginList.removeAt(pos);
157 QList<IPlugin::SPtr>::iterator it = m_pluginList.begin();
158 for( ; it != m_pluginList.end(); ++it)
163 qWarning() <<
"Could not start ISensor: " << (*it)->getName();
177 QList<IPlugin::SPtr>::iterator it = m_pluginList.begin();
178 for( ; it != m_pluginList.end(); ++it)
181 qWarning() <<
"Could not start IAlgorithm: " << (*it)->getName();
189 QList<IPlugin::SPtr>::iterator it = m_pluginList.begin();
190 for( ; it != m_pluginList.end(); ++it)
193 qWarning() <<
"Could not start IIO: " << (*it)->getName();
202 QList<IPlugin::SPtr>::iterator it = m_pluginList.begin();
203 for( ; it != m_pluginList.end(); ++it)
206 qWarning() <<
"Could not stop IPlugin: " << (*it)->getName();
209 it = m_pluginList.begin();
210 for( ; it != m_pluginList.end(); ++it)
213 qWarning() <<
"Could not stop IPlugin: " << (*it)->getName();
Contains declaration of PluginSceneManager class.
virtual bool multiInstanceAllowed() const =0
void startAlgorithmPlugins()
The IPlugin class is the base interface class of all plugins.
virtual QString getName() const =0
PluginSceneManager(QObject *parent=0)
QSharedPointer< IPlugin > SPtr
bool addPlugin(const IPlugin *pPlugin, IPlugin::SPtr &pAddedPlugin)
virtual QSharedPointer< IPlugin > clone() const =0
bool removePlugin(const IPlugin::SPtr pPlugin)
bool startSensorPlugins()