blob: 38c4ce83b7c4a898742bccb6fb1d7f04e0ba0a51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include <QMediaServiceProvider>
#include "fmrxserviceplugin.h"
#include "fmrxservice.h"
QStringList FmRxServicePlugin::keys() const
{
return QStringList() << QLatin1String(Q_MEDIASERVICE_RADIO);
}
QMediaService* FmRxServicePlugin::create(const QString &key)
{
if (key == QLatin1String(Q_MEDIASERVICE_RADIO))
return new FmRxService;
return 0;
}
void FmRxServicePlugin::release(QMediaService *service)
{
delete service;
}
Q_EXPORT_PLUGIN2(fmrx-qt, FmRxServicePlugin)
|