SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
basebandsamplesink.cpp
Go to the documentation of this file.
1 #include "basebandsamplesink.h"
2 
4 
6  m_guiMessageQueue(0)
7 {
8  connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()));
9 }
10 
12 {
13 }
14 
16 {
17  Message* message;
18 
19  while ((message = m_inputMessageQueue.pop()) != 0)
20  {
21  if (handleMessage(*message))
22  {
23  delete message;
24  }
25  }
26 }
27 
Message * pop()
Pop message from queue.
MessageQueue m_inputMessageQueue
Queue for asynchronous inbound communication.
virtual bool handleMessage(const Message &cmd)=0
Processing of a message. Returns true if message has actually been processed.
#define MESSAGE_CLASS_DEFINITION(Name, BaseClass)
Definition: message.h:52