1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 22:14:45 -04:00

Save/restore rollup state in features

This commit is contained in:
Jon Beniston
2021-11-23 13:35:57 +00:00
parent a41d0319dc
commit f72f18debf
34 changed files with 87 additions and 0 deletions
@@ -57,6 +57,7 @@ QByteArray SimplePTTSettings::serialize() const
s.writeU32(9, m_reverseAPIPort);
s.writeU32(10, m_reverseAPIFeatureSetIndex);
s.writeU32(11, m_reverseAPIFeatureIndex);
s.writeBlob(12, m_rollupState);
return s.final();
}
@@ -97,6 +98,7 @@ bool SimplePTTSettings::deserialize(const QByteArray& data)
m_reverseAPIFeatureSetIndex = utmp > 99 ? 99 : utmp;
d.readU32(11, &utmp, 0);
m_reverseAPIFeatureIndex = utmp > 99 ? 99 : utmp;
d.readBlob(12, &m_rollupState);
return true;
}