kopia lustrzana https://github.com/f4exb/sdrangel
Renamed createTxChannel to createTxChannelGUI to described only the GUI will be created there in the future
rodzic
76bf0ad104
commit
d4c9765480
|
@ -49,7 +49,7 @@ void AMModPlugin::initPlugin(PluginAPI* pluginAPI)
|
|||
m_pluginAPI->registerTxChannel(AMModGUI::m_channelID, this);
|
||||
}
|
||||
|
||||
PluginInstanceGUI* AMModPlugin::createTxChannel(const QString& channelName, DeviceUISet *deviceUISet)
|
||||
PluginInstanceGUI* AMModPlugin::createTxChannelGUI(const QString& channelName, DeviceUISet *deviceUISet)
|
||||
{
|
||||
if(channelName == AMModGUI::m_channelID)
|
||||
{
|
||||
|
|
|
@ -33,7 +33,7 @@ public:
|
|||
const PluginDescriptor& getPluginDescriptor() const;
|
||||
void initPlugin(PluginAPI* pluginAPI);
|
||||
|
||||
PluginInstanceGUI* createTxChannel(const QString& channelName, DeviceUISet *deviceUISet);
|
||||
PluginInstanceGUI* createTxChannelGUI(const QString& channelName, DeviceUISet *deviceUISet);
|
||||
|
||||
private:
|
||||
static const PluginDescriptor m_pluginDescriptor;
|
||||
|
|
|
@ -49,7 +49,7 @@ void ATVModPlugin::initPlugin(PluginAPI* pluginAPI)
|
|||
m_pluginAPI->registerTxChannel(ATVModGUI::m_channelID, this);
|
||||
}
|
||||
|
||||
PluginInstanceGUI* ATVModPlugin::createTxChannel(const QString& channelName, DeviceUISet *deviceUISet)
|
||||
PluginInstanceGUI* ATVModPlugin::createTxChannelGUI(const QString& channelName, DeviceUISet *deviceUISet)
|
||||
{
|
||||
if(channelName == ATVModGUI::m_channelID)
|
||||
{
|
||||
|
|
|
@ -33,7 +33,7 @@ public:
|
|||
const PluginDescriptor& getPluginDescriptor() const;
|
||||
void initPlugin(PluginAPI* pluginAPI);
|
||||
|
||||
PluginInstanceGUI* createTxChannel(const QString& channelName, DeviceUISet *deviceUISet);
|
||||
PluginInstanceGUI* createTxChannelGUI(const QString& channelName, DeviceUISet *deviceUISet);
|
||||
|
||||
private:
|
||||
static const PluginDescriptor m_pluginDescriptor;
|
||||
|
|
|
@ -49,7 +49,7 @@ void NFMModPlugin::initPlugin(PluginAPI* pluginAPI)
|
|||
m_pluginAPI->registerTxChannel(NFMModGUI::m_channelID, this);
|
||||
}
|
||||
|
||||
PluginInstanceGUI* NFMModPlugin::createTxChannel(const QString& channelName, DeviceUISet *deviceUISet)
|
||||
PluginInstanceGUI* NFMModPlugin::createTxChannelGUI(const QString& channelName, DeviceUISet *deviceUISet)
|
||||
{
|
||||
if(channelName == NFMModGUI::m_channelID)
|
||||
{
|
||||
|
|
|
@ -33,7 +33,7 @@ public:
|
|||
const PluginDescriptor& getPluginDescriptor() const;
|
||||
void initPlugin(PluginAPI* pluginAPI);
|
||||
|
||||
PluginInstanceGUI* createTxChannel(const QString& channelName, DeviceUISet *deviceUISet);
|
||||
PluginInstanceGUI* createTxChannelGUI(const QString& channelName, DeviceUISet *deviceUISet);
|
||||
|
||||
private:
|
||||
static const PluginDescriptor m_pluginDescriptor;
|
||||
|
|
|
@ -49,7 +49,7 @@ void SSBModPlugin::initPlugin(PluginAPI* pluginAPI)
|
|||
m_pluginAPI->registerTxChannel(SSBModGUI::m_channelID, this);
|
||||
}
|
||||
|
||||
PluginInstanceGUI* SSBModPlugin::createTxChannel(const QString& channelName, DeviceUISet *deviceUISet)
|
||||
PluginInstanceGUI* SSBModPlugin::createTxChannelGUI(const QString& channelName, DeviceUISet *deviceUISet)
|
||||
{
|
||||
if(channelName == SSBModGUI::m_channelID)
|
||||
{
|
||||
|
|
|
@ -33,7 +33,7 @@ public:
|
|||
const PluginDescriptor& getPluginDescriptor() const;
|
||||
void initPlugin(PluginAPI* pluginAPI);
|
||||
|
||||
PluginInstanceGUI* createTxChannel(const QString& channelName, DeviceUISet *deviceUISet);
|
||||
PluginInstanceGUI* createTxChannelGUI(const QString& channelName, DeviceUISet *deviceUISet);
|
||||
|
||||
private:
|
||||
static const PluginDescriptor m_pluginDescriptor;
|
||||
|
|
|
@ -49,7 +49,7 @@ void WFMModPlugin::initPlugin(PluginAPI* pluginAPI)
|
|||
m_pluginAPI->registerTxChannel(WFMModGUI::m_channelID, this);
|
||||
}
|
||||
|
||||
PluginInstanceGUI* WFMModPlugin::createTxChannel(const QString& channelName, DeviceUISet *deviceUISet)
|
||||
PluginInstanceGUI* WFMModPlugin::createTxChannelGUI(const QString& channelName, DeviceUISet *deviceUISet)
|
||||
{
|
||||
if(channelName == WFMModGUI::m_channelID)
|
||||
{
|
||||
|
|
|
@ -33,7 +33,7 @@ public:
|
|||
const PluginDescriptor& getPluginDescriptor() const;
|
||||
void initPlugin(PluginAPI* pluginAPI);
|
||||
|
||||
PluginInstanceGUI* createTxChannel(const QString& channelName, DeviceUISet *deviceUISet);
|
||||
PluginInstanceGUI* createTxChannelGUI(const QString& channelName, DeviceUISet *deviceUISet);
|
||||
|
||||
private:
|
||||
static const PluginDescriptor m_pluginDescriptor;
|
||||
|
|
|
@ -50,7 +50,7 @@ void UDPSinkPlugin::initPlugin(PluginAPI* pluginAPI)
|
|||
m_pluginAPI->registerTxChannel(UDPSinkGUI::m_channelID, this);
|
||||
}
|
||||
|
||||
PluginInstanceGUI* UDPSinkPlugin::createTxChannel(const QString& channelName, DeviceUISet *deviceUISet)
|
||||
PluginInstanceGUI* UDPSinkPlugin::createTxChannelGUI(const QString& channelName, DeviceUISet *deviceUISet)
|
||||
{
|
||||
if(channelName == UDPSinkGUI::m_channelID)
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@ public:
|
|||
const PluginDescriptor& getPluginDescriptor() const;
|
||||
void initPlugin(PluginAPI* pluginAPI);
|
||||
|
||||
PluginInstanceGUI* createTxChannel(const QString& channelName, DeviceUISet *deviceUISet);
|
||||
PluginInstanceGUI* createTxChannelGUI(const QString& channelName, DeviceUISet *deviceUISet);
|
||||
|
||||
private:
|
||||
static const PluginDescriptor m_pluginDescriptor;
|
||||
|
|
|
@ -78,7 +78,7 @@ public:
|
|||
|
||||
// channel Tx plugins
|
||||
|
||||
virtual PluginInstanceGUI* createTxChannel(
|
||||
virtual PluginInstanceGUI* createTxChannelGUI(
|
||||
const QString& channelName __attribute__((unused)),
|
||||
DeviceUISet *deviceUISet __attribute__((unused)) )
|
||||
{ return 0; }
|
||||
|
|
|
@ -191,6 +191,6 @@ void PluginManager::createTxChannelInstance(int channelPluginIndex, DeviceUISet
|
|||
if (channelPluginIndex < m_txChannelRegistrations.size())
|
||||
{
|
||||
PluginInterface *pluginInterface = m_txChannelRegistrations[channelPluginIndex].m_plugin;
|
||||
pluginInterface->createTxChannel(m_txChannelRegistrations[channelPluginIndex].m_channelId, deviceUISet);
|
||||
pluginInterface->createTxChannelGUI(m_txChannelRegistrations[channelPluginIndex].m_channelId, deviceUISet);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -274,7 +274,7 @@ void DeviceUISet::loadTxChannelSettings(const Preset *preset, PluginAPI *pluginA
|
|||
if((*channelRegistrations)[i].m_channelId == channelConfig.m_channel)
|
||||
{
|
||||
qDebug("DeviceUISet::loadChannelSettings: creating new channel [%s]", qPrintable(channelConfig.m_channel));
|
||||
reg = ChannelInstanceRegistration(channelConfig.m_channel, (*channelRegistrations)[i].m_plugin->createTxChannel(channelConfig.m_channel, this));
|
||||
reg = ChannelInstanceRegistration(channelConfig.m_channel, (*channelRegistrations)[i].m_plugin->createTxChannelGUI(channelConfig.m_channel, this));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue