26 #include "ui_remotesourcegui.h" 55 (void) centerFrequency;
103 QString nominalNbBlocksText = QString(
"%1/%2")
106 ui->nominalNbBlocksText->setText(nominalNbBlocksText);
108 ui->queueLengthText->setText(queueLengthText);
110 ui->queueLengthGauge->setValue(queueLengthPercent);
125 uint32_t sampleCountDelta, sampleCount;
134 if (sampleCountDelta == 0) {
135 ui->allFramesDecoded->setStyleSheet(
"QToolButton { background-color : blue; }");
138 double remoteStreamRate = sampleCountDelta*1e6 / (double) (timestampUs -
m_lastTimestampUs);
140 if (remoteStreamRate != 0) {
141 ui->streamRateText->setText(QString(
"%1").
arg(remoteStreamRate, 0,
'f', 0));
174 setAttribute(Qt::WA_DeleteOnClose,
true);
176 connect(
this, SIGNAL(customContextMenuRequested(
const QPoint &)),
this, SLOT(
onMenuDialogCalled(
const QPoint &)));
316 int dataPort =
ui->dataPort->text().toInt(&dataOk);
318 if((!dataOk) || (dataPort < 1024) || (dataPort > 65535))
336 int udpDataPort =
ui->dataPort->text().toInt(&dataOk);
338 if((dataOk) && (udpDataPort >= 1024) && (udpDataPort < 65535))
359 ui->eventUnrecText->setText(nstr);
361 ui->eventRecText->setText(nstr);
367 if (unrecoverableCount == 0)
369 if (recoverableCount == 0) {
370 ui->allFramesDecoded->setStyleSheet(
"QToolButton { background-color : green; }");
372 ui->allFramesDecoded->setStyleSheet(
"QToolButton { background:rgb(79,79,79); }");
377 ui->allFramesDecoded->setStyleSheet(
"QToolButton { background-color : red; }");
383 int elapsedTimeMillis =
m_time.elapsed();
384 QTime recordLength(0, 0, 0, 0);
385 recordLength = recordLength.addSecs(elapsedTimeMillis/1000);
386 QString s_time = recordLength.toString(
"HH:mm:ss");
387 ui->eventCountsTimeText->setText(s_time);
void handleSourceMessages()
void removeTxChannelInstance(PluginInstanceGUI *pluginGUI)
uint32_t get_nbOriginalBlocks() const
const QString & getReverseAPIAddress() const
RemoteSourceGUI(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx, QWidget *parent=0)
void on_dataPort_returnPressed()
QByteArray serialize() const
void registerTxChannelInstance(const QString &channelName, PluginInstanceGUI *pluginGUI)
RemoteSource * m_remoteSrc
void push(Message *message, bool emitSignal=true)
Push message onto queue.
void enterEvent(QEvent *)
uint32_t m_countRecovered
void displayEventStatus(int recoverableCount, int unrecoverableCount)
bool deserialize(const QByteArray &data)
bool deserialize(const QByteArray &data)
virtual qint64 getCenterFrequency() const
void on_eventCountsReset_clicked(bool checked)
MessageQueue * getInputMessageQueue()
Get the queue for asynchronous inbound communication.
const QTimer & getMasterTimer() const
This is the DSPEngine master timer.
uint32_t get_tv_sec() const
void setReverseAPIChannelIndex(uint16_t channelIndex)
uint16_t getReverseAPIPort() const
QString m_reverseAPIAddress
void addChannelMarker(ChannelMarker *channelMarker)
Add channel marker to spectrum.
uint32_t m_lastCountRecovered
uint32_t get_readSamplesCount() const
ChannelMarker m_channelMarker
DeviceUISet * m_deviceUISet
void onWidgetRolled(QWidget *widget, bool rollDown)
uint16_t m_reverseAPIPort
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
void setName(const QString &name)
void setReverseAPIDeviceIndex(uint16_t deviceIndex)
uint16_t getReverseAPIDeviceIndex() const
void channelMarkerChangedByCursor()
void blockApplySettings(bool block)
void onMenuDialogCalled(const QPoint &p)
void setSourceOrSinkStream(bool sourceOrSinkStream)
uint16_t m_dataPort
Listening data port.
void setHighlighted(bool highlighted)
void addRollupWidget(QWidget *widget)
Add rollup widget to channel window.
virtual void setMessageQueueToGUI(MessageQueue *queue)
static RemoteSourceGUI * create(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx)
const QString & getTitle() const
bool useReverseAPI() const
static bool match(const Message *message)
uint32_t m_countUnrecoverable
uint32_t get_nbFECBlocks() const
QString m_dataAddress
Listening (local) data address.
void applySettings(bool force=false)
uint32_t m_lastSampleCount
void setChannelMarker(Serializable *channelMarker)
QByteArray serialize() const
int getSampleRate() const
uint32_t get_queueSize() const
void setReverseAPIAddress(const QString &address)
uint32_t get_queueLength() const
uint32_t get_tv_usec() const
static MsgQueryStreamData * create()
uint32_t get_sampleRate() const
RemoteSourceSettings m_settings
void setColor(const QColor &color)
uint32_t m_lastCountUnrecoverable
uint32_t get_nbCorrectableErrors() const
void leaveEvent(QEvent *)
uint32_t get_nbUncorrectableErrors() const
void setVisible(bool visible)
void setReverseAPIPort(uint16_t port)
virtual ~RemoteSourceGUI()
uint16_t getReverseAPIChannelIndex() const
void setBandwidth(int bandwidth)
const QColor & getColor() const
void on_dataApplyButton_clicked(bool checked)
void setTitle(const QString &title)
uint16_t m_reverseAPIDeviceIndex
static const QString m_channelIdURI
virtual bool handleMessage(const Message &message)
void setCenterFrequency(int centerFrequency)
virtual void setCenterFrequency(qint64 centerFrequency)
virtual MessageQueue * getInputMessageQueue()
void setUseReverseAPI(bool useReverseAPI)
uint16_t m_reverseAPIChannelIndex
uint64_t m_lastTimestampUs
void on_dataAddress_returnPressed()
void displayEventCounts()
unsigned __int64 uint64_t