mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-17 05:41:56 -05:00
Channel API: new getURI method. Applied to common plugins
This commit is contained in:
parent
7d3adee2b0
commit
a93a93cec0
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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_
|
||||
#endif // SDRBASE_CHANNEL_CHANNELAPI_H_
|
||||
|
Loading…
Reference in New Issue
Block a user