SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
Preset Class Reference

#include <preset.h>

Classes

struct  ChannelConfig
 
struct  DeviceConfig
 

Public Types

typedef QList< ChannelConfigChannelConfigs
 
typedef QList< DeviceConfigDeviceeConfigs
 

Public Member Functions

 Preset ()
 
void resetToDefaults ()
 
void setSourcePreset (bool isSourcePreset)
 
bool isSourcePreset () const
 
QByteArray serialize () const
 
bool deserialize (const QByteArray &data)
 
void setGroup (const QString &group)
 
const QString & getGroup () const
 
void setDescription (const QString &description)
 
const QString & getDescription () const
 
void setCenterFrequency (const quint64 centerFrequency)
 
quint64 getCenterFrequency () const
 
void setSpectrumConfig (const QByteArray &data)
 
const QByteArray & getSpectrumConfig () const
 
void setLayout (const QByteArray &data)
 
const QByteArray & getLayout () const
 
void clearChannels ()
 
void addChannel (const QString &channel, const QByteArray &config)
 
int getChannelCount () const
 
const ChannelConfiggetChannelConfig (int index) const
 
void setDeviceConfig (const QString &deviceId, const QString &deviceSerial, int deviceSequence, const QByteArray &config)
 
void addOrUpdateDeviceConfig (const QString &deviceId, const QString &deviceSerial, int deviceSequence, const QByteArray &config)
 
const QByteArray * findBestDeviceConfig (const QString &deviceId, const QString &deviceSerial, int deviceSequence) const
 

Static Public Member Functions

static bool presetCompare (const Preset *p1, Preset *p2)
 

Protected Attributes

bool m_sourcePreset
 
QString m_group
 
QString m_description
 
quint64 m_centerFrequency
 
QByteArray m_spectrumConfig
 
bool m_dcOffsetCorrection
 
bool m_iqImbalanceCorrection
 
ChannelConfigs m_channelConfigs
 
DeviceeConfigs m_deviceConfigs
 
QByteArray m_layout
 

Private Member Functions

const QByteArray * findBestDeviceConfigSoapy (const QString &sourceId, const QString &deviceSerial) const
 

Friends

class WebAPIAdapterBase
 

Detailed Description

Definition at line 28 of file preset.h.

Member Typedef Documentation

◆ ChannelConfigs

Definition at line 40 of file preset.h.

◆ DeviceeConfigs

Definition at line 59 of file preset.h.

Constructor & Destructor Documentation

◆ Preset()

Preset::Preset ( )

Definition at line 25 of file preset.cpp.

References resetToDefaults().

26 {
28 }
void resetToDefaults()
Definition: preset.cpp:30
+ Here is the call graph for this function:

Member Function Documentation

◆ addChannel()

void Preset::addChannel ( const QString &  channel,
const QByteArray &  config 
)
inline

Definition at line 85 of file preset.h.

Referenced by DeviceSet::saveRxChannelSettings(), DeviceUISet::saveRxChannelSettings(), DeviceSet::saveTxChannelSettings(), and DeviceUISet::saveTxChannelSettings().

85 { m_channelConfigs.append(ChannelConfig(channel, config)); }
ChannelConfigs m_channelConfigs
Definition: preset.h:137
+ Here is the caller graph for this function:

◆ addOrUpdateDeviceConfig()

void Preset::addOrUpdateDeviceConfig ( const QString &  deviceId,
const QString &  deviceSerial,
int  deviceSequence,
const QByteArray &  config 
)

Definition at line 177 of file preset.cpp.

References m_deviceConfigs.

Referenced by DeviceAPI::saveSamplingDeviceSettings().

181 {
182  DeviceeConfigs::iterator it = m_deviceConfigs.begin();
183 
184  for (; it != m_deviceConfigs.end(); ++it)
185  {
186  if (it->m_deviceId == sourceId)
187  {
188  if (sourceSerial.isNull() || sourceSerial.isEmpty())
189  {
190  if (it->m_deviceSequence == sourceSequence)
191  {
192  break;
193  }
194  }
195  else
196  {
197  if (it->m_deviceSerial == sourceSerial)
198  {
199  break;
200  }
201  }
202  }
203  }
204 
205  if (it == m_deviceConfigs.end())
206  {
207  m_deviceConfigs.append(DeviceConfig(sourceId, sourceSerial, sourceSequence, config));
208  }
209  else
210  {
211  it->m_config = config;
212  }
213 }
DeviceeConfigs m_deviceConfigs
Definition: preset.h:140
+ Here is the caller graph for this function:

◆ clearChannels()

void Preset::clearChannels ( )
inline

Definition at line 84 of file preset.h.

Referenced by MainCore::savePresetSettings(), and MainWindow::savePresetSettings().

84 { m_channelConfigs.clear(); }
ChannelConfigs m_channelConfigs
Definition: preset.h:137
+ Here is the caller graph for this function:

◆ deserialize()

bool Preset::deserialize ( const QByteArray &  data)

Definition at line 94 of file preset.cpp.

References SimpleDeserializer::getVersion(), i, SimpleDeserializer::isValid(), m_centerFrequency, m_channelConfigs, m_description, m_deviceConfigs, m_group, m_layout, m_sourcePreset, m_spectrumConfig, SimpleDeserializer::readBlob(), SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU64(), and resetToDefaults().

Referenced by WebAPIAdapterSrv::instancePresetFilePut(), MainSettings::load(), and MainWindow::on_presetImport_clicked().

95 {
96  SimpleDeserializer d(data);
97 
98  if (!d.isValid())
99  {
100  resetToDefaults();
101  return false;
102  }
103 
104  if (d.getVersion() == 1)
105  {
106  d.readString(1, &m_group, "default");
107  d.readString(2, &m_description, "no name");
108  d.readU64(3, &m_centerFrequency, 0);
109  d.readBlob(4, &m_layout);
110  d.readBlob(5, &m_spectrumConfig);
111  d.readBool(6, &m_sourcePreset, true);
112 
113 // qDebug("Preset::deserialize: m_group: %s mode: %s m_description: %s m_centerFrequency: %llu",
114 // qPrintable(m_group),
115 // m_sourcePreset ? "Rx" : "Tx",
116 // qPrintable(m_description),
117 // m_centerFrequency);
118 
119  qint32 sourcesCount = 0;
120  d.readS32(20, &sourcesCount, 0);
121 
122  if (sourcesCount >= (200-23)/4) // limit was hit!
123  {
124  sourcesCount = ((200-23)/4) - 1;
125  }
126 
127  m_deviceConfigs.clear();
128 
129  for (int i = 0; i < sourcesCount; i++)
130  {
131  QString sourceId, sourceSerial;
132  int sourceSequence;
133  QByteArray sourceConfig;
134 
135  d.readString(24 + i*4, &sourceId, "");
136  d.readString(25 + i*4, &sourceSerial, "");
137  d.readS32(26 + i*4, &sourceSequence, 0);
138  d.readBlob(27 + i*4, &sourceConfig);
139 
140  if (!sourceId.isEmpty())
141  {
142 // qDebug("Preset::deserialize: source: id: %s, ser: %s, seq: %d",
143 // qPrintable(sourceId),
144 // qPrintable(sourceSerial),
145 // sourceSequence);
146 
147  m_deviceConfigs.append(DeviceConfig(sourceId, sourceSerial, sourceSequence, sourceConfig));
148  }
149  }
150 
151  qint32 channelCount;
152  d.readS32(200, &channelCount, 0);
153 
154  m_channelConfigs.clear();
155 
156  for (int i = 0; i < channelCount; i++)
157  {
158  QString channel;
159  QByteArray config;
160 
161  d.readString(201 + i * 2, &channel, "unknown-channel");
162  d.readBlob(202 + i * 2, &config);
163 
164 // qDebug("Preset::deserialize: channel: id: %s", qPrintable(channel));
165  m_channelConfigs.append(ChannelConfig(channel, config));
166  }
167 
168  return true;
169  }
170  else
171  {
172  resetToDefaults();
173  return false;
174  }
175 }
void resetToDefaults()
Definition: preset.cpp:30
quint64 m_centerFrequency
Definition: preset.h:127
QByteArray m_spectrumConfig
Definition: preset.h:130
bool m_sourcePreset
Definition: preset.h:122
DeviceeConfigs m_deviceConfigs
Definition: preset.h:140
int32_t i
Definition: decimators.h:244
QString m_group
Definition: preset.h:125
QByteArray m_layout
Definition: preset.h:143
QString m_description
Definition: preset.h:126
ChannelConfigs m_channelConfigs
Definition: preset.h:137
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findBestDeviceConfig()

const QByteArray * Preset::findBestDeviceConfig ( const QString &  deviceId,
const QString &  deviceSerial,
int  deviceSequence 
) const

Definition at line 215 of file preset.cpp.

References findBestDeviceConfigSoapy(), and m_deviceConfigs.

Referenced by DeviceAPI::loadSamplingDeviceSettings().

218 {
219  // Special case for SoapySDR based on serial (driver name)
220  if (sourceId == "sdrangel.samplesource.soapysdrinput") {
221  return findBestDeviceConfigSoapy(sourceId, sourceSerial);
222  } else if (sourceId == "sdrangel.samplesource.soapysdroutput") {
223  return findBestDeviceConfigSoapy(sourceId, sourceSerial);
224  }
225 
226  DeviceeConfigs::const_iterator it = m_deviceConfigs.begin();
227  DeviceeConfigs::const_iterator itFirstOfKind = m_deviceConfigs.end();
228  DeviceeConfigs::const_iterator itMatchSequence = m_deviceConfigs.end();
229 
230  for (; it != m_deviceConfigs.end(); ++it)
231  {
232  if (it->m_deviceId == sourceId)
233  {
234  if (itFirstOfKind == m_deviceConfigs.end())
235  {
236  itFirstOfKind = it;
237  }
238 
239  if (sourceSerial.isNull() || sourceSerial.isEmpty())
240  {
241  if (it->m_deviceSequence == sourceSequence)
242  {
243  break;
244  }
245  }
246  else
247  {
248  if (it->m_deviceSerial == sourceSerial)
249  {
250  break;
251  }
252  else if(it->m_deviceSequence == sourceSequence)
253  {
254  itMatchSequence = it;
255  }
256  }
257  }
258  }
259 
260  if (it == m_deviceConfigs.end()) // no exact match
261  {
262  if (itMatchSequence != m_deviceConfigs.end()) // match sequence ?
263  {
264  qDebug("Preset::findBestSourceConfig: sequence matched: id: %s ser: %s seq: %d",
265  qPrintable(itMatchSequence->m_deviceId), qPrintable(itMatchSequence->m_deviceSerial), itMatchSequence->m_deviceSequence);
266  return &(itMatchSequence->m_config);
267  }
268  else if (itFirstOfKind != m_deviceConfigs.end()) // match source type ?
269  {
270  qDebug("Preset::findBestSourceConfig: first of kind matched: id: %s ser: %s seq: %d",
271  qPrintable(itFirstOfKind->m_deviceId), qPrintable(itFirstOfKind->m_deviceSerial), itFirstOfKind->m_deviceSequence);
272  return &(itFirstOfKind->m_config);
273  }
274  else // definitely not found !
275  {
276  qDebug("Preset::findBestSourceConfig: no match");
277  return 0;
278  }
279  }
280  else // exact match
281  {
282  qDebug("Preset::findBestSourceConfig: serial matched (exact): id: %s ser: %s",
283  qPrintable(it->m_deviceId), qPrintable(it->m_deviceSerial));
284  return &(it->m_config);
285  }
286 }
DeviceeConfigs m_deviceConfigs
Definition: preset.h:140
const QByteArray * findBestDeviceConfigSoapy(const QString &sourceId, const QString &deviceSerial) const
Definition: preset.cpp:288
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findBestDeviceConfigSoapy()

const QByteArray * Preset::findBestDeviceConfigSoapy ( const QString &  sourceId,
const QString &  deviceSerial 
) const
private

Definition at line 288 of file preset.cpp.

References m_deviceConfigs.

Referenced by findBestDeviceConfig().

289 {
290  QStringList sourceSerialPieces = sourceSerial.split("-");
291 
292  if (sourceSerialPieces.size() == 0) {
293  return 0; // unable to process
294  }
295 
296  DeviceeConfigs::const_iterator it = m_deviceConfigs.begin();
297  DeviceeConfigs::const_iterator itFirstOfKind = m_deviceConfigs.end();
298 
299  for (; it != m_deviceConfigs.end(); ++it)
300  {
301  if (it->m_deviceId != sourceId) // skip non matching device
302  {
303  continue;
304  }
305  else if (it->m_deviceSerial == sourceSerial) // exact match
306  {
307  break;
308  }
309  else // try to find best match on driver id (first part of serial)
310  {
311  QStringList serialPieces = it->m_deviceSerial.split("-");
312 
313  if (serialPieces.size() == 0)
314  {
315  continue;
316  }
317  else if (sourceSerialPieces[0] == serialPieces[0])
318  {
319  if (itFirstOfKind == m_deviceConfigs.end())
320  {
321  itFirstOfKind = it;
322  break;
323  }
324  }
325  }
326  }
327 
328  if (it == m_deviceConfigs.end()) // no exact match
329  {
330  if (itFirstOfKind == m_deviceConfigs.end())
331  {
332  qDebug("Preset::findBestDeviceConfigSoapy: no match");
333  return 0;
334  }
335  else
336  {
337  qDebug("Preset::findBestSourceConfig: first of kind matched: id: %s ser: %s seq: %d",
338  qPrintable(itFirstOfKind->m_deviceId), qPrintable(itFirstOfKind->m_deviceSerial), itFirstOfKind->m_deviceSequence);
339  return &(itFirstOfKind->m_config);
340  }
341  }
342  else // exact match
343  {
344  qDebug("Preset::findBestDeviceConfigSoapy: serial matched (exact): id: %s ser: %s seq: %d",
345  qPrintable(it->m_deviceId), qPrintable(it->m_deviceSerial), it->m_deviceSequence);
346  return &(it->m_config);
347  }
348 }
DeviceeConfigs m_deviceConfigs
Definition: preset.h:140
+ Here is the caller graph for this function:

◆ getCenterFrequency()

quint64 Preset::getCenterFrequency ( ) const
inline

◆ getChannelConfig()

const ChannelConfig& Preset::getChannelConfig ( int  index) const
inline

Definition at line 87 of file preset.h.

Referenced by DeviceSet::loadRxChannelSettings(), DeviceUISet::loadRxChannelSettings(), DeviceSet::loadTxChannelSettings(), and DeviceUISet::loadTxChannelSettings().

87 { return m_channelConfigs.at(index); }
ChannelConfigs m_channelConfigs
Definition: preset.h:137
+ Here is the caller graph for this function:

◆ getChannelCount()

int Preset::getChannelCount ( ) const
inline

Definition at line 86 of file preset.h.

Referenced by DeviceSet::loadRxChannelSettings(), DeviceUISet::loadRxChannelSettings(), DeviceSet::loadTxChannelSettings(), and DeviceUISet::loadTxChannelSettings().

86 { return m_channelConfigs.count(); }
ChannelConfigs m_channelConfigs
Definition: preset.h:137
+ Here is the caller graph for this function:

◆ getDescription()

const QString& Preset::getDescription ( ) const
inline

◆ getGroup()

const QString& Preset::getGroup ( ) const
inline

◆ getLayout()

const QByteArray& Preset::getLayout ( ) const
inline

Definition at line 82 of file preset.h.

Referenced by MainWindow::loadPresetSettings().

82 { return m_layout; }
QByteArray m_layout
Definition: preset.h:143
+ Here is the caller graph for this function:

◆ getSpectrumConfig()

const QByteArray& Preset::getSpectrumConfig ( ) const
inline

Definition at line 79 of file preset.h.

Referenced by MainWindow::loadPresetSettings().

79 { return m_spectrumConfig; }
QByteArray m_spectrumConfig
Definition: preset.h:130
+ Here is the caller graph for this function:

◆ isSourcePreset()

bool Preset::isSourcePreset ( ) const
inline

◆ presetCompare()

static bool Preset::presetCompare ( const Preset p1,
Preset p2 
)
inlinestatic

Definition at line 103 of file preset.h.

References m_centerFrequency, m_description, and m_group.

Referenced by MainSettings::sortPresets().

104  {
105  if (p1->m_group != p2->m_group)
106  {
107  return p1->m_group < p2->m_group;
108  }
109  else
110  {
111  if (p1->m_centerFrequency != p2->m_centerFrequency) {
112  return p1->m_centerFrequency < p2->m_centerFrequency;
113  } else {
114  return p1->m_description < p2->m_description;
115  }
116  }
117  }
quint64 m_centerFrequency
Definition: preset.h:127
QString m_group
Definition: preset.h:125
QString m_description
Definition: preset.h:126
+ Here is the caller graph for this function:

◆ resetToDefaults()

void Preset::resetToDefaults ( )

Definition at line 30 of file preset.cpp.

References m_centerFrequency, m_channelConfigs, m_dcOffsetCorrection, m_description, m_group, m_iqImbalanceCorrection, m_layout, m_sourcePreset, and m_spectrumConfig.

Referenced by deserialize(), Preset(), and MainSettings::resetToDefaults().

31 {
32  m_sourcePreset = true;
33  m_group = "default";
34  m_description = "no name";
36  m_spectrumConfig.clear();
37  m_layout.clear();
38  m_channelConfigs.clear();
39  m_dcOffsetCorrection = false;
41 }
quint64 m_centerFrequency
Definition: preset.h:127
QByteArray m_spectrumConfig
Definition: preset.h:130
bool m_sourcePreset
Definition: preset.h:122
QString m_group
Definition: preset.h:125
QByteArray m_layout
Definition: preset.h:143
QString m_description
Definition: preset.h:126
bool m_dcOffsetCorrection
Definition: preset.h:133
bool m_iqImbalanceCorrection
Definition: preset.h:134
ChannelConfigs m_channelConfigs
Definition: preset.h:137
+ Here is the caller graph for this function:

◆ serialize()

QByteArray Preset::serialize ( ) const

Definition at line 43 of file preset.cpp.

References SimpleSerializer::final(), i, m_centerFrequency, m_channelConfigs, m_description, m_deviceConfigs, m_group, m_layout, m_sourcePreset, m_spectrumConfig, SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU64().

Referenced by WebAPIAdapterSrv::instancePresetFilePost(), MainWindow::on_presetExport_clicked(), and MainSettings::save().

44 {
45 // qDebug("Preset::serialize: m_group: %s mode: %s m_description: %s m_centerFrequency: %llu",
46 // qPrintable(m_group),
47 // m_sourcePreset ? "Rx" : "Tx",
48 // qPrintable(m_description),
49 // m_centerFrequency);
50 
51  SimpleSerializer s(1);
52 
53  s.writeString(1, m_group);
54  s.writeString(2, m_description);
55  s.writeU64(3, m_centerFrequency);
56  s.writeBlob(4, m_layout);
57  s.writeBlob(5, m_spectrumConfig);
58  s.writeBool(6, m_sourcePreset);
59 
60  s.writeS32(20, m_deviceConfigs.size());
61 
62  for (int i = 0; i < m_deviceConfigs.size(); i++)
63  {
64  s.writeString(24 + i*4, m_deviceConfigs[i].m_deviceId);
65  s.writeString(25 + i*4, m_deviceConfigs[i].m_deviceSerial);
66  s.writeS32(26 + i*4, m_deviceConfigs[i].m_deviceSequence);
67  s.writeBlob(27 + i*4, m_deviceConfigs[i].m_config);
68 
69 // qDebug("Preset::serialize: source: id: %s, ser: %s, seq: %d",
70 // qPrintable(m_deviceConfigs[i].m_deviceId),
71 // qPrintable(m_deviceConfigs[i].m_deviceSerial),
72 // m_deviceConfigs[i].m_deviceSequence);
73 
74  if (i >= (200-23)/4) // full!
75  {
76  qWarning("Preset::serialize: too many sources");
77  break;
78  }
79  }
80 
81  s.writeS32(200, m_channelConfigs.size());
82 
83  for(int i = 0; i < m_channelConfigs.size(); i++)
84  {
85 // qDebug("Preset::serialize: channel: id: %s", qPrintable(m_channelConfigs[i].m_channel));
86 
87  s.writeString(201 + i * 2, m_channelConfigs[i].m_channelIdURI);
88  s.writeBlob(202 + i * 2, m_channelConfigs[i].m_config);
89  }
90 
91  return s.final();
92 }
quint64 m_centerFrequency
Definition: preset.h:127
QByteArray m_spectrumConfig
Definition: preset.h:130
bool m_sourcePreset
Definition: preset.h:122
DeviceeConfigs m_deviceConfigs
Definition: preset.h:140
int32_t i
Definition: decimators.h:244
QString m_group
Definition: preset.h:125
QByteArray m_layout
Definition: preset.h:143
QString m_description
Definition: preset.h:126
ChannelConfigs m_channelConfigs
Definition: preset.h:137
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setCenterFrequency()

void Preset::setCenterFrequency ( const quint64  centerFrequency)
inline

Definition at line 75 of file preset.h.

Referenced by DeviceAPI::saveSamplingDeviceSettings().

75 { m_centerFrequency = centerFrequency; }
quint64 m_centerFrequency
Definition: preset.h:127
+ Here is the caller graph for this function:

◆ setDescription()

void Preset::setDescription ( const QString &  description)
inline

Definition at line 73 of file preset.h.

Referenced by WebAPIAdapterSrv::instancePresetFilePut(), MainSettings::newPreset(), and MainWindow::on_presetEdit_clicked().

73 { m_description = description; }
QString m_description
Definition: preset.h:126
+ Here is the caller graph for this function:

◆ setDeviceConfig()

void Preset::setDeviceConfig ( const QString &  deviceId,
const QString &  deviceSerial,
int  deviceSequence,
const QByteArray &  config 
)
inline

Definition at line 89 of file preset.h.

90  {
91  addOrUpdateDeviceConfig(deviceId, deviceSerial, deviceSequence, config);
92  }
void addOrUpdateDeviceConfig(const QString &deviceId, const QString &deviceSerial, int deviceSequence, const QByteArray &config)
Definition: preset.cpp:177

◆ setGroup()

void Preset::setGroup ( const QString &  group)
inline

Definition at line 71 of file preset.h.

Referenced by WebAPIAdapterSrv::instancePresetFilePut(), MainSettings::newPreset(), MainWindow::on_presetEdit_clicked(), MainWindow::on_presetImport_clicked(), and MainSettings::renamePresetGroup().

71 { m_group = group; }
QString m_group
Definition: preset.h:125
+ Here is the caller graph for this function:

◆ setLayout()

void Preset::setLayout ( const QByteArray &  data)
inline

Definition at line 81 of file preset.h.

Referenced by MainWindow::savePresetSettings().

81 { m_layout = data; }
QByteArray m_layout
Definition: preset.h:143
+ Here is the caller graph for this function:

◆ setSourcePreset()

void Preset::setSourcePreset ( bool  isSourcePreset)
inline

Definition at line 65 of file preset.h.

Referenced by MainCore::savePresetSettings(), and MainWindow::savePresetSettings().

bool isSourcePreset() const
Definition: preset.h:66
bool m_sourcePreset
Definition: preset.h:122
+ Here is the caller graph for this function:

◆ setSpectrumConfig()

void Preset::setSpectrumConfig ( const QByteArray &  data)
inline

Definition at line 78 of file preset.h.

Referenced by MainWindow::savePresetSettings().

78 { m_spectrumConfig = data; }
QByteArray m_spectrumConfig
Definition: preset.h:130
+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ WebAPIAdapterBase

friend class WebAPIAdapterBase
friend

Definition at line 119 of file preset.h.

Member Data Documentation

◆ m_centerFrequency

quint64 Preset::m_centerFrequency
protected

◆ m_channelConfigs

ChannelConfigs Preset::m_channelConfigs
protected

Definition at line 137 of file preset.h.

Referenced by deserialize(), resetToDefaults(), and serialize().

◆ m_dcOffsetCorrection

bool Preset::m_dcOffsetCorrection
protected

Definition at line 133 of file preset.h.

Referenced by resetToDefaults(), and WebAPIAdapterBase::webapiFormatPreset().

◆ m_description

QString Preset::m_description
protected

◆ m_deviceConfigs

DeviceeConfigs Preset::m_deviceConfigs
protected

◆ m_group

QString Preset::m_group
protected

◆ m_iqImbalanceCorrection

bool Preset::m_iqImbalanceCorrection
protected

Definition at line 134 of file preset.h.

Referenced by resetToDefaults(), and WebAPIAdapterBase::webapiFormatPreset().

◆ m_layout

QByteArray Preset::m_layout
protected

Definition at line 143 of file preset.h.

Referenced by deserialize(), resetToDefaults(), and serialize().

◆ m_sourcePreset

bool Preset::m_sourcePreset
protected

◆ m_spectrumConfig

QByteArray Preset::m_spectrumConfig
protected

Definition at line 130 of file preset.h.

Referenced by deserialize(), resetToDefaults(), and serialize().


The documentation for this class was generated from the following files: