mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
Multi device support: commented out code cleanup
This commit is contained in:
@@ -17,11 +17,7 @@
|
||||
PluginManager::PluginManager(MainWindow* mainWindow, QObject* parent) :
|
||||
QObject(parent),
|
||||
m_pluginAPI(this, mainWindow),
|
||||
m_mainWindow(mainWindow)//,
|
||||
// m_sampleSourceId(),
|
||||
// m_sampleSourceSerial(),
|
||||
// m_sampleSourceSequence(0),
|
||||
// m_sampleSourcePluginGUI(NULL)
|
||||
m_mainWindow(mainWindow)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -114,20 +110,6 @@ int PluginManager::selectSampleSourceByIndex(int index, DeviceAPI *deviceAPI)
|
||||
index = 0;
|
||||
}
|
||||
|
||||
// deviceAPI->stopAcquisition();
|
||||
//
|
||||
// if(m_sampleSourcePluginGUI != NULL) {
|
||||
// deviceAPI->stopAcquisition();
|
||||
// deviceAPI->setSource(0);
|
||||
// m_sampleSourcePluginGUI->destroy();
|
||||
// m_sampleSourcePluginGUI = NULL;
|
||||
// m_sampleSourceId.clear();
|
||||
// }
|
||||
//
|
||||
// m_sampleSourceId = m_sampleSourceDevices[index].m_sourceId;
|
||||
// m_sampleSourceSerial = m_sampleSourceDevices[index].m_sourceSerial;
|
||||
// m_sampleSourceSequence = m_sampleSourceDevices[index].m_sourceSequence;
|
||||
|
||||
qDebug() << "PluginManager::selectSampleSourceByIndex: m_sampleSource at index " << index
|
||||
<< " id: " << m_sampleSourceDevices[index].m_sourceId.toStdString().c_str()
|
||||
<< " ser: " << m_sampleSourceDevices[index].m_sourceSerial.toStdString().c_str()
|
||||
@@ -155,16 +137,6 @@ int PluginManager::selectFirstSampleSource(const QString& sourceId, DeviceAPI *d
|
||||
|
||||
int index = -1;
|
||||
|
||||
// deviceAPI->stopAcquisition();
|
||||
//
|
||||
// if(m_sampleSourcePluginGUI != NULL) {
|
||||
// deviceAPI->stopAcquisition();
|
||||
// deviceAPI->setSource(0);
|
||||
// m_sampleSourcePluginGUI->destroy();
|
||||
// m_sampleSourcePluginGUI = NULL;
|
||||
// m_sampleSourceId.clear();
|
||||
// }
|
||||
|
||||
for (int i = 0; i < m_sampleSourceDevices.count(); i++)
|
||||
{
|
||||
qDebug("*** %s vs %s", qPrintable(m_sampleSourceDevices[i].m_sourceId), qPrintable(sourceId));
|
||||
@@ -188,10 +160,6 @@ int PluginManager::selectFirstSampleSource(const QString& sourceId, DeviceAPI *d
|
||||
}
|
||||
}
|
||||
|
||||
// m_sampleSourceId = m_sampleSourceDevices[index].m_sourceId;
|
||||
// m_sampleSourceSerial = m_sampleSourceDevices[index].m_sourceSerial;
|
||||
// m_sampleSourceSequence = m_sampleSourceDevices[index].m_sourceSequence;
|
||||
|
||||
qDebug() << "PluginManager::selectFirstSampleSource: m_sampleSource at index " << index
|
||||
<< " id: " << m_sampleSourceDevices[index].m_sourceId.toStdString().c_str()
|
||||
<< " ser: " << m_sampleSourceDevices[index].m_sourceSerial.toStdString().c_str()
|
||||
@@ -266,10 +234,6 @@ int PluginManager::selectSampleSourceBySerialOrSequence(const QString& sourceId,
|
||||
}
|
||||
}
|
||||
|
||||
// m_sampleSourceId = m_sampleSourceDevices[index].m_sourceId;
|
||||
// m_sampleSourceSerial = m_sampleSourceDevices[index].m_sourceSerial;
|
||||
// m_sampleSourceSequence = m_sampleSourceDevices[index].m_sourceSequence;
|
||||
|
||||
qDebug() << "PluginManager::selectSampleSourceBySequence: m_sampleSource at index " << index
|
||||
<< " id: " << m_sampleSourceDevices[index].m_sourceId.toStdString().c_str()
|
||||
<< " ser: " << m_sampleSourceDevices[index].m_sourceSerial.toStdString().c_str()
|
||||
|
||||
Reference in New Issue
Block a user