From 9fd7152f13157f88136a386779919ce57ac59e2b Mon Sep 17 00:00:00 2001 From: Christian Daniel Date: Mon, 23 Sep 2013 21:31:54 +0200 Subject: major rewrite and changes... far too many to put into individual commits --- plugins/samplesource/osmosdr/osmosdrplugin.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins/samplesource/osmosdr/osmosdrplugin.cpp') diff --git a/plugins/samplesource/osmosdr/osmosdrplugin.cpp b/plugins/samplesource/osmosdr/osmosdrplugin.cpp index a61e4c8..183642d 100644 --- a/plugins/samplesource/osmosdr/osmosdrplugin.cpp +++ b/plugins/samplesource/osmosdr/osmosdrplugin.cpp @@ -48,17 +48,21 @@ PluginInterface::SampleSourceDevices OsmoSDRPlugin::enumSampleSources() if(osmosdr_get_device_usb_strings(i, vendor, product, serial) != 0) continue; QString displayedName(QString("OsmoSDR #%1 (#%2)").arg(i + 1).arg(serial)); + qDebug("found %s", qPrintable(displayedName)); SimpleSerializer s(1); s.writeS32(1, i); result.append(SampleSourceDevice(displayedName, "org.osmocom.sdr.samplesource.osmo-sdr", s.final())); } + return result; } PluginGUI* OsmoSDRPlugin::createSampleSource(const QString& sourceName, const QByteArray& address) { if(sourceName == "org.osmocom.sdr.samplesource.osmo-sdr") { - return new OsmoSDRGui(m_pluginAPI); + OsmoSDRGui* gui = new OsmoSDRGui(m_pluginAPI); + m_pluginAPI->setInputGUI(gui); + return gui; } else { return NULL; } -- cgit v1.2.3