From ddfe5552b3297236effc42f0c73e8b69654c976c Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Tue, 19 Jul 2016 22:49:40 +0900 Subject: initial commit for ALS2016 Change-Id: If170e059c9be053117e31afd5ae4b7cfa810aa1b --- rtlfmradioplugin.cpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 rtlfmradioplugin.cpp (limited to 'rtlfmradioplugin.cpp') diff --git a/rtlfmradioplugin.cpp b/rtlfmradioplugin.cpp new file mode 100644 index 0000000..2a44774 --- /dev/null +++ b/rtlfmradioplugin.cpp @@ -0,0 +1,34 @@ +/* Copyright (C) 2016, The Qt Company Ltd. All Rights Reserved. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "rtlfmradioplugin.h" +#include "rtlfmradioservice.h" + +QMediaService* RtlFmRadioPlugin::create(QString const& key) +{ + if (key == QLatin1String(Q_MEDIASERVICE_RADIO)) + return new RtlFmRadioService; + + return 0; +} + +void RtlFmRadioPlugin::release(QMediaService *service) +{ + delete service; +} + +QList RtlFmRadioPlugin::devices(const QByteArray &service) const +{ + Q_UNUSED(service) + return QList(); +} + +QString RtlFmRadioPlugin::deviceDescription(const QByteArray &service, const QByteArray &device) +{ + Q_UNUSED(service) + Q_UNUSED(device) + return QString(); +} -- cgit 1.2.3-korg