MNE-CPP
beta 1.0
|
The PluginManager class provides a dynamic plugin loader. As well as the handling of the loaded plugins. More...
#include <pluginmanager.h>
Public Types | |
typedef QSharedPointer< PluginManager > | SPtr |
typedef QSharedPointer< const PluginManager > | ConstSPtr |
Public Member Functions | |
PluginManager (QObject *parent=0) | |
virtual | ~PluginManager () |
void | loadPlugins (const QString &dir) |
int | findByName (const QString &name) |
const QVector< IPlugin * > & | getPlugins () |
const QVector< ISensor * > & | getSensorPlugins () |
const QVector< IAlgorithm * > & | getAlgorithmPlugins () |
const QVector< IIO * > & | getIOPlugins () |
Friends | |
class | MainWindow |
class | PluginDockWidget |
The PluginManager class provides a dynamic plugin loader. As well as the handling of the loaded plugins.
DECLARE CLASS PluginManager
Definition at line 82 of file pluginmanager.h.
typedef QSharedPointer<const PluginManager> MNEX::PluginManager::ConstSPtr |
Const shared pointer type for PluginManager.
Definition at line 91 of file pluginmanager.h.
typedef QSharedPointer<PluginManager> MNEX::PluginManager::SPtr |
Shared pointer type for PluginManager.
Definition at line 90 of file pluginmanager.h.
PluginManager::PluginManager | ( | QObject * | parent = 0 | ) |
Constructs a PluginManager with the given parent.
[in] | parent | pointer to parent Object. (It's normally the default value.) |
Definition at line 71 of file pluginmanager.cpp.
|
virtual |
Destroys the PluginManager.
Definition at line 80 of file pluginmanager.cpp.
int PluginManager::findByName | ( | const QString & | name | ) |
Finds index of plugin by name.
name | the plugin name. |
Definition at line 149 of file pluginmanager.cpp.
|
inline |
Returns vector containing IAlgorithm plugins
Definition at line 188 of file pluginmanager.h.
|
inline |
Returns vector containing IIO plugins
Definition at line 196 of file pluginmanager.h.
|
inline |
Returns vector containing all plugins.
Definition at line 172 of file pluginmanager.h.
|
inline |
Returns vector containing ISensor plugins.
Definition at line 180 of file pluginmanager.h.
void PluginManager::loadPlugins | ( | const QString & | dir | ) |
Loads plugins from given directory.
dir | the plugin directory. |
Definition at line 87 of file pluginmanager.cpp.