1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-15 12:51:49 -05:00

ChannelAPI: added counter blocking features feedback

This commit is contained in:
f4exb 2020-10-24 10:34:04 +02:00
parent 6ff2c603c2
commit c87ca8c143
2 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,7 @@
#include "channelapi.h" #include "channelapi.h"
ChannelAPI::ChannelAPI(const QString& name, StreamType streamType) : ChannelAPI::ChannelAPI(const QString& name, StreamType streamType) :
m_featuresSettingsFeedbackBlockCount(0),
m_streamType(streamType), m_streamType(streamType),
m_name(name), m_name(name),
m_indexInDeviceSet(-1), m_indexInDeviceSet(-1),

View File

@ -122,6 +122,7 @@ public:
// Features support // Features support
void addFeatureSettingsFeedback(Feature *feature); void addFeatureSettingsFeedback(Feature *feature);
void removeFeatureSettingsFeedback(Feature *feature); void removeFeatureSettingsFeedback(Feature *feature);
void setFeatureSettingsFeedbackBlockCount(unsigned int count) { m_featuresSettingsFeedbackBlockCount = count; }
// MIMO support // MIMO support
StreamType getStreamType() const { return m_streamType; } StreamType getStreamType() const { return m_streamType; }
@ -131,6 +132,7 @@ public:
protected: protected:
QList<Feature*> m_featuresSettingsFeedback; //!< list of features to report back settings changes in swagger API format QList<Feature*> m_featuresSettingsFeedback; //!< list of features to report back settings changes in swagger API format
unsigned int m_featuresSettingsFeedbackBlockCount; //!< actually send feedback if 0. Decremented at each potential feedback
private: private:
StreamType m_streamType; StreamType m_streamType;