2015-09-24 02:50:24 +02:00
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Copyright (C) 2015 Edouard Griffiths, F4EXB //
|
|
|
|
// //
|
|
|
|
// This program is free software; you can redistribute it and/or modify //
|
|
|
|
// it under the terms of the GNU General Public License as published by //
|
|
|
|
// the Free Software Foundation as version 3 of the License, or //
|
|
|
|
// //
|
|
|
|
// This program is distributed in the hope that it will be useful, //
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
|
|
|
// GNU General Public License V3 for more details. //
|
|
|
|
// //
|
|
|
|
// You should have received a copy of the GNU General Public License //
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2016-12-27 02:25:06 +01:00
|
|
|
#ifndef INCLUDE_HACKRFINPUTPLUGIN_H
|
|
|
|
#define INCLUDE_HACKRFINPUTPLUGIN_H
|
2015-09-24 02:50:24 +02:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include "plugin/plugininterface.h"
|
|
|
|
|
2015-09-30 03:46:46 +02:00
|
|
|
#define HACKRF_DEVICE_TYPE_ID "sdrangel.samplesource.hackrf"
|
|
|
|
|
2016-05-17 19:26:23 +02:00
|
|
|
class PluginAPI;
|
|
|
|
|
2016-12-27 02:25:06 +01:00
|
|
|
class HackRFInputPlugin : public QObject, public PluginInterface {
|
2015-09-24 02:50:24 +02:00
|
|
|
Q_OBJECT
|
|
|
|
Q_INTERFACES(PluginInterface)
|
2015-09-30 03:46:46 +02:00
|
|
|
Q_PLUGIN_METADATA(IID HACKRF_DEVICE_TYPE_ID)
|
2015-09-24 02:50:24 +02:00
|
|
|
|
|
|
|
public:
|
2016-12-27 02:25:06 +01:00
|
|
|
explicit HackRFInputPlugin(QObject* parent = NULL);
|
2015-09-24 02:50:24 +02:00
|
|
|
|
|
|
|
const PluginDescriptor& getPluginDescriptor() const;
|
|
|
|
void initPlugin(PluginAPI* pluginAPI);
|
|
|
|
|
2016-10-13 22:23:43 +02:00
|
|
|
virtual SamplingDevices enumSampleSources();
|
2017-09-03 20:24:17 +02:00
|
|
|
virtual PluginInstanceUI* createSampleSourcePluginInstanceUI(const QString& sourceId, QWidget **widget, DeviceSourceAPI *deviceAPI);
|
2015-09-24 02:50:24 +02:00
|
|
|
|
2016-12-29 12:41:10 +01:00
|
|
|
static const QString m_hardwareID;
|
|
|
|
static const QString m_deviceTypeID;
|
2015-09-30 03:46:46 +02:00
|
|
|
|
2015-09-24 02:50:24 +02:00
|
|
|
private:
|
|
|
|
static const PluginDescriptor m_pluginDescriptor;
|
|
|
|
};
|
|
|
|
|
2016-12-27 02:25:06 +01:00
|
|
|
#endif // INCLUDE_HACKRFINPUTPLUGIN_H
|