1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

Deep redesign: phase #4. Compiles

This commit is contained in:
f4exb
2015-08-17 08:29:34 +02:00
parent b5f2475fbf
commit a6a7145f3d
77 changed files with 1816 additions and 1429 deletions
+16 -7
View File
@@ -177,21 +177,30 @@ void PluginManager::freeAll()
}
}
bool PluginManager::handleMessage(Message* message)
bool PluginManager::handleMessage(const Message& message)
{
if(m_sampleSourceInstance != NULL) {
if((message->getDestination() == NULL) || (message->getDestination() == m_sampleSourceInstance)) {
if(m_sampleSourceInstance->handleMessage(message))
if (m_sampleSourceInstance != 0)
{
if ((message.getDestination() == 0) || (message.getDestination() == m_sampleSourceInstance))
{
if (m_sampleSourceInstance->handleMessage(message))
{
return true;
}
}
}
for(ChannelInstanceRegistrations::iterator it = m_channelInstanceRegistrations.begin(); it != m_channelInstanceRegistrations.end(); ++it) {
if((message->getDestination() == NULL) || (message->getDestination() == it->m_gui)) {
if(it->m_gui->handleMessage(message))
for (ChannelInstanceRegistrations::iterator it = m_channelInstanceRegistrations.begin(); it != m_channelInstanceRegistrations.end(); ++it)
{
if ((message.getDestination() == 0) || (message.getDestination() == it->m_gui))
{
if (it->m_gui->handleMessage(message))
{
return true;
}
}
}
return false;
}