From a111ee6b11112295867f36284ef0f85934c44509 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Mon, 2 Jan 2012 03:39:02 +0100 Subject: initial import --- fmrxserviceplugin.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 fmrxserviceplugin.cpp (limited to 'fmrxserviceplugin.cpp') diff --git a/fmrxserviceplugin.cpp b/fmrxserviceplugin.cpp new file mode 100644 index 0000000..38c4ce8 --- /dev/null +++ b/fmrxserviceplugin.cpp @@ -0,0 +1,24 @@ +#include + +#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) -- cgit v1.2.3