#include <plugins.h>
Public Member Functions | |
void | addPluginProvider (PluginProvider *pp) |
const Plugin * | findEnginePlugin (const Common::String &engineId) |
virtual void | init () |
virtual void | loadFirstPlugin () |
virtual bool | loadNextPlugin () |
virtual bool | loadPluginFromEngineId (const Common::String &engineId) |
virtual void | updateConfigWithFileName (const Common::String &engineId) |
virtual void | loadDetectionPlugin () |
virtual void | unloadDetectionPlugin () |
virtual void | loadAllPlugins () |
virtual void | loadAllPluginsOfType (PluginType type) |
void | unloadPluginsExcept (PluginType type, const Plugin *plugin, bool deletePlugin=true) |
const PluginList & | getPlugins (PluginType t) |
Static Public Member Functions | |
static void | destroy () |
static PluginManager & | instance () |
Protected Types | |
typedef Common::Array< PluginProvider * > | ProviderList |
Protected Member Functions | |
bool | tryLoadPlugin (Plugin *plugin) |
void | addToPluginsInMemList (Plugin *plugin) |
const Plugin * | findLoadedPlugin (const Common::String &engineId) |
void | unloadAllPlugins () |
Protected Attributes | |
PluginList | _pluginsInMem [PLUGIN_TYPE_MAX] |
ProviderList | _providers |
Static Protected Attributes | |
static PluginManager * | _instance |
Singleton class which manages all plugins, including loading them, managing all Plugin class instances, and unloading them.
const Plugin* PluginManager::findEnginePlugin | ( | const Common::String & | engineId | ) |
A method which finds the METAENGINE plugin for the provided engineId
engineId | The engine ID |