19 #ifndef SWGUDPSinkSettings_H_ 20 #define SWGUDPSinkSettings_H_ 22 #include <QJsonObject> 40 virtual QString asJson ()
override;
41 virtual QJsonObject* asJsonObject()
override;
42 virtual void fromJsonObject(QJsonObject &json)
override;
45 float getOutputSampleRate();
46 void setOutputSampleRate(
float output_sample_rate);
48 qint32 getSampleFormat();
49 void setSampleFormat(qint32 sample_format);
51 qint64 getInputFrequencyOffset();
52 void setInputFrequencyOffset(qint64 input_frequency_offset);
54 float getRfBandwidth();
55 void setRfBandwidth(
float rf_bandwidth);
57 qint32 getFmDeviation();
58 void setFmDeviation(qint32 fm_deviation);
60 qint32 getChannelMute();
61 void setChannelMute(qint32 channel_mute);
64 void setGain(
float gain);
66 qint32 getSquelchDb();
67 void setSquelchDb(qint32 squelch_db);
69 qint32 getSquelchGate();
70 void setSquelchGate(qint32 squelch_gate);
72 qint32 getSquelchEnabled();
73 void setSquelchEnabled(qint32 squelch_enabled);
76 void setAgc(qint32 agc);
78 qint32 getAudioActive();
79 void setAudioActive(qint32 audio_active);
81 qint32 getAudioStereo();
82 void setAudioStereo(qint32 audio_stereo);
85 void setVolume(qint32 volume);
87 QString* getUdpAddress();
88 void setUdpAddress(QString* udp_address);
91 void setUdpPort(qint32 udp_port);
93 qint32 getAudioPort();
94 void setAudioPort(qint32 audio_port);
97 void setRgbColor(qint32 rgb_color);
100 void setTitle(QString* title);
102 qint32 getUseReverseApi();
103 void setUseReverseApi(qint32 use_reverse_api);
105 QString* getReverseApiAddress();
106 void setReverseApiAddress(QString* reverse_api_address);
108 qint32 getReverseApiPort();
109 void setReverseApiPort(qint32 reverse_api_port);
111 qint32 getReverseApiDeviceIndex();
112 void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
114 qint32 getReverseApiChannelIndex();
115 void setReverseApiChannelIndex(qint32 reverse_api_channel_index);
118 virtual bool isSet()
override;
bool m_reverse_api_port_isSet
bool m_reverse_api_device_index_isSet
bool m_squelch_gate_isSet
bool m_fm_deviation_isSet
bool m_audio_stereo_isSet
bool m_sample_format_isSet
bool m_channel_mute_isSet
bool m_reverse_api_channel_index_isSet
qint64 input_frequency_offset
bool m_use_reverse_api_isSet
bool m_audio_active_isSet
bool m_rf_bandwidth_isSet
qint32 reverse_api_device_index
qint32 reverse_api_channel_index
bool m_squelch_enabled_isSet
QString * reverse_api_address
bool m_reverse_api_address_isSet
bool m_input_frequency_offset_isSet
bool m_output_sample_rate_isSet