diff options
author | Chris Xiong <chirs241097@gmail.com> | 2023-11-26 01:10:36 -0500 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2023-11-26 01:10:36 -0500 |
commit | 60989e52b3f3bc0a95d3e61bd8e59fa4d9b7ab83 (patch) | |
tree | af08e5b6f7019c6f70bf3800a419ec78db140988 /mpris-plugin/qmpmpris.cpp | |
parent | 382d85b15ce9cc4580a2522b39f5dd4ce43a24b0 (diff) | |
download | QMidiPlayer-60989e52b3f3bc0a95d3e61bd8e59fa4d9b7ab83.tar.xz |
The 2 year constipation. (mpris plugin)
Probably buggy as hell.
Diffstat (limited to 'mpris-plugin/qmpmpris.cpp')
-rw-r--r-- | mpris-plugin/qmpmpris.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mpris-plugin/qmpmpris.cpp b/mpris-plugin/qmpmpris.cpp new file mode 100644 index 0000000..2eb18fd --- /dev/null +++ b/mpris-plugin/qmpmpris.cpp @@ -0,0 +1,29 @@ +#include <cstdio> +#include "qmpmpris.hpp" +#include "qmpriswrapper.hpp" +#include "qmpmprisimpl.hpp" + +qmpMPrisPlugin::qmpMPrisPlugin(qmpPluginAPI *_api) +{ + api = _api; +} +qmpMPrisPlugin::~qmpMPrisPlugin() +{ + api = nullptr; +} +void qmpMPrisPlugin::init() +{ + mw = QMPrisWrapper::create<QMPPlayer, QMPMediaPlayer2, QMPTrackList>("qmidiplayer", api); +} +void qmpMPrisPlugin::deinit() +{ + delete mw; +} +const char *qmpMPrisPlugin::pluginGetName() +{ + return "QMidiPlayer MPris Support"; +} +const char *qmpMPrisPlugin::pluginGetVersion() +{ + return "0.8.8"; +} |