18 #include <QJsonDocument> 152 QByteArray array (json.toStdString().c_str());
153 QJsonDocument doc = QJsonDocument::fromJson(array);
154 QJsonObject jsonObject = doc.object();
210 QJsonDocument doc(*obj);
211 QByteArray bytes = doc.toJson();
213 return QString(bytes);
218 QJsonObject* obj =
new QJsonObject();
220 obj->insert(
"fftSize", QJsonValue(
fft_size));
223 obj->insert(
"fftOverlap", QJsonValue(
fft_overlap));
229 obj->insert(
"refLevel", QJsonValue(
ref_level));
232 obj->insert(
"powerRange", QJsonValue(
power_range));
247 obj->insert(
"decay", QJsonValue(
decay));
253 obj->insert(
"invert", QJsonValue(
invert));
280 obj->insert(
"linear", QJsonValue(
linear));
499 bool isObjectUpdated =
false;
523 return isObjectUpdated;
void setLinear(qint32 linear)
bool m_display_waterfall_isSet
void setInvert(qint32 invert)
qint32 getDisplayWaterfall()
qint32 inverted_waterfall
bool m_waterfall_share_isSet
void setDisplayWaterfall(qint32 display_waterfall)
virtual QString asJson() override
bool m_display_grid_isSet
bool m_inverted_waterfall_isSet
virtual QJsonObject * asJsonObject() override
qint32 getDisplayTraceIntensity()
qint32 getDisplayGridIntensity()
float getWaterfallShare()
void setRefLevel(float ref_level)
bool m_display_max_hold_isSet
void setAveragingValue(qint32 averaging_value)
virtual bool isSet() override
bool m_m_fft_window_isSet
bool m_display_current_isSet
void setFftSize(qint32 fft_size)
void setDisplayTraceIntensity(qint32 display_trace_intensity)
void setDisplayCurrent(qint32 display_current)
bool m_display_grid_intensity_isSet
bool m_decay_divisor_isSet
void setWaterfallShare(float waterfall_share)
qint32 getAveragingValue()
void setDecayDivisor(qint32 decay_divisor)
void setInvertedWaterfall(qint32 inverted_waterfall)
void setDecay(qint32 decay)
bool m_averaging_value_isSet
virtual void fromJsonObject(QJsonObject &json) override
bool m_averaging_mode_isSet
qint32 getHistogramStroke()
void setAveragingMode(qint32 averaging_mode)
qint32 getInvertedWaterfall()
void setMFftWindow(qint32 m_fft_window)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
qint32 getDisplayHistogram()
qint32 getDisplayMaxHold()
void setFftOverlap(qint32 fft_overlap)
qint32 getDisplayCurrent()
qint32 getAveragingMode()
bool m_display_histogram_isSet
bool m_histogram_stroke_isSet
void setDisplayGrid(qint32 display_grid)
qint32 display_trace_intensity
qint32 display_grid_intensity
void setPowerRange(float power_range)
void setDisplayHistogram(qint32 display_histogram)
void setDisplayGridIntensity(qint32 display_grid_intensity)
bool m_display_trace_intensity_isSet
void setDisplayMaxHold(qint32 display_max_hold)
virtual SWGGLSpectrum * fromJson(QString &jsonString) override
void setHistogramStroke(qint32 histogram_stroke)