aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpplugin.hpp
blob: be10b126e3b7d2becc55f89e9a7533a62df6b8d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef QMPPLUGIN_H
#define QMPPLUGIN_H
#define QMP_MAIN
#include <string>
#include <vector>
#define QMP_MAIN
#include "../include/qmpcorepublic.hpp"
struct qmpPlugin
{
	std::string name,version,path;
	qmpPluginIntf* pinterface;
	bool enabled,initialized;
	qmpPlugin(std::string _n,std::string _v,std::string _p,qmpPluginIntf* _i)
	{name=_n;version=_v;path=_p;pinterface=_i;enabled=initialized=false;}
};
class qmpPluginManager
{
	private:
		std::vector<qmpPlugin> plugins;
	public:
		qmpPluginManager();
		~qmpPluginManager();
		std::vector<qmpPlugin> *getPlugins();
		void scanPlugins(const std::vector<std::string> &pp);
		void initPlugins();
		void deinitPlugins();
};
#endif // QMPPLUGIN_H