You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
37 lines
1.0 KiB
#ifndef INCLUDE_RTLSDRPLUGIN_H |
|
#define INCLUDE_RTLSDRPLUGIN_H |
|
|
|
#include <QObject> |
|
#include "plugin/plugininterface.h" |
|
|
|
class PluginAPI; |
|
|
|
#define RTLSDR_DEVICE_TYPE_ID "sdrangel.samplesource.rtlsdr" |
|
|
|
class RTLSDRPlugin : public QObject, public PluginInterface { |
|
Q_OBJECT |
|
Q_INTERFACES(PluginInterface) |
|
Q_PLUGIN_METADATA(IID RTLSDR_DEVICE_TYPE_ID) |
|
|
|
public: |
|
explicit RTLSDRPlugin(QObject* parent = NULL); |
|
|
|
const PluginDescriptor& getPluginDescriptor() const; |
|
void initPlugin(PluginAPI* pluginAPI); |
|
|
|
virtual SamplingDevices enumSampleSources(); |
|
virtual PluginInstanceGUI* createSampleSourcePluginInstanceGUI( |
|
const QString& sourceId, |
|
QWidget **widget, |
|
DeviceUISet *deviceUISet); |
|
virtual DeviceSampleSource* createSampleSourcePluginInstance(const QString& sourceId, DeviceAPI *deviceAPI); |
|
virtual DeviceWebAPIAdapter* createDeviceWebAPIAdapter() const; |
|
|
|
static const QString m_hardwareID; |
|
static const QString m_deviceTypeID; |
|
|
|
private: |
|
static const PluginDescriptor m_pluginDescriptor; |
|
}; |
|
|
|
#endif // INCLUDE_RTLSDRPLUGIN_H
|
|
|