aboutsummaryrefslogtreecommitdiff
path: root/mpris-plugin/qmpmpris.cpp
blob: 2eb18fd3647fb1daa6217cc9a4114ed2ceb1d5eb (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
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";
}