Loading...
Searching...
No Matches
pluginHandler.h
Go to the documentation of this file.
#ifndef BALL_PLUGIN_PLUGINHANDLER_H
#define BALL_PLUGIN_PLUGINHANDLER_H
#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif
#include <list>
#include <QtCore/QReadWriteLock>
namespace BALL
{
class BALLPlugin;
class BALL_EXPORT PluginHandler
{
public:
virtual ~PluginHandler();
virtual bool canHandle(BALLPlugin* plugin) const = 0;
bool startPlugin(BALLPlugin* plugin);
bool stopPlugin(BALLPlugin* plugin);
virtual bool isRunning(BALLPlugin* plugin) const;
protected:
virtual bool specificSetup_(BALLPlugin* plugin) = 0;
virtual bool specificShutdown_(BALLPlugin* plugin) = 0;
std::list<BALLPlugin*> running_plugins_;
private:
mutable QReadWriteLock mutex_;
};
}
#endif //BALL_PLUGIN_PLUGINHANDLER_H
global.h
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
BALL::BALLPlugin
Definition BALLPlugin.h:21
BALL::PluginHandler
Definition pluginHandler.h:28
BALL::PluginHandler::canHandle
virtual bool canHandle(BALLPlugin *plugin) const =0
BALL::PluginHandler::stopPlugin
bool stopPlugin(BALLPlugin *plugin)
BALL::PluginHandler::~PluginHandler
virtual ~PluginHandler()
BALL::PluginHandler::specificSetup_
virtual bool specificSetup_(BALLPlugin *plugin)=0
BALL::PluginHandler::running_plugins_
std::list< BALLPlugin * > running_plugins_
Definition pluginHandler.h:101
BALL::PluginHandler::startPlugin
bool startPlugin(BALLPlugin *plugin)
BALL::PluginHandler::specificShutdown_
virtual bool specificShutdown_(BALLPlugin *plugin)=0
BALL::PluginHandler::isRunning
virtual bool isRunning(BALLPlugin *plugin) const
BALL
Definition constants.h:13