summaryrefslogtreecommitdiffstats
path: root/pica-client/dialogs/settingsdialog.h
diff options
context:
space:
mode:
authorAnton <anton@picapica.im>2026-11-29 23:38:25 +0400
committerAnton <anton@picapica.im>2026-11-29 23:38:25 +0400
commit56863d74399c8d7354a00bc8ddc87b924ef870ab (patch)
treebd9e44c438f974f80aa6cfef59fe842d3e128ee7 /pica-client/dialogs/settingsdialog.h
parentd6ce3a2226bda81cce96c61f0a73fb1516adbd0b (diff)
downloadpica-pica-call_quality_presets.tar.gz
pica-pica-call_quality_presets.zip
pica-client: new presets tab, call quality presetscall_quality_presets
Diffstat (limited to 'pica-client/dialogs/settingsdialog.h')
-rw-r--r--pica-client/dialogs/settingsdialog.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/pica-client/dialogs/settingsdialog.h b/pica-client/dialogs/settingsdialog.h
index d5b624c..3525cbf 100644
--- a/pica-client/dialogs/settingsdialog.h
+++ b/pica-client/dialogs/settingsdialog.h
@@ -96,6 +96,27 @@ private:
// told the user why, if it cannot be.
bool validateAddrTable();
+ // "Call quality" on the "Presets" tab, see CallQualityPreset.
+ QRadioButton *rbQualityMax;
+ QRadioButton *rbQualityAdaptive;
+ QRadioButton *rbQualityEconomy;
+ QRadioButton *rbQualityCustom;
+ // What the selected preset comes to on this machine with the selected
+ // camera, and which hardware encoders work. Null until built, which is
+ // after the camera lists that refresh it.
+ QLabel *lbQualitySummary;
+ // The hardware encoder probe has been asked of testCam's thread.
+ bool hwProbeRequested;
+ // Say on the tabs the custom settings live on that a preset is deciding
+ // them instead.
+ QLabel *lbCallPresetHint;
+ QLabel *lbVideoPresetHint;
+
+ CallQualityPreset selectedQualityPreset() const;
+ // Enables what only the Custom preset uses, and disables it otherwise.
+ void updateCallQualityWidgets();
+ void updateCallQualitySummary();
+
QRadioButton *rbMLPProhibit;
QRadioButton *rbMLPReplace;
QRadioButton *rbMLPAllowMultiple;
@@ -147,6 +168,10 @@ private:
QComboBox *callAudioCodec;
QSpinBox *callVideoBitrate;
QSpinBox *callAudioBitrate;
+ // Holds the four above, and is disabled with a preset other than Custom.
+ // Whether callAudioBitrate is disabled on its own account - a fixed rate
+ // codec - is told by isEnabledTo(callCustomBox), see audioBitrateKbps.
+ QWidget *callCustomBox;
// "Maximum incoming video resolution": the recommended resolution a call
// sends to the peer in 0x70/0x71, see IncomingVideoLimit. The combo box
@@ -355,6 +380,8 @@ private slots:
// Greys out the audio bitrate box for a codec whose bitrate is not ours to
// choose - see audioBitrateKbps.
void callAudioCodecChanged();
+ void callQualityChanged();
+ void hardwareEncodersProbed();
// Device names are driver specific, so all three lists have to be filled
// again when the driver changes. Only ever connected on Linux.
void audioDriverChanged(int index);