diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
commit | e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch) | |
tree | 68cb5ef9081156392f1dd62a00c6ccc1451b93df /ui/qt/capture_preferences_frame.h | |
parent | Initial commit. (diff) | |
download | wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip |
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ui/qt/capture_preferences_frame.h')
-rw-r--r-- | ui/qt/capture_preferences_frame.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/ui/qt/capture_preferences_frame.h b/ui/qt/capture_preferences_frame.h new file mode 100644 index 00000000..33cf29b8 --- /dev/null +++ b/ui/qt/capture_preferences_frame.h @@ -0,0 +1,55 @@ +/** @file + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#ifndef CAPTURE_PREFERENCES_FRAME_H +#define CAPTURE_PREFERENCES_FRAME_H + +#include <QFrame> + +#include <epan/prefs.h> + +namespace Ui { +class CapturePreferencesFrame; +} + +class CapturePreferencesFrame : public QFrame +{ + Q_OBJECT + +public: + explicit CapturePreferencesFrame(QWidget *parent = 0); + ~CapturePreferencesFrame(); + +protected: + void showEvent(QShowEvent *evt); + +private slots: + void on_defaultInterfaceComboBox_editTextChanged(const QString &new_iface); + void on_capturePromModeCheckBox_toggled(bool checked); + void on_capturePcapNgCheckBox_toggled(bool checked); + void on_captureRealTimeCheckBox_toggled(bool checked); + void on_captureUpdateIntervalLineEdit_textChanged(const QString &new_str); + void on_captureNoInterfaceLoad_toggled(bool checked); + void on_captureNoExtcapCheckBox_toggled(bool checked); + +private: + Ui::CapturePreferencesFrame *ui; + + pref_t *pref_device_; + pref_t *pref_prom_mode_; + pref_t *pref_pcap_ng_; + pref_t *pref_real_time_; + pref_t *pref_update_interval_; + pref_t *pref_no_interface_load_; + pref_t *pref_no_extcap_; + + void updateWidgets(); +}; + +#endif // CAPTURE_PREFERENCES_FRAME_H |