diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-04-24 23:47:04 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-04-24 23:47:04 +0800 |
commit | 800a0417e9ed175f220c472842a283202c77060b (patch) | |
tree | 6609fcccf55d176d8eb61aa69526a19ba1859487 /visualization/qmpvisualization.hpp | |
parent | aa8af83ff8889aa136e9152b2cca9a88d99c5f47 (diff) | |
download | QMidiPlayer-800a0417e9ed175f220c472842a283202c77060b.tar.xz |
Problematic commit...
Diffstat (limited to 'visualization/qmpvisualization.hpp')
-rw-r--r-- | visualization/qmpvisualization.hpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/visualization/qmpvisualization.hpp b/visualization/qmpvisualization.hpp new file mode 100644 index 0000000..847f37b --- /dev/null +++ b/visualization/qmpvisualization.hpp @@ -0,0 +1,36 @@ +#ifndef QMPVISUALIZATION_H +#define QMPVISUALIZATION_H + +#include "../include/qmpcorepublic.hpp" + +class qmpVisualization; +class CTestCallBack:public IMidiCallBack +{ + private: + qmpVisualization *par; + public: + CTestCallBack(qmpVisualization *_par){par=_par;} + void callBack(void *callerdata,void *userdata); +}; +class qmpVisualization:public qmpPluginIntf +{ + friend class CTestCallBack; + private: + qmpPluginAPI* api; + int c; + CTestCallBack* cb; + public: + qmpVisualization(qmpPluginAPI* _api); + ~qmpVisualization(); + void init(); + void deinit(); + const char* pluginGetName(); + const char* pluginGetVersion(); +}; + +extern "C"{ + qmpPluginIntf* qmpPluginGetInterface(qmpPluginAPI* api) + {return new qmpVisualization(api);} +} + +#endif // QMPVISUALIZATION_H |