mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-24 11:04:10 -04:00
Massive UI revamping (v7): devices basic
This commit is contained in:
@@ -29,6 +29,7 @@ void LocalOutputSettings::resetToDefaults()
|
||||
m_reverseAPIAddress = "127.0.0.1";
|
||||
m_reverseAPIPort = 8888;
|
||||
m_reverseAPIDeviceIndex = 0;
|
||||
m_workspaceIndex = 0;
|
||||
}
|
||||
|
||||
QByteArray LocalOutputSettings::serialize() const
|
||||
@@ -38,6 +39,8 @@ QByteArray LocalOutputSettings::serialize() const
|
||||
s.writeString(4, m_reverseAPIAddress);
|
||||
s.writeU32(5, m_reverseAPIPort);
|
||||
s.writeU32(6, m_reverseAPIDeviceIndex);
|
||||
s.writeS32(7, m_workspaceIndex);
|
||||
s.writeBlob(8, m_geometryBytes);
|
||||
|
||||
return s.final();
|
||||
}
|
||||
@@ -67,6 +70,9 @@ bool LocalOutputSettings::deserialize(const QByteArray& data)
|
||||
|
||||
d.readU32(6, &uintval, 0);
|
||||
m_reverseAPIDeviceIndex = uintval > 99 ? 99 : uintval;
|
||||
d.readS32(7, &m_workspaceIndex, 0);
|
||||
d.readBlob(8, &m_geometryBytes);
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user