1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 22:45:05 -04:00

Device plugins: make setMessageQueueToGUI pure virtual so that child classes must have to deal with this

This commit is contained in:
f4exb
2017-12-24 19:58:26 +01:00
parent b127182062
commit 1987bbac77
25 changed files with 54 additions and 72 deletions
+4 -7
View File
@@ -55,6 +55,9 @@ RTLSDRGui::RTLSDRGui(DeviceUISet *deviceUISet, QWidget* parent) :
displaySettings();
m_gains = m_sampleSource->getGains();
displayGains();
connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()), Qt::QueuedConnection);
}
@@ -133,13 +136,7 @@ bool RTLSDRGui::deserialize(const QByteArray& data)
bool RTLSDRGui::handleMessage(const Message& message)
{
if (RTLSDRInput::MsgReportRTLSDR::match(message))
{
m_gains = ((RTLSDRInput::MsgReportRTLSDR&) message).getGains();
displayGains();
return true;
}
else if (RTLSDRInput::MsgConfigureRTLSDR::match(message))
if (RTLSDRInput::MsgConfigureRTLSDR::match(message))
{
const RTLSDRInput::MsgConfigureRTLSDR& cfg = (RTLSDRInput::MsgConfigureRTLSDR&) message;
m_settings = cfg.getSettings();