An abstract interface for Plugins written in C++. More...
#include <CppPlugin.h>
Public Member Functions | |
| CppPlugin (const PluginInfo &info) | |
| It creates a new C++ plugin. More... | |
| 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 | ~CppPlugin () |
| Virtual destructor. 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... | |
Private Member Functions | |
Not Allowed Methods | |
No copy allowed. | |
| CppPlugin (const CppPlugin &rhs) | |
| No copy constructor allowed. More... | |
| CppPlugin & | operator= (const CppPlugin &rhs) |
| No assignment operator allowed. More... | |
An abstract interface for Plugins written in C++.
Remember to implement the startup and shutdown methods from the base class: Plugin.
Definition at line 48 of file attic/src/plugin/CppPlugin.h.
| te::plugin::CppPlugin::CppPlugin | ( | const PluginInfo & | info | ) |
It creates a new C++ plugin.
| info | Information about a C++ plugin. |
Definition at line 29 of file attic/src/plugin/CppPlugin.cpp.
|
virtual |
Virtual destructor.
Definition at line 34 of file attic/src/plugin/CppPlugin.cpp.
|
private |
No copy constructor allowed.
| rhs | The other instance. |
|
virtualinherited |
It return the information associated to the plugin.
Implements te::plugin::AbstractPlugin.
Definition at line 29 of file attic/src/plugin/Plugin.cpp.
References te::plugin::Plugin::m_pluginInfo.
|
virtualinherited |
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 te::plugin::Plugin::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().
No assignment operator allowed.
| rhs | The other instance. |
|
virtualinherited |
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 te::plugin::Plugin::m_initialized.
|
virtualinherited |
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 te::plugin::Plugin::m_initialized.
|
protectedinherited |
A flag that indicates if the plugin was started or not.
Definition at line 79 of file attic/src/plugin/Plugin.h.
Referenced by te::plugin::Plugin::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(), te::plugin::Plugin::shutdown(), te::v8::plugin::Plugin::shutdown(), Plugin::startup(), te::sqlite::Module::startup(), te::qt::plugins::geofile::Plugin::startup(), te::qt::plugins::mysql::Plugin::startup(), te::qt::plugins::sqlite::Plugin::startup(), te::plugin::Plugin::startup(), and te::v8::plugin::Plugin::startup().
|
protectedinherited |
Information about the plugin.
Definition at line 78 of file attic/src/plugin/Plugin.h.
Referenced by te::plugin::Plugin::getInfo(), and te::sqlite::Module::startup().