mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-14 15:33:34 -04:00
Hack to try ChannelAnalyzer channel plugin handled via DeviceUISet
This commit is contained in:
@@ -54,7 +54,15 @@ public:
|
||||
|
||||
// channel Rx plugins
|
||||
|
||||
virtual PluginInstanceGUI* createRxChannel(const QString& channelName __attribute__((unused)), DeviceSourceAPI *deviceAPI __attribute__((unused)) ) { return 0; }
|
||||
// TODO: remove this one when migration is complete
|
||||
virtual PluginInstanceGUI* createRxChannel(
|
||||
const QString& channelName __attribute__((unused)),
|
||||
DeviceSourceAPI *deviceAPI __attribute__((unused)) )
|
||||
{ return 0; }
|
||||
virtual PluginInstanceGUI* createRxChannel(
|
||||
const QString& channelName __attribute__((unused)),
|
||||
DeviceUISet *deviceAPI __attribute__((unused)) )
|
||||
{ return 0; }
|
||||
|
||||
// channel Tx plugins
|
||||
|
||||
|
||||
@@ -627,6 +627,27 @@ void PluginManager::createRxChannelInstance(int channelPluginIndex, DeviceSource
|
||||
}
|
||||
}
|
||||
|
||||
void PluginManager::createRxChannelInstance(int channelPluginIndex, DeviceUISet *deviceUISet)
|
||||
{
|
||||
if (channelPluginIndex < m_rxChannelRegistrations.size())
|
||||
{
|
||||
PluginInterface *pluginInterface = m_rxChannelRegistrations[channelPluginIndex].m_plugin;
|
||||
pluginInterface->createRxChannel(m_rxChannelRegistrations[channelPluginIndex].m_channelName, deviceUISet);
|
||||
}
|
||||
}
|
||||
|
||||
QString PluginManager::getRxChannelInstanceName(int channelPluginIndex)
|
||||
{
|
||||
if (channelPluginIndex < m_rxChannelRegistrations.size())
|
||||
{
|
||||
return m_rxChannelRegistrations[channelPluginIndex].m_channelName;
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
void PluginManager::createTxChannelInstance(int channelPluginIndex, DeviceSinkAPI *deviceAPI)
|
||||
{
|
||||
if (channelPluginIndex < m_txChannelRegistrations.size())
|
||||
|
||||
@@ -72,6 +72,8 @@ public:
|
||||
|
||||
void populateRxChannelComboBox(QComboBox *channels);
|
||||
void createRxChannelInstance(int channelPluginIndex, DeviceSourceAPI *deviceAPI);
|
||||
void createRxChannelInstance(int channelPluginIndex, DeviceUISet *deviceUISet);
|
||||
QString getRxChannelInstanceName(int channelPluginIndex);
|
||||
|
||||
void populateTxChannelComboBox(QComboBox *channels);
|
||||
void createTxChannelInstance(int channelPluginIndex, DeviceSinkAPI *deviceAPI);
|
||||
|
||||
Reference in New Issue
Block a user