2015-09-23 20:50:24 -04: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 //
|
2019-04-11 00:57:41 -04:00
|
|
|
// (at your option) any later version. //
|
2015-09-23 20:50:24 -04:00
|
|
|
// //
|
|
|
|
// 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-26 20:25:06 -05:00
|
|
|
#ifndef INCLUDE_HACKRFINPUTPLUGIN_H
|
|
|
|
#define INCLUDE_HACKRFINPUTPLUGIN_H
|
2015-09-23 20:50:24 -04:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include "plugin/plugininterface.h"
|
|
|
|
|
2015-09-29 21:46:46 -04:00
|
|
|
#define HACKRF_DEVICE_TYPE_ID "sdrangel.samplesource.hackrf"
|
|
|
|
|
2016-05-17 13:26:23 -04:00
|
|
|
class PluginAPI;
|
|
|
|
|
2016-12-26 20:25:06 -05:00
|
|
|
class HackRFInputPlugin : public QObject, public PluginInterface {
|
2015-09-23 20:50:24 -04:00
|
|
|
Q_OBJECT
|
|
|
|
Q_INTERFACES(PluginInterface)
|
2015-09-29 21:46:46 -04:00
|
|
|
Q_PLUGIN_METADATA(IID HACKRF_DEVICE_TYPE_ID)
|
2015-09-23 20:50:24 -04:00
|
|
|
|
|
|
|
public:
|
2016-12-26 20:25:06 -05:00
|
|
|
explicit HackRFInputPlugin(QObject* parent = NULL);
|
2015-09-23 20:50:24 -04:00
|
|
|
|
|
|
|
const PluginDescriptor& getPluginDescriptor() const;
|
|
|
|
void initPlugin(PluginAPI* pluginAPI);
|
|
|
|
|
2016-10-13 16:23:43 -04:00
|
|
|
virtual SamplingDevices enumSampleSources();
|
2017-10-29 19:02:28 -04:00
|
|
|
virtual PluginInstanceGUI* createSampleSourcePluginInstanceGUI(
|
|
|
|
const QString& sourceId,
|
|
|
|
QWidget **widget,
|
|
|
|
DeviceUISet *deviceUISet);
|
2019-05-19 04:28:50 -04:00
|
|
|
virtual DeviceSampleSource* createSampleSourcePluginInstance(const QString& sourceId, DeviceAPI *deviceAPI);
|
2015-09-23 20:50:24 -04:00
|
|
|
|
2016-12-29 06:41:10 -05:00
|
|
|
static const QString m_hardwareID;
|
|
|
|
static const QString m_deviceTypeID;
|
2015-09-29 21:46:46 -04:00
|
|
|
|
2015-09-23 20:50:24 -04:00
|
|
|
private:
|
|
|
|
static const PluginDescriptor m_pluginDescriptor;
|
|
|
|
};
|
|
|
|
|
2016-12-26 20:25:06 -05:00
|
|
|
#endif // INCLUDE_HACKRFINPUTPLUGIN_H
|