kopia lustrzana https://github.com/f4exb/sdrangel
Removed unused methods from DeviceSet
rodzic
b17a8c942b
commit
05cd1460e9
|
@ -47,65 +47,6 @@ DeviceSet::~DeviceSet()
|
|||
{
|
||||
}
|
||||
|
||||
void DeviceSet::registerRxChannelInstance(const QString& channelName, ChannelAPI* channelAPI)
|
||||
{
|
||||
m_channelInstanceRegistrations.append(ChannelInstanceRegistration(channelName, channelAPI));
|
||||
renameChannelInstances();
|
||||
}
|
||||
|
||||
void DeviceSet::registerTxChannelInstance(const QString& channelName, ChannelAPI* channelAPI)
|
||||
{
|
||||
m_channelInstanceRegistrations.append(ChannelInstanceRegistration(channelName, channelAPI));
|
||||
renameChannelInstances();
|
||||
}
|
||||
|
||||
void DeviceSet::registerChannelInstance(const QString& channelName, ChannelAPI* channelAPI)
|
||||
{
|
||||
m_channelInstanceRegistrations.append(ChannelInstanceRegistration(channelName, channelAPI));
|
||||
renameChannelInstances();
|
||||
}
|
||||
|
||||
void DeviceSet::removeRxChannelInstance(ChannelAPI* channelAPI)
|
||||
{
|
||||
for (ChannelInstanceRegistrations::iterator it = m_channelInstanceRegistrations.begin(); it != m_channelInstanceRegistrations.end(); ++it)
|
||||
{
|
||||
if (it->m_channelAPI == channelAPI)
|
||||
{
|
||||
m_channelInstanceRegistrations.erase(it);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
renameChannelInstances();
|
||||
}
|
||||
|
||||
void DeviceSet::removeTxChannelInstance(ChannelAPI* channelAPI)
|
||||
{
|
||||
for(ChannelInstanceRegistrations::iterator it = m_channelInstanceRegistrations.begin(); it != m_channelInstanceRegistrations.end(); ++it)
|
||||
{
|
||||
if(it->m_channelAPI == channelAPI)
|
||||
{
|
||||
m_channelInstanceRegistrations.erase(it);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
renameChannelInstances();
|
||||
}
|
||||
|
||||
void DeviceSet::removeChannelInstance(ChannelAPI* channelAPI)
|
||||
{
|
||||
for(ChannelInstanceRegistrations::iterator it = m_channelInstanceRegistrations.begin(); it != m_channelInstanceRegistrations.end(); ++it)
|
||||
{
|
||||
if(it->m_channelAPI == channelAPI)
|
||||
{
|
||||
m_channelInstanceRegistrations.erase(it);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
renameChannelInstances();
|
||||
}
|
||||
|
||||
void DeviceSet::freeChannels()
|
||||
{
|
||||
|
|
|
@ -40,12 +40,6 @@ public:
|
|||
~DeviceSet();
|
||||
|
||||
int getNumberOfChannels() const { return m_channelInstanceRegistrations.size(); }
|
||||
void registerRxChannelInstance(const QString& channelName, ChannelAPI* channelAPI);
|
||||
void registerTxChannelInstance(const QString& channelName, ChannelAPI* channelAPI);
|
||||
void registerChannelInstance(const QString& channelName, ChannelAPI* channelAPI);
|
||||
void removeRxChannelInstance(ChannelAPI* channelAPI);
|
||||
void removeTxChannelInstance(ChannelAPI* channelAPI);
|
||||
void removeChannelInstance(ChannelAPI* channelAPI);
|
||||
void freeChannels();
|
||||
void deleteChannel(int channelIndex);
|
||||
void loadRxChannelSettings(const Preset* preset, PluginAPI *pluginAPI);
|
||||
|
|
Ładowanie…
Reference in New Issue