diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-01-02 03:39:02 +0100 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-01-02 03:39:02 +0100 |
commit | a111ee6b11112295867f36284ef0f85934c44509 (patch) | |
tree | 3c5a1356ee3e5d49609a6d0a6907073d846c859d /fmrxserviceplugin.cpp | |
download | fmrx-qt-a111ee6b11112295867f36284ef0f85934c44509.tar.gz fmrx-qt-a111ee6b11112295867f36284ef0f85934c44509.zip |
initial import
Diffstat (limited to 'fmrxserviceplugin.cpp')
-rw-r--r-- | fmrxserviceplugin.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
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 <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) |