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.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 rtlfmradioplugin.h (limited to 'rtlfmradioplugin.h') diff --git a/rtlfmradioplugin.h b/rtlfmradioplugin.h new file mode 100644 index 0000000..9941337 --- /dev/null +++ b/rtlfmradioplugin.h @@ -0,0 +1,27 @@ +/* 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/. */ + +#ifndef RTLFMRADIOPLUGIN_H +#define RTLFMRADIOPLUGIN_H + +#include + +class RtlFmRadioPlugin : public QMediaServiceProviderPlugin, public QMediaServiceSupportedDevicesInterface +{ + Q_OBJECT + Q_INTERFACES(QMediaServiceProviderFactoryInterface) + Q_INTERFACES(QMediaServiceSupportedDevicesInterface) + Q_PLUGIN_METADATA(IID QMediaServiceProviderFactoryInterface_iid FILE "rtlfmradio.json") + +public: + QMediaService* create(QString const& key); + void release(QMediaService *service); + + QList devices(const QByteArray &service) const; + QString deviceDescription(const QByteArray &service, const QByteArray &device); +}; + +#endif // RTLFMRADIOPLUGIN_H -- cgit 1.2.3-korg