Tx refactoring: added some missing method bodies

pull/442/head
f4exb 2019-11-15 02:20:03 +01:00
rodzic dd7dfae066
commit 34965d3935
4 zmienionych plików z 28 dodań i 1 usunięć

Wyświetl plik

@ -500,4 +500,9 @@ void FileSource::getMagSqLevels(double& avg, double& peak, int& nbSamples) const
void FileSource::propagateMessageQueueToGUI()
{
m_basebandSource->setMessageQueueToGUI(getMessageQueueToGUI());
}
double FileSource::getMagSq() const
{
return m_basebandSource->getMagSq();
}

Wyświetl plik

@ -560,4 +560,23 @@ void UDPSource::networkManagerFinished(QNetworkReply *reply)
void UDPSource::setLevelMeter(QObject *levelMeter)
{
connect(m_basebandSource, SIGNAL(levelChanged(qreal, qreal, int)), levelMeter, SLOT(levelChanged(qreal, qreal, int)));
}
double UDPSource::getMagSq() const
{
return m_basebandSource->getMagSq();
}
double UDPSource::getInMagSq() const
{
return m_basebandSource->getInMagSq();
}
int32_t UDPSource::getBufferGauge() const
{
return m_basebandSource->getBufferGauge();
}
bool UDPSource::getSquelchOpen() const
{
return m_basebandSource->getSquelchOpen();
}

Wyświetl plik

@ -144,7 +144,7 @@ public:
double getMagSq() const;
double getInMagSq() const;
int32_t getBufferGauge() const;
bool getSquelchOpen();
bool getSquelchOpen() const;
void setSpectrumSink(BasebandSampleSink* spectrum);
void setSpectrum(bool enabled);
void resetReadIndex();

Wyświetl plik

@ -122,6 +122,9 @@ public:
void pull(const SampleVector::iterator& begin, unsigned int nbSamples);
MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } //!< Get the queue for asynchronous inbound communication
double getMagSq() const { return m_source.getMagSq(); }
double getInMagSq() const { return m_source.getInMagSq(); }
int32_t getBufferGauge() const { return m_source.getBufferGauge(); }
bool getSquelchOpen() const { return m_source.getSquelchOpen(); }
int getChannelSampleRate() const;
bool isSquelchOpen() const;
void setSpectrumSink(BasebandSampleSink *spectrumSink) { m_source.setSpectrumSink(spectrumSink); }