diff options
author | Sami Nurmenniemi <ext-sami.nurmenniemi@nokia.com> | 2011-10-11 09:06:12 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-21 03:40:14 +0200 |
commit | 6aea1a22eeebfe040a330d746de9e9d2cc99b130 (patch) | |
tree | 62cc58c369f866cfaaeb78f2284a94994b9b8180 /src/plugins/fakeradio/fakeradioserviceplugin.cpp | |
parent | cbb21e30d5cd18d17d60a049087f98a82c2862b9 (diff) |
Added RDS functionality to the QRadioTuner/QDeclarativeRadio
Change-Id: I865e3caba82977002cf1f01f1d64ee0a42de77c6
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Diffstat (limited to 'src/plugins/fakeradio/fakeradioserviceplugin.cpp')
-rw-r--r-- | src/plugins/fakeradio/fakeradioserviceplugin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/fakeradio/fakeradioserviceplugin.cpp b/src/plugins/fakeradio/fakeradioserviceplugin.cpp index d488119..ee8d0c8 100644 --- a/src/plugins/fakeradio/fakeradioserviceplugin.cpp +++ b/src/plugins/fakeradio/fakeradioserviceplugin.cpp @@ -59,14 +59,16 @@ QStringList FakeRadioServicePlugin::keys() const QMediaService* FakeRadioServicePlugin::create(QString const& key) { if (key == QLatin1String(Q_MEDIASERVICE_RADIO)) - return new FakeRadioService; + return FakeRadioService::instance(); return 0; } void FakeRadioServicePlugin::release(QMediaService *service) { - delete service; + FakeRadioService* fakeRadio = qobject_cast<FakeRadioService*>(service); + if (fakeRadio) + fakeRadio->release(); } QList<QByteArray> FakeRadioServicePlugin::devices(const QByteArray &service) const |