A base class for plugin types. More...
#include <Plugin.h>
Public Member Functions | |
| const PluginInfo & | getInfo () const |
| It return the information associated to the plugin. More... | |
| bool | isStarted () const |
| It tells if the plugin was started or not. More... | |
| bool | operator< (const AbstractPlugin &rhs) const |
| This overloaded operator can be used to index the plugin in a set. More... | |
| virtual void | shutdown () |
| Do nothing! Just set plugin as stopped. More... | |
| virtual void | startup () |
| Do nothing! Just set plugin as started. More... | |
| virtual | ~Plugin () |
| Virtual destructor. More... | |
Protected Member Functions | |
| Plugin (const PluginInfo &pInfo) | |
| It initializes a new plugin. More... | |
Protected Attributes | |
| bool | m_initialized |
| A flag that indicates if the plugin was started or not. More... | |
| PluginInfo | m_pluginInfo |
| Information about the plugin. More... | |
A base class for plugin types.
This class already provides a default implementation for all plugin methods and some attributes.
Definition at line 50 of file attic/src/plugin/Plugin.h.
|
virtual |
Virtual destructor.
Reimplemented in te::v8::plugin::Plugin, Plugin, te::qt::plugins::geofile::Plugin, te::qt::plugins::mysql::Plugin, te::qt::plugins::sqlite::Plugin, and Plugin.
Definition at line 49 of file attic/src/plugin/Plugin.cpp.
|
protected |
It initializes a new plugin.
| pInfo | Basic plugin information. |
Definition at line 53 of file attic/src/plugin/Plugin.cpp.
|
virtual |
It return the information associated to the plugin.
Implements te::plugin::AbstractPlugin.
Definition at line 29 of file attic/src/plugin/Plugin.cpp.
References m_pluginInfo.
|
virtual |
It tells if the plugin was started or not.
Implements te::plugin::AbstractPlugin.
Definition at line 34 of file attic/src/plugin/Plugin.cpp.
References m_initialized.
|
inherited |
This overloaded operator can be used to index the plugin in a set.
| rhs | The right-hand-side plugin. |
Definition at line 38 of file AbstractPlugin.cpp.
References te::plugin::AbstractPlugin::getInfo().
|
virtual |
Do nothing! Just set plugin as stopped.
Implements te::plugin::AbstractPlugin.
Reimplemented in HelloWorldPlugin, te::v8::plugin::Module, te::grib::Platform, te::v8::plugin::Plugin, te::qt::plugins::geofile::Plugin, te::qt::plugins::mysql::Plugin, te::qt::plugins::sqlite::Plugin, te::sqlite::Module, and Plugin.
Definition at line 44 of file attic/src/plugin/Plugin.cpp.
References m_initialized.
|
virtual |
Do nothing! Just set plugin as started.
Implements te::plugin::AbstractPlugin.
Reimplemented in HelloWorldPlugin, te::v8::plugin::Module, te::grib::Platform, te::v8::plugin::Plugin, te::qt::plugins::geofile::Plugin, te::qt::plugins::mysql::Plugin, te::qt::plugins::sqlite::Plugin, te::sqlite::Module, and Plugin.
Definition at line 39 of file attic/src/plugin/Plugin.cpp.
References m_initialized.
|
protected |
A flag that indicates if the plugin was started or not.
Definition at line 79 of file attic/src/plugin/Plugin.h.
Referenced by isStarted(), Plugin::shutdown(), te::sqlite::Module::shutdown(), te::qt::plugins::geofile::Plugin::shutdown(), te::qt::plugins::mysql::Plugin::shutdown(), te::qt::plugins::sqlite::Plugin::shutdown(), shutdown(), te::v8::plugin::Plugin::shutdown(), Plugin::startup(), te::sqlite::Module::startup(), te::qt::plugins::mysql::Plugin::startup(), te::qt::plugins::geofile::Plugin::startup(), te::qt::plugins::sqlite::Plugin::startup(), startup(), and te::v8::plugin::Plugin::startup().
|
protected |
Information about the plugin.
Definition at line 78 of file attic/src/plugin/Plugin.h.
Referenced by getInfo(), and te::sqlite::Module::startup().