LibEngsas
|
Provides functions to load Qt plugins properly. More...
#include <epluginloader.h>
Public Member Functions | |
PluginType * | doLoadPlugin (QString absFilePath, EModuleListWidgetItem *item=NULL) |
Used internally to really load a plugin. More... | |
Static Public Member Functions | |
static QList< PluginType * > | loadPlugins (QString searchPath, EngSaS::ModuleListWidgetItems &log) |
Loads all plugins of type PluginType in a directory. More... | |
static PluginType * | loadPlugin (QString name, QString searchPath, EModuleListWidgetItem *item=NULL) |
Loads the first plugin matching PluginType and name in a directory. More... | |
Provides functions to load Qt plugins properly.
To load your specific plugin type, use
If you want to define the search dir not everytime, do something like this:
PluginType * EPluginLoader< PluginType >::doLoadPlugin | ( | QString | absFilePath, |
EModuleListWidgetItem * | item = NULL |
||
) |
Used internally to really load a plugin.
Normally you won't use this function directly, use loadPlugin() or loadPlugins() instead.
|
static |
Loads the first plugin matching PluginType and name
in a directory.
The searched directory is searchPath
. The information about the loaded or failed plugin is stored in the item
.
|
static |
Loads all plugins of type PluginType in a directory.
The searched directory is searchPath
. The information about the loaded or failed plugins are stored in the log
.