diff --git a/plugins/channelrx/chanalyzer/chanalyzer.h b/plugins/channelrx/chanalyzer/chanalyzer.h index cc3edfffd..03a5ba572 100644 --- a/plugins/channelrx/chanalyzer/chanalyzer.h +++ b/plugins/channelrx/chanalyzer/chanalyzer.h @@ -76,7 +76,8 @@ public: virtual void stop(); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = objectName(); } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channelrx/demodam/amdemod.h b/plugins/channelrx/demodam/amdemod.h index 4063f7c6c..f3835b633 100644 --- a/plugins/channelrx/demodam/amdemod.h +++ b/plugins/channelrx/demodam/amdemod.h @@ -70,7 +70,8 @@ public: virtual void stop(); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channelrx/demodatv/atvdemod.h b/plugins/channelrx/demodatv/atvdemod.h index 97827c24e..aee2727a1 100644 --- a/plugins/channelrx/demodatv/atvdemod.h +++ b/plugins/channelrx/demodatv/atvdemod.h @@ -69,7 +69,8 @@ public: virtual void stop(); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = objectName(); } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channelrx/demodbfm/bfmdemod.h b/plugins/channelrx/demodbfm/bfmdemod.h index b808b529c..7764226da 100644 --- a/plugins/channelrx/demodbfm/bfmdemod.h +++ b/plugins/channelrx/demodbfm/bfmdemod.h @@ -78,7 +78,8 @@ public: virtual void stop(); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channelrx/demoddatv/datvdemod.h b/plugins/channelrx/demoddatv/datvdemod.h index dd0098549..4a198866d 100644 --- a/plugins/channelrx/demoddatv/datvdemod.h +++ b/plugins/channelrx/demoddatv/datvdemod.h @@ -41,7 +41,8 @@ public: ~DATVDemod(); virtual void destroy() { delete this; } - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = objectName(); } virtual qint64 getCenterFrequency() const { return m_settings.m_centerFrequency; } diff --git a/plugins/channelrx/demoddsd/dsddemod.h b/plugins/channelrx/demoddsd/dsddemod.h index e30013f02..aa12a87c2 100644 --- a/plugins/channelrx/demoddsd/dsddemod.h +++ b/plugins/channelrx/demoddsd/dsddemod.h @@ -71,7 +71,8 @@ public: virtual void stop(); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channelrx/demodfreedv/freedvdemod.h b/plugins/channelrx/demodfreedv/freedvdemod.h index eb0390db3..532da4b2a 100644 --- a/plugins/channelrx/demodfreedv/freedvdemod.h +++ b/plugins/channelrx/demodfreedv/freedvdemod.h @@ -84,7 +84,8 @@ public: virtual void stop(); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channelrx/demodnfm/nfmdemod.h b/plugins/channelrx/demodnfm/nfmdemod.h index d07befc4b..73334ce29 100644 --- a/plugins/channelrx/demodnfm/nfmdemod.h +++ b/plugins/channelrx/demodnfm/nfmdemod.h @@ -70,7 +70,8 @@ public: virtual void stop(); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channelrx/demodssb/ssbdemod.h b/plugins/channelrx/demodssb/ssbdemod.h index c82516d12..05df4728b 100644 --- a/plugins/channelrx/demodssb/ssbdemod.h +++ b/plugins/channelrx/demodssb/ssbdemod.h @@ -73,7 +73,8 @@ public: virtual void stop(); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channelrx/demodwfm/wfmdemod.h b/plugins/channelrx/demodwfm/wfmdemod.h index 1c1c2f20c..b0ba2f628 100644 --- a/plugins/channelrx/demodwfm/wfmdemod.h +++ b/plugins/channelrx/demodwfm/wfmdemod.h @@ -69,7 +69,8 @@ public: virtual void stop(); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channelrx/filesink/filesink.h b/plugins/channelrx/filesink/filesink.h index 0f14044ee..238742616 100644 --- a/plugins/channelrx/filesink/filesink.h +++ b/plugins/channelrx/filesink/filesink.h @@ -71,7 +71,8 @@ public: virtual void stop(); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = "File Sink"; } virtual qint64 getCenterFrequency() const { return m_frequencyOffset; } diff --git a/plugins/channelrx/freqtracker/freqtracker.h b/plugins/channelrx/freqtracker/freqtracker.h index 0d96e4d0a..1cbd657aa 100644 --- a/plugins/channelrx/freqtracker/freqtracker.h +++ b/plugins/channelrx/freqtracker/freqtracker.h @@ -68,7 +68,8 @@ public: virtual void stop(); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channelrx/localsink/localsink.h b/plugins/channelrx/localsink/localsink.h index b75c44e7a..7da9107c0 100644 --- a/plugins/channelrx/localsink/localsink.h +++ b/plugins/channelrx/localsink/localsink.h @@ -91,7 +91,8 @@ public: virtual void stop(); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = "Local Sink"; } virtual qint64 getCenterFrequency() const { return m_frequencyOffset; } diff --git a/plugins/channelrx/remotesink/remotesink.h b/plugins/channelrx/remotesink/remotesink.h index cf56dd346..61a02f8b6 100644 --- a/plugins/channelrx/remotesink/remotesink.h +++ b/plugins/channelrx/remotesink/remotesink.h @@ -70,7 +70,8 @@ public: virtual void stop(); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = "Remote Sink"; } virtual qint64 getCenterFrequency() const { return m_frequencyOffset; } diff --git a/plugins/channelrx/udpsink/udpsink.h b/plugins/channelrx/udpsink/udpsink.h index 1c9cac3f4..b98f16c75 100644 --- a/plugins/channelrx/udpsink/udpsink.h +++ b/plugins/channelrx/udpsink/udpsink.h @@ -77,7 +77,8 @@ public: virtual void stop(); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channeltx/filesource/filesource.h b/plugins/channeltx/filesource/filesource.h index 09804499f..950c9c303 100644 --- a/plugins/channeltx/filesource/filesource.h +++ b/plugins/channeltx/filesource/filesource.h @@ -174,7 +174,8 @@ public: virtual void pull(SampleVector::iterator& begin, unsigned int nbSamples); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return 0; } diff --git a/plugins/channeltx/localsource/localsource.h b/plugins/channeltx/localsource/localsource.h index 7d3098a75..38cafc5e1 100644 --- a/plugins/channeltx/localsource/localsource.h +++ b/plugins/channeltx/localsource/localsource.h @@ -89,7 +89,8 @@ public: virtual void pull(SampleVector::iterator& begin, unsigned int nbSamples); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = "Local Sink"; } virtual qint64 getCenterFrequency() const { return m_frequencyOffset; } diff --git a/plugins/channeltx/modam/ammod.h b/plugins/channeltx/modam/ammod.h index 2e5a62bd3..9044cad14 100644 --- a/plugins/channeltx/modam/ammod.h +++ b/plugins/channeltx/modam/ammod.h @@ -181,7 +181,8 @@ public: virtual void pull(SampleVector::iterator& begin, unsigned int nbSamples); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channeltx/modatv/atvmod.h b/plugins/channeltx/modatv/atvmod.h index b47847b20..bb2e2a91a 100644 --- a/plugins/channeltx/modatv/atvmod.h +++ b/plugins/channeltx/modatv/atvmod.h @@ -253,7 +253,8 @@ public: virtual void pull(SampleVector::iterator& begin, unsigned int nbSamples); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channeltx/modfreedv/freedvmod.h b/plugins/channeltx/modfreedv/freedvmod.h index c690329dd..73b42719a 100644 --- a/plugins/channeltx/modfreedv/freedvmod.h +++ b/plugins/channeltx/modfreedv/freedvmod.h @@ -185,7 +185,8 @@ public: virtual void pull(SampleVector::iterator& begin, unsigned int nbSamples); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channeltx/modnfm/nfmmod.h b/plugins/channeltx/modnfm/nfmmod.h index 6fac80972..5d779ffe2 100644 --- a/plugins/channeltx/modnfm/nfmmod.h +++ b/plugins/channeltx/modnfm/nfmmod.h @@ -181,7 +181,8 @@ public: virtual void pull(SampleVector::iterator& begin, unsigned int nbSamples); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channeltx/modpacket/packetmod.h b/plugins/channeltx/modpacket/packetmod.h index 12b15ca0d..cc06f7cb3 100644 --- a/plugins/channeltx/modpacket/packetmod.h +++ b/plugins/channeltx/modpacket/packetmod.h @@ -102,7 +102,8 @@ public: virtual void pull(SampleVector::iterator& begin, unsigned int nbSamples); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channeltx/modssb/ssbmod.h b/plugins/channeltx/modssb/ssbmod.h index a8c1c3ce8..4f599ca40 100644 --- a/plugins/channeltx/modssb/ssbmod.h +++ b/plugins/channeltx/modssb/ssbmod.h @@ -183,7 +183,8 @@ public: virtual void pull(SampleVector::iterator& begin, unsigned int nbSamples); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channeltx/modwfm/wfmmod.h b/plugins/channeltx/modwfm/wfmmod.h index a7c85f718..a7af51929 100644 --- a/plugins/channeltx/modwfm/wfmmod.h +++ b/plugins/channeltx/modwfm/wfmmod.h @@ -181,7 +181,8 @@ public: virtual void pull(SampleVector::iterator& begin, unsigned int nbSamples); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/plugins/channeltx/remotesource/remotesource.h b/plugins/channeltx/remotesource/remotesource.h index adc902d52..4dbda4cee 100644 --- a/plugins/channeltx/remotesource/remotesource.h +++ b/plugins/channeltx/remotesource/remotesource.h @@ -164,7 +164,8 @@ public: virtual void pull(SampleVector::iterator& begin, unsigned int nbSamples); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return 0; } diff --git a/plugins/channeltx/udpsource/udpsource.h b/plugins/channeltx/udpsource/udpsource.h index 40d85926e..72db40759 100644 --- a/plugins/channeltx/udpsource/udpsource.h +++ b/plugins/channeltx/udpsource/udpsource.h @@ -102,7 +102,8 @@ public: virtual void pull(SampleVector::iterator& begin, unsigned int nbSamples); virtual bool handleMessage(const Message& cmd); - virtual void getIdentifier(QString& id) { id = objectName(); } + virtual void getIdentifier(QString& id) { id = m_channelId; } + virtual const QString& getURI() const { return m_channelIdURI; } virtual void getTitle(QString& title) { title = m_settings.m_title; } virtual qint64 getCenterFrequency() const { return m_settings.m_inputFrequencyOffset; } diff --git a/sdrbase/channel/channelapi.h b/sdrbase/channel/channelapi.h index c47b98228..c474609de 100644 --- a/sdrbase/channel/channelapi.h +++ b/sdrbase/channel/channelapi.h @@ -49,6 +49,7 @@ public: virtual void destroy() = 0; virtual void getIdentifier(QString& id) = 0; + virtual const QString& getURI() const = 0; virtual void getTitle(QString& title) = 0; virtual void setName(const QString& name) { m_name = name; } virtual const QString& getName() const { return m_name; } @@ -136,4 +137,4 @@ private: }; -#endif // SDRBASE_CHANNEL_CHANNELAPI_H_ \ No newline at end of file +#endif // SDRBASE_CHANNEL_CHANNELAPI_H_