18 #include <QGlobalStatic> 26 return deviceEnumerator;
41 for (
int i = 0;
i < rxDeviceRegistrations.count();
i++)
43 qDebug(
"DeviceEnumerator::enumerateRxDevices: %s", qPrintable(rxDeviceRegistrations[
i].m_deviceId));
46 for (
int j = 0; j < samplingDevices.count(); j++)
51 rxDeviceRegistrations[
i].m_plugin,
66 for (
int i = 0;
i < txDeviceRegistrations.count();
i++)
68 qDebug(
"DeviceEnumerator::enumerateTxDevices: %s", qPrintable(txDeviceRegistrations[
i].m_deviceId));
71 for (
int j = 0; j < samplingDevices.count(); j++)
76 txDeviceRegistrations[
i].m_plugin,
91 for (
int i = 0;
i < mimoDeviceRegistrations.count();
i++)
93 qDebug(
"DeviceEnumerator::enumerateMIMODevices: %s", qPrintable(mimoDeviceRegistrations[
i].m_deviceId));
96 for (
int j = 0; j < samplingDevices.count(); j++)
101 mimoDeviceRegistrations[
i].m_plugin,
116 list.append(it->m_samplingDevice.displayedName);
117 indexes.push_back(it->m_index);
128 list.append(it->m_samplingDevice.displayedName);
129 indexes.push_back(it->m_index);
140 list.append(it->m_samplingDevice.displayedName);
141 indexes.push_back(it->m_index);
150 if (it->m_samplingDevice.claimed == tabIndex) {
151 it->m_samplingDevice.claimed = -1;
153 if (it->m_index == deviceIndex) {
154 it->m_samplingDevice.claimed = tabIndex;
163 if (it->m_samplingDevice.claimed == tabIndex) {
164 it->m_samplingDevice.claimed = -1;
166 if (it->m_index == deviceIndex) {
167 it->m_samplingDevice.claimed = tabIndex;
176 if (it->m_samplingDevice.claimed == tabIndex) {
177 it->m_samplingDevice.claimed = -1;
179 if (it->m_index == deviceIndex) {
180 it->m_samplingDevice.claimed = tabIndex;
189 if (it->m_samplingDevice.claimed == tabIndex) {
190 it->m_samplingDevice.claimed = -1;
199 if (it->m_samplingDevice.claimed == tabIndex) {
200 it->m_samplingDevice.claimed = -1;
209 if (it->m_samplingDevice.claimed == tabIndex) {
210 it->m_samplingDevice.claimed = -1;
255 if ((it->m_samplingDevice.id == deviceId) && (it->m_samplingDevice.sequence == sequence)) {
267 if ((it->m_samplingDevice.id == deviceId) && (it->m_samplingDevice.sequence == sequence)) {
279 if ((it->m_samplingDevice.id == deviceId) && (it->m_samplingDevice.sequence == sequence)) {
void changeMIMOSelection(int tabIndex, int deviceIndex)
int getFileSinkDeviceIndex() const
Get Tx default device.
void enumerateTxDevices(PluginManager *pluginManager)
int getMIMOSamplingDeviceIndex(const QString &deviceId, int sequence)
static const QString & getFileSinkDeviceId()
static const QString & getFileInputDeviceId()
void listRxDeviceNames(QList< QString > &list, std::vector< int > &indexes) const
int getRxSamplingDeviceIndex(const QString &deviceId, int sequence)
void removeMIMOSelection(int tabIndex)
QList< SamplingDeviceRegistration > SamplingDeviceRegistrations
void changeTxSelection(int tabIndex, int deviceIndex)
void listTxDeviceNames(QList< QString > &list, std::vector< int > &indexes) const
static const QString & getTestMIMODeviceId()
void removeRxSelection(int tabIndex)
DevicesEnumeration m_rxEnumeration
void enumerateMIMODevices(PluginManager *pluginManager)
void enumerateRxDevices(PluginManager *pluginManager)
int getTestMIMODeviceIndex() const
Get MIMO default device.
void changeRxSelection(int tabIndex, int deviceIndex)
void removeTxSelection(int tabIndex)
void listMIMODeviceNames(QList< QString > &list, std::vector< int > &indexes) const
PluginAPI::SamplingDeviceRegistrations & getSinkDeviceRegistrations()
DevicesEnumeration m_txEnumeration
int getFileInputDeviceIndex() const
Get Rx default device.
int getTxSamplingDeviceIndex(const QString &deviceId, int sequence)
PluginAPI::SamplingDeviceRegistrations & getMIMODeviceRegistrations()
PluginAPI::SamplingDeviceRegistrations & getSourceDeviceRegistrations()
QList< SamplingDevice > SamplingDevices
DevicesEnumeration m_mimoEnumeration