mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
Removed obsolete fields of Preferences class
This commit is contained in:
parent
fbdb72ceb4
commit
9588d53327
@ -8,7 +8,6 @@ Preferences::Preferences()
|
||||
|
||||
void Preferences::resetToDefaults()
|
||||
{
|
||||
m_sourceType.clear();
|
||||
m_sourceDevice.clear();
|
||||
m_audioType.clear();
|
||||
m_audioDevice.clear();
|
||||
@ -24,7 +23,6 @@ void Preferences::resetToDefaults()
|
||||
QByteArray Preferences::serialize() const
|
||||
{
|
||||
SimpleSerializer s(1);
|
||||
s.writeString(1, m_sourceType);
|
||||
s.writeString(2, m_sourceDevice);
|
||||
s.writeString(3, m_audioType);
|
||||
s.writeString(4, m_audioDevice);
|
||||
@ -51,7 +49,6 @@ bool Preferences::deserialize(const QByteArray& data)
|
||||
|
||||
if(d.getVersion() == 1)
|
||||
{
|
||||
d.readString(1, &m_sourceType);
|
||||
d.readString(2, &m_sourceDevice);
|
||||
d.readString(3, &m_audioType);
|
||||
d.readString(4, &m_audioDevice);
|
||||
|
@ -13,8 +13,6 @@ public:
|
||||
QByteArray serialize() const;
|
||||
bool deserialize(const QByteArray& data);
|
||||
|
||||
void setSourceType(const QString& value) { m_sourceType = value; }
|
||||
const QString& getSourceType() const { return m_sourceType; }
|
||||
void setSourceDevice(const QString& value) { m_sourceDevice= value; }
|
||||
const QString& getSourceDevice() const { return m_sourceDevice; }
|
||||
void setSourceIndex(const int value) { m_sourceIndex = value; }
|
||||
@ -40,9 +38,8 @@ public:
|
||||
const QString& getLogFileName() const { return m_logFileName; }
|
||||
|
||||
protected:
|
||||
QString m_sourceType;
|
||||
QString m_sourceDevice;
|
||||
int m_sourceIndex;
|
||||
QString m_sourceDevice; //!< Identification of the source used in R0 tab (GUI flavor) at startup
|
||||
int m_sourceIndex; //!< Index of the source used in R0 tab (GUI flavor) at startup
|
||||
|
||||
QString m_audioType;
|
||||
QString m_audioDevice;
|
||||
|
@ -1,16 +1,16 @@
|
||||
Preferences:
|
||||
description: Repreents a Prefernce object
|
||||
properties:
|
||||
sourceType:
|
||||
type: string
|
||||
sourceDevice:
|
||||
description: Identification of the source used in R0 tab (GUI flavor) at startup
|
||||
type: string
|
||||
sourceIndex:
|
||||
description: Index of the source used in R0 tab (GUI flavor) at startup
|
||||
type: integer
|
||||
audioType:
|
||||
type: string
|
||||
audioDevice:
|
||||
type: string
|
||||
sourceIndex:
|
||||
type: integer
|
||||
latitude:
|
||||
type: number
|
||||
format: float
|
||||
|
Loading…
Reference in New Issue
Block a user