diff options
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"; +} |