Quark  0.1
PluginLoader.h++
Go to the documentation of this file.
1 #ifndef __libquark_util_PluginLoader_hxx
2 #define __libquark_util_PluginLoader_hxx
3 
4 #include <QString>
5 
6 namespace quark {
7 namespace util {
8 
17 template<class T> class PluginLoader
18 {
19  public:
20 
27  PluginLoader(const QString &pluginDirectory);
28 
30  ~PluginLoader();
31 
40  T *loadPlugin(const QString &name);
41 };
42 
43 #include <quark/PluginLoaderImpl.h++>
44 
45 } // namespace util
46 } // namespace quark
47 
48 #endif // __libquark_util_PluginLoader_hxx
Definition: BarChartView.h++:6
~PluginLoader()
Destructor.
T * loadPlugin(const QString &name)
Loads, instantiates, and returns a plugin with the given name.
PluginLoader(const QString &pluginDirectory)
Constructs a new PluginLoader that will load plugins from the given plugin directory.
A convenient wrapper template for QPluginLoader that loads and instantiates plugins of a given type...
Definition: PluginLoader.h++:17