BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BALL::VIEW::ModularWidgetPluginHandler Class Reference

#include <BALL/VIEW/PLUGIN/modularWidgetPluginHandler.h>

Inheritance diagram for BALL::VIEW::ModularWidgetPluginHandler:
BALL::PluginHandler

Public Member Functions

 ModularWidgetPluginHandler (MainControl *parent)
 
virtual ~ModularWidgetPluginHandler ()
 
virtual bool canHandle (BALLPlugin *plugin) const
 
- Public Member Functions inherited from BALL::PluginHandler
virtual ~PluginHandler ()
 
bool startPlugin (BALLPlugin *plugin)
 
bool stopPlugin (BALLPlugin *plugin)
 
virtual bool isRunning (BALLPlugin *plugin) const
 

Protected Member Functions

virtual bool specificSetup_ (BALLPlugin *plugin)
 
virtual bool specificShutdown_ (BALLPlugin *plugin)
 

Protected Attributes

MainControlmain_control_
 
ModularWidgetmodular_widget_
 
- Protected Attributes inherited from BALL::PluginHandler
std::list< BALLPlugin * > running_plugins_
 

Detailed Description

See PluginHandler for detailed documentation

Definition at line 23 of file modularWidgetPluginHandler.h.

Constructor & Destructor Documentation

BALL::VIEW::ModularWidgetPluginHandler::ModularWidgetPluginHandler ( MainControl parent)
virtual BALL::VIEW::ModularWidgetPluginHandler::~ModularWidgetPluginHandler ( )
virtual

Member Function Documentation

virtual bool BALL::VIEW::ModularWidgetPluginHandler::canHandle ( BALLPlugin plugin) const
virtual

This function is used to check whether this PluginHandler can initialize the passed plugin. A usual implementation would be something like:

return qobject_cast<MyPlugin*>(plugin) != 0;

Returns
true if the handler can make use of the plugin, false otherwise

Implements BALL::PluginHandler.

virtual bool BALL::VIEW::ModularWidgetPluginHandler::specificSetup_ ( BALLPlugin plugin)
protectedvirtual

A purely virtual function which is responsible for properly initialising the passed plugin instance.

The passed plugin may be assumed to be of a type that can be handled by this PluginHandler.

Returns
true if the setup succeeded, false otherwise

Implements BALL::PluginHandler.

virtual bool BALL::VIEW::ModularWidgetPluginHandler::specificShutdown_ ( BALLPlugin plugin)
protectedvirtual

A purely virtual function which is responsible for properly deinitialising the passed plugin instance.

The passed plugin may be assumed to be of a type that can be handled by this PluginHandler.

Returns
true if the deinitialization succeeded, false otherwise

Implements BALL::PluginHandler.

Member Data Documentation

MainControl* BALL::VIEW::ModularWidgetPluginHandler::main_control_
protected

Definition at line 36 of file modularWidgetPluginHandler.h.

ModularWidget* BALL::VIEW::ModularWidgetPluginHandler::modular_widget_
protected

Definition at line 37 of file modularWidgetPluginHandler.h.