te::plugin::Plugin Class Reference

A base class for plugin types. More...

#include <Plugin.h>

Inheritance diagram for te::plugin::Plugin:
te::plugin::AbstractPlugin Plugin te::plugin::CppPlugin te::qt::plugins::geofile::Plugin te::qt::plugins::mysql::Plugin te::qt::plugins::sqlite::Plugin te::sqlite::Module te::v8::plugin::Module te::v8::plugin::Plugin

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...
 

Detailed Description

A base class for plugin types.

This class already provides a default implementation for all plugin methods and some attributes.

See also
AbstractPlugin, PluginManager, PluginInfo, PluginEngine

Definition at line 50 of file attic/src/plugin/Plugin.h.

Constructor & Destructor Documentation

Plugin::~Plugin ( )
virtual
Plugin::Plugin ( const PluginInfo &  pInfo)
protected

It initializes a new plugin.

Parameters
pInfoBasic plugin information.

Definition at line 53 of file attic/src/plugin/Plugin.cpp.

Member Function Documentation

const te::plugin::PluginInfo & Plugin::getInfo ( ) const
virtual

It return the information associated to the plugin.

Returns
The information associated to the plugin.

Implements te::plugin::AbstractPlugin.

Definition at line 29 of file attic/src/plugin/Plugin.cpp.

References m_pluginInfo.

bool Plugin::isStarted ( ) const
virtual

It tells if the plugin was started or not.

Returns
True if the plugin is started and false otherwise (it is shutdown).

Implements te::plugin::AbstractPlugin.

Definition at line 34 of file attic/src/plugin/Plugin.cpp.

References m_initialized.

bool te::plugin::AbstractPlugin::operator< ( const AbstractPlugin &  rhs) const
inherited

This overloaded operator can be used to index the plugin in a set.

Parameters
rhsThe right-hand-side plugin.
Returns
True if this plugin name is lexcographical less than the rhs plugin name.

Definition at line 38 of file AbstractPlugin.cpp.

References te::plugin::AbstractPlugin::getInfo().

Member Data Documentation

PluginInfo te::plugin::Plugin::m_pluginInfo
protected

Information about the plugin.

Definition at line 78 of file attic/src/plugin/Plugin.h.

Referenced by getInfo(), and te::sqlite::Module::startup().


The documentation for this class was generated from the following files: