1 #ifndef BALL_PLUGIN_PLUGINMANAGER_H
2 #define BALL_PLUGIN_PLUGINMANAGER_H
4 #ifndef BALL_CONCEPT_PREFERENCESOBJECT_H
8 #include <QtCore/QString>
9 #include <QtCore/QHash>
10 #include <QtCore/QMutex>
11 #include <QtCore/QReadWriteLock>
13 #include <boost/shared_ptr.hpp>
53 void addPluginDirectory(
const QString& dir,
bool autoactivate =
false);
61 bool removePluginDirectory(
const QString& dir);
65 vector<QString> getPluginDirectories()
const;
75 BALLPlugin* loadPlugin(
const QString& plugin_name);
82 bool unloadPlugin(
const QString& plugin);
93 QObject* getPluginInstance(
const QString& plugin);
104 QObject* getPluginInstance(
int pos);
109 bool startPlugin(
int plugin);
114 bool startPlugin(
const QString& plugin);
130 bool stopPlugin(
int plugin);
135 bool stopPlugin(
const QString& plugin);
150 void unloadAllPlugins();
155 int getPluginCount()
const;
164 virtual bool getValue(
String&)
const;
165 virtual bool setValue(
const String&);
190 #endif //BALL_PLUGIN_PLUGINMANAGER_H