marble
#include <PluginManager.h>
Signals | |
void | parseRunnerPluginsChanged () |
void | positionProviderPluginsChanged () |
void | renderPluginsChanged () |
void | reverseGeocodingRunnerPluginsChanged () |
void | routingRunnerPluginsChanged () |
void | searchRunnerPluginsChanged () |
Public Member Functions | |
PluginManager (QObject *parent=0) | |
~PluginManager () | |
void | addParseRunnerPlugin (const ParseRunnerPlugin *plugin) |
void | addPositionProviderPlugin (const PositionProviderPlugin *plugin) |
void | addRenderPlugin (const RenderPlugin *plugin) |
void | addReverseGeocodingRunnerPlugin (const ReverseGeocodingRunnerPlugin *plugin) |
void | addRoutingRunnerPlugin (RoutingRunnerPlugin *plugin) |
void | addSearchRunnerPlugin (const SearchRunnerPlugin *plugin) |
QList< const ParseRunnerPlugin * > | parsingRunnerPlugins () const |
QList< const PositionProviderPlugin * > | positionProviderPlugins () const |
QList< const RenderPlugin * > | renderPlugins () const |
QList< const ReverseGeocodingRunnerPlugin * > | reverseGeocodingRunnerPlugins () const |
QList< RoutingRunnerPlugin * > | routingRunnerPlugins () const |
QList< const SearchRunnerPlugin * > | searchRunnerPlugins () const |
Detailed Description
The class that handles Marble's plugins.
Ownership policy for plugins:
On every invocation of createNetworkPlugins and createFloatItems the PluginManager creates new objects and transfers ownership to the calling site. In order to create the objects, the PluginManager internally has a list of the plugins which are owned by the PluginManager and destroyed by it.
Definition at line 45 of file PluginManager.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 61 of file PluginManager.cpp.
Marble::PluginManager::~PluginManager | ( | ) |
Definition at line 66 of file PluginManager.cpp.
Member Function Documentation
void Marble::PluginManager::addParseRunnerPlugin | ( | const ParseRunnerPlugin * | plugin | ) |
Add a ParseRunnerPlugin manually to the list of known plugins.
Normally you don't need to call this method since all plugins are loaded automatically.
- Parameters
-
plugin The plugin to add. Ownership retains with the caller.
Definition at line 142 of file PluginManager.cpp.
void Marble::PluginManager::addPositionProviderPlugin | ( | const PositionProviderPlugin * | plugin | ) |
Add a PositionProviderPlugin manually to the list of known plugins.
Normally you don't need to call this method since all plugins are loaded automatically.
- Parameters
-
plugin The plugin to add. Ownership retains with the caller.
Definition at line 90 of file PluginManager.cpp.
void Marble::PluginManager::addRenderPlugin | ( | const RenderPlugin * | plugin | ) |
Add a RenderPlugin manually to the list of known plugins.
Normally you don't need to call this method since all plugins are loaded automatically.
- Parameters
-
plugin The plugin to add. Ownership retains with the caller.
Definition at line 77 of file PluginManager.cpp.
void Marble::PluginManager::addReverseGeocodingRunnerPlugin | ( | const ReverseGeocodingRunnerPlugin * | plugin | ) |
Add a ReverseGeocodingRunnerPlugin manually to the list of known plugins.
Normally you don't need to call this method since all plugins are loaded automatically.
- Parameters
-
plugin The plugin to add. Ownership retains with the caller.
Definition at line 116 of file PluginManager.cpp.
void Marble::PluginManager::addRoutingRunnerPlugin | ( | RoutingRunnerPlugin * | plugin | ) |
Add a RoutingRunnerPlugin manually to the list of known plugins.
Normally you don't need to call this method since all plugins are loaded automatically.
- Parameters
-
plugin The plugin to add. Ownership retains with the caller.
Definition at line 129 of file PluginManager.cpp.
void Marble::PluginManager::addSearchRunnerPlugin | ( | const SearchRunnerPlugin * | plugin | ) |
Add a SearchRunnerPlugin manually to the list of known plugins.
Normally you don't need to call this method since all plugins are loaded automatically.
- Parameters
-
plugin The plugin to add. Ownership retains with the caller.
Definition at line 103 of file PluginManager.cpp.
|
signal |
QList< const ParseRunnerPlugin * > Marble::PluginManager::parsingRunnerPlugins | ( | ) | const |
Returns all parse runner plugins.
- Note
- : The runner plugins are owned by the PluginManager, do not delete them.
Definition at line 136 of file PluginManager.cpp.
QList< const PositionProviderPlugin * > Marble::PluginManager::positionProviderPlugins | ( | ) | const |
Returns all available PositionProviderPlugins.
Ownership of the items remains in PluginManager. In order to use the PositionProviderPlugins, first create new instances using PositionProviderPlugin::newInstance().
Definition at line 84 of file PluginManager.cpp.
|
signal |
QList< const RenderPlugin * > Marble::PluginManager::renderPlugins | ( | ) | const |
Returns all available RenderPlugins.
Ownership of the items remains in PluginManager. In order to use the RenderPlugins, first create new instances using RenderPlugin::newInstance().
Definition at line 71 of file PluginManager.cpp.
|
signal |
QList< const ReverseGeocodingRunnerPlugin * > Marble::PluginManager::reverseGeocodingRunnerPlugins | ( | ) | const |
Returns all reverse geocoding runner plugins.
- Note
- : The runner plugins are owned by the PluginManager, do not delete them.
Definition at line 110 of file PluginManager.cpp.
|
signal |
QList< RoutingRunnerPlugin * > Marble::PluginManager::routingRunnerPlugins | ( | ) | const |
Returns all routing runner plugins.
- Note
- : The runner plugins are owned by the PluginManager, do not delete them.
Definition at line 123 of file PluginManager.cpp.
|
signal |
QList< const SearchRunnerPlugin * > Marble::PluginManager::searchRunnerPlugins | ( | ) | const |
Returns all search runner plugins.
- Note
- : Runner plugins are owned by the PluginManager, do not delete them.
Definition at line 97 of file PluginManager.cpp.
|
signal |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.