2018-03-06 01:23:47 +00:00
|
|
|
#include "basebandsamplesink.h"
|
|
|
|
|
|
|
|
MESSAGE_CLASS_DEFINITION(BasebandSampleSink::MsgThreadedSink, Message)
|
2014-05-18 15:52:39 +00:00
|
|
|
|
2017-09-27 21:47:29 +00:00
|
|
|
BasebandSampleSink::BasebandSampleSink() :
|
|
|
|
m_guiMessageQueue(0)
|
2014-05-18 15:52:39 +00:00
|
|
|
{
|
2015-08-18 00:47:14 +00:00
|
|
|
connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()));
|
2014-05-18 15:52:39 +00:00
|
|
|
}
|
|
|
|
|
2016-10-02 20:29:04 +00:00
|
|
|
BasebandSampleSink::~BasebandSampleSink()
|
2014-05-18 15:52:39 +00:00
|
|
|
{
|
|
|
|
}
|
2015-08-17 06:29:34 +00:00
|
|
|
|
2016-10-02 20:29:04 +00:00
|
|
|
void BasebandSampleSink::handleInputMessages()
|
2015-08-17 06:29:34 +00:00
|
|
|
{
|
|
|
|
Message* message;
|
|
|
|
|
2015-08-30 21:22:18 +00:00
|
|
|
while ((message = m_inputMessageQueue.pop()) != 0)
|
2015-08-17 06:29:34 +00:00
|
|
|
{
|
|
|
|
if (handleMessage(*message))
|
|
|
|
{
|
|
|
|
delete message;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|