1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 16:08:39 -05:00

DeviceSampleSink: removed output queue to GUI

This commit is contained in:
f4exb 2017-10-14 07:34:00 +02:00
parent ca674efb24
commit 0eab0fdb20
3 changed files with 4 additions and 6 deletions

View File

@ -99,7 +99,7 @@ bool FileSinkOutput::start()
qDebug("FileSinkOutput::start: started"); qDebug("FileSinkOutput::start: started");
MsgReportFileSinkGeneration *report = MsgReportFileSinkGeneration::create(true); // acquisition on MsgReportFileSinkGeneration *report = MsgReportFileSinkGeneration::create(true); // acquisition on
getOutputMessageQueueToGUI()->push(report); getMessageQueueToGUI()->push(report);
return true; return true;
} }
@ -121,7 +121,7 @@ void FileSinkOutput::stop()
} }
MsgReportFileSinkGeneration *report = MsgReportFileSinkGeneration::create(false); // acquisition off MsgReportFileSinkGeneration *report = MsgReportFileSinkGeneration::create(false); // acquisition off
getOutputMessageQueueToGUI()->push(report); getMessageQueueToGUI()->push(report);
} }
const QString& FileSinkOutput::getDeviceDescription() const const QString& FileSinkOutput::getDeviceDescription() const
@ -186,7 +186,7 @@ bool FileSinkOutput::handleMessage(const Message& message)
if (m_fileSinkThread != 0) if (m_fileSinkThread != 0)
{ {
report = MsgReportFileSinkStreamTiming::create(m_fileSinkThread->getSamplesCount()); report = MsgReportFileSinkStreamTiming::create(m_fileSinkThread->getSamplesCount());
getOutputMessageQueueToGUI()->push(report); getMessageQueueToGUI()->push(report);
} }
return true; return true;

View File

@ -152,7 +152,7 @@ bool SDRdaemonSinkOutput::handleMessage(const Message& message)
if (m_sdrDaemonSinkThread != 0) if (m_sdrDaemonSinkThread != 0)
{ {
report = MsgReportSDRdaemonSinkStreamTiming::create(m_sdrDaemonSinkThread->getSamplesCount()); report = MsgReportSDRdaemonSinkStreamTiming::create(m_sdrDaemonSinkThread->getSamplesCount());
getOutputMessageQueueToGUI()->push(report); getMessageQueueToGUI()->push(report);
} }
return true; return true;

View File

@ -44,7 +44,6 @@ public:
MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
void setMessageQueueToGUI(MessageQueue *queue) { m_guiMessageQueue = queue; } void setMessageQueueToGUI(MessageQueue *queue) { m_guiMessageQueue = queue; }
MessageQueue *getMessageQueueToGUI() { return m_guiMessageQueue; } MessageQueue *getMessageQueueToGUI() { return m_guiMessageQueue; }
MessageQueue *getOutputMessageQueueToGUI() { return &m_outputMessageQueueToGUI; } // TODO: remove
SampleSourceFifo* getSampleFifo() { return &m_sampleSourceFifo; } SampleSourceFifo* getSampleFifo() { return &m_sampleSourceFifo; }
protected slots: protected slots:
@ -54,7 +53,6 @@ protected:
SampleSourceFifo m_sampleSourceFifo; SampleSourceFifo m_sampleSourceFifo;
MessageQueue m_inputMessageQueue; //!< Input queue to the sink MessageQueue m_inputMessageQueue; //!< Input queue to the sink
MessageQueue *m_guiMessageQueue; //!< Input message queue to the GUI MessageQueue *m_guiMessageQueue; //!< Input message queue to the GUI
MessageQueue m_outputMessageQueueToGUI; //!< Output queue specialized for the sink GUI // TODO: remove
}; };
#endif /* SDRBASE_DSP_DEVICESAMPLESINK_H_ */ #endif /* SDRBASE_DSP_DEVICESAMPLESINK_H_ */