Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
wireless_frame.h
1 /* wireless_frame.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef WIRELESS_FRAME_H
11 #define WIRELESS_FRAME_H
12 
13 #include <glib.h>
14 
15 #include <QFrame>
16 
17 namespace Ui {
18 class WirelessFrame;
19 }
20 
21 class WirelessFrame : public QFrame
22 {
23  Q_OBJECT
24 
25 public:
26  explicit WirelessFrame(QWidget *parent = 0);
27  ~WirelessFrame();
28 
29  void setCaptureInProgress(bool capture_in_progress);
30 
31 signals:
32  void pushAdapterStatus(const QString&);
33  void showWirelessPreferences(const QString wlan_module_name);
34 
35 protected:
36  void timerEvent(QTimerEvent *event);
37 
38 private:
39  void getInterfaceInfo();
40  void setInterfaceInfo();
41  int getCenterFrequency(int control_frequency, int bandwidth);
42  int getBandwidthFromChanType(int chan_type);
43 
44 private slots:
45  void updateWidgets();
46 
47  void on_helperToolButton_clicked();
48  void on_prefsToolButton_clicked();
49  void on_interfaceComboBox_activated(int);
50  void on_channelComboBox_activated(int);
51  void on_channelTypeComboBox_activated(int);
52  void on_fcsComboBox_activated(int);
53 
54 private:
56  GArray *interfaces_;
57  bool capture_in_progress_;
58  int iface_timer_id_;
59 };
60 
61 #endif // WIRELESS_FRAME_H
62 
63 /*
64  * Editor modelines
65  *
66  * Local Variables:
67  * c-basic-offset: 4
68  * tab-width: 8
69  * indent-tabs-mode: nil
70  * End:
71  *
72  * ex: set shiftwidth=4 tabstop=8 expandtab:
73  * :indentSize=4:tabSize=8:noTabs=true:
74  */
Definition: ui_about_dialog.h:291
Definition: wireless_frame.h:21
Definition: ui_wireless_frame.h:191