2021-05-01 07:50:51 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Copyright (C) 2021 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 //
|
|
|
|
// (at your option) any later version. //
|
|
|
|
// //
|
|
|
|
// 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/>. //
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _PLUTOSDRMIMO_PLUTOSDRMIMOPLUGIN_H
|
|
|
|
#define _PLUTOSDRMIMO_PLUTOSDRMIMOPLUGIN_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include "plugin/plugininterface.h"
|
|
|
|
|
|
|
|
class PluginAPI;
|
|
|
|
|
2021-05-02 11:06:10 +00:00
|
|
|
#define PLUTOSDRMIMO_DEVICE_TYPE_ID "sdrangel.samplemimo.plutosdrmimo"
|
2021-05-01 07:50:51 +00:00
|
|
|
|
|
|
|
class PlutoSDRMIMOPlugin : public QObject, public PluginInterface {
|
|
|
|
Q_OBJECT
|
|
|
|
Q_INTERFACES(PluginInterface)
|
|
|
|
Q_PLUGIN_METADATA(IID PLUTOSDRMIMO_DEVICE_TYPE_ID)
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit PlutoSDRMIMOPlugin(QObject* parent = nullptr);
|
|
|
|
|
|
|
|
const PluginDescriptor& getPluginDescriptor() const;
|
|
|
|
void initPlugin(PluginAPI* pluginAPI);
|
|
|
|
|
|
|
|
virtual void enumOriginDevices(QStringList& listedHwIds, OriginDevices& originDevices);
|
|
|
|
virtual SamplingDevices enumSampleMIMO(const OriginDevices& originDevices);
|
|
|
|
|
|
|
|
virtual DeviceGUI* createSampleMIMOPluginInstanceGUI(
|
|
|
|
const QString& sourceId,
|
|
|
|
QWidget **widget,
|
|
|
|
DeviceUISet *deviceUISet);
|
|
|
|
virtual DeviceSampleMIMO* createSampleMIMOPluginInstance(const QString& sourceId, DeviceAPI *deviceAPI);
|
|
|
|
virtual DeviceWebAPIAdapter* createDeviceWebAPIAdapter() const;
|
2021-05-02 11:06:10 +00:00
|
|
|
virtual QString getDeviceTypeId() const { return m_deviceTypeID; }
|
|
|
|
|
|
|
|
static const char* const m_deviceTypeID;
|
2021-05-01 07:50:51 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
static const PluginDescriptor m_pluginDescriptor;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _PLUTOSDRMIMO_PLUTOSDRMIMOPLUGIN_H
|