Multi device support: removed useless handle message method in plugin manager

This commit is contained in:
f4exb 2016-05-16 18:16:00 +02:00
parent 9e77782da9
commit a9cda881d6
2 changed files with 27 additions and 27 deletions

View File

@ -221,32 +221,32 @@ void PluginManager::freeAll()
}
}
bool PluginManager::handleMessage(const Message& message)
{
if (m_sampleSourcePluginGUI != 0)
{
if ((message.getDestination() == 0) || (message.getDestination() == m_sampleSourcePluginGUI))
{
if (m_sampleSourcePluginGUI->handleMessage(message))
{
return true;
}
}
}
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;
}
//bool PluginManager::handleMessage(const Message& message)
//{
// if (m_sampleSourcePluginGUI != 0)
// {
// if ((message.getDestination() == 0) || (message.getDestination() == m_sampleSourcePluginGUI))
// {
// if (m_sampleSourcePluginGUI->handleMessage(message))
// {
// return true;
// }
// }
// }
//
// 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;
//}
void PluginManager::updateSampleSourceDevices()
{

View File

@ -54,7 +54,7 @@ public:
void freeAll();
bool handleMessage(const Message& message);
// bool handleMessage(const Message& message);
void updateSampleSourceDevices();
void fillSampleSourceSelector(QComboBox* comboBox);