2014-05-18 11:52:39 -04:00
|
|
|
#ifndef INCLUDE_RTLSDRPLUGIN_H
|
|
|
|
#define INCLUDE_RTLSDRPLUGIN_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include "plugin/plugininterface.h"
|
|
|
|
|
|
|
|
class RTLSDRPlugin : public QObject, PluginInterface {
|
|
|
|
Q_OBJECT
|
|
|
|
Q_INTERFACES(PluginInterface)
|
|
|
|
Q_PLUGIN_METADATA(IID "org.osmocom.sdr.samplesource.rtl-sdr")
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit RTLSDRPlugin(QObject* parent = NULL);
|
|
|
|
|
|
|
|
const PluginDescriptor& getPluginDescriptor() const;
|
|
|
|
void initPlugin(PluginAPI* pluginAPI);
|
|
|
|
|
|
|
|
SampleSourceDevices enumSampleSources();
|
2015-08-17 20:47:14 -04:00
|
|
|
PluginGUI* createSampleSourcePluginGUI(const QString& sourceName, const QByteArray& address);
|
2014-05-18 11:52:39 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
static const PluginDescriptor m_pluginDescriptor;
|
|
|
|
|
|
|
|
PluginAPI* m_pluginAPI;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INCLUDE_RTLSDRPLUGIN_H
|