nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* capture_preferences_frame.h |
2 | * |
||
3 | * Wireshark - Network traffic analyzer |
||
4 | * By Gerald Combs <gerald@wireshark.org> |
||
5 | * Copyright 1998 Gerald Combs |
||
6 | * |
||
7 | * This program is free software; you can redistribute it and/or |
||
8 | * modify it under the terms of the GNU General Public License |
||
9 | * as published by the Free Software Foundation; either version 2 |
||
10 | * of the License, or (at your option) any later version. |
||
11 | * |
||
12 | * This program is distributed in the hope that it will be useful, |
||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
15 | * GNU General Public License for more details. |
||
16 | * |
||
17 | * You should have received a copy of the GNU General Public License |
||
18 | * along with this program; if not, write to the Free Software |
||
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
||
20 | */ |
||
21 | |||
22 | #ifndef CAPTURE_PREFERENCES_FRAME_H |
||
23 | #define CAPTURE_PREFERENCES_FRAME_H |
||
24 | |||
25 | #include "preferences_dialog.h" |
||
26 | |||
27 | #include <QFrame> |
||
28 | |||
29 | namespace Ui { |
||
30 | class CapturePreferencesFrame; |
||
31 | } |
||
32 | |||
33 | class CapturePreferencesFrame : public QFrame |
||
34 | { |
||
35 | Q_OBJECT |
||
36 | |||
37 | public: |
||
38 | explicit CapturePreferencesFrame(QWidget *parent = 0); |
||
39 | ~CapturePreferencesFrame(); |
||
40 | |||
41 | protected: |
||
42 | void showEvent(QShowEvent *evt); |
||
43 | |||
44 | private slots: |
||
45 | void on_defaultInterfaceComboBox_editTextChanged(const QString &new_iface); |
||
46 | void on_capturePromModeCheckBox_toggled(bool checked); |
||
47 | void on_capturePcapNgCheckBox_toggled(bool checked); |
||
48 | void on_captureRealTimeCheckBox_toggled(bool checked); |
||
49 | void on_captureAutoScrollCheckBox_toggled(bool checked); |
||
50 | |||
51 | private: |
||
52 | Ui::CapturePreferencesFrame *ui; |
||
53 | |||
54 | pref_t *pref_device_; |
||
55 | pref_t *pref_prom_mode_; |
||
56 | pref_t *pref_pcap_ng_; |
||
57 | pref_t *pref_real_time_; |
||
58 | pref_t *pref_auto_scroll_; |
||
59 | |||
60 | void updateWidgets(); |
||
61 | }; |
||
62 | |||
63 | #endif // CAPTURE_PREFERENCES_FRAME_H |