aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpplugin.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-23 23:50:31 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-23 23:50:31 +0800
commitaa8af83ff8889aa136e9152b2cca9a88d99c5f47 (patch)
tree54af0c407c08d86c1fbf5e5856ee66c4f80e1b0b /qmidiplayer-desktop/qmpplugin.hpp
parent446263beafeafa831530a6f9711aa891955b7db3 (diff)
downloadQMidiPlayer-aa8af83ff8889aa136e9152b2cca9a88d99c5f47.tar.xz
Add stubs for plugin support.
Diffstat (limited to 'qmidiplayer-desktop/qmpplugin.hpp')
-rw-r--r--qmidiplayer-desktop/qmpplugin.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpplugin.hpp b/qmidiplayer-desktop/qmpplugin.hpp
new file mode 100644
index 0000000..8d14596
--- /dev/null
+++ b/qmidiplayer-desktop/qmpplugin.hpp
@@ -0,0 +1,26 @@
+#ifndef QMPPLUGIN_H
+#define QMPPLUGIN_H
+#include <string>
+#include <vector>
+#include "../include/qmpcorepublic.hpp"
+struct qmpPlugin
+{
+ std::string name,version,path;
+ qmpPluginIntf* interface;
+ bool enabled;
+ qmpPlugin(std::string _n,std::string _v,std::string _p,qmpPluginIntf* _i)
+ {name=_n;version=_v;path=_p;interface=_i;enabled=false;}
+};
+class qmpPluginManager
+{
+ private:
+ std::vector<qmpPlugin> plugins;
+ public:
+ qmpPluginManager();
+ ~qmpPluginManager();
+ std::vector<qmpPlugin> getPlugins() const;
+ void scanPlugins();
+ void initPlugins();
+ void deinitPlugins();
+};
+#endif // QMPPLUGIN_H