mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
Multi device support: use device API for channel registrations
This commit is contained in:
@@ -59,22 +59,22 @@ void PluginManager::registerChannel(const QString& channelName, PluginInterface*
|
||||
m_channelRegistrations.append(PluginAPI::ChannelRegistration(channelName, plugin));
|
||||
}
|
||||
|
||||
void PluginManager::registerChannelInstance(const QString& channelName, PluginGUI* pluginGUI)
|
||||
{
|
||||
m_channelInstanceRegistrations.append(ChannelInstanceRegistration(channelName, pluginGUI));
|
||||
renameChannelInstances();
|
||||
}
|
||||
|
||||
void PluginManager::removeChannelInstance(PluginGUI* pluginGUI)
|
||||
{
|
||||
for(ChannelInstanceRegistrations::iterator it = m_channelInstanceRegistrations.begin(); it != m_channelInstanceRegistrations.end(); ++it) {
|
||||
if(it->m_gui == pluginGUI) {
|
||||
m_channelInstanceRegistrations.erase(it);
|
||||
break;
|
||||
}
|
||||
}
|
||||
renameChannelInstances();
|
||||
}
|
||||
//void PluginManager::registerChannelInstance(const QString& channelName, PluginGUI* pluginGUI)
|
||||
//{
|
||||
// m_channelInstanceRegistrations.append(ChannelInstanceRegistration(channelName, pluginGUI));
|
||||
// renameChannelInstances();
|
||||
//}
|
||||
//
|
||||
//void PluginManager::removeChannelInstance(PluginGUI* pluginGUI)
|
||||
//{
|
||||
// for(ChannelInstanceRegistrations::iterator it = m_channelInstanceRegistrations.begin(); it != m_channelInstanceRegistrations.end(); ++it) {
|
||||
// if(it->m_gui == pluginGUI) {
|
||||
// m_channelInstanceRegistrations.erase(it);
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// renameChannelInstances();
|
||||
//}
|
||||
|
||||
void PluginManager::registerSampleSource(const QString& sourceName, PluginInterface* plugin)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user