3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef WIRELESS_FRAME_H
11 #define WIRELESS_FRAME_H
21 class WirelessFrame
: public QFrame
26 explicit WirelessFrame(QWidget
*parent
= 0);
29 void setCaptureInProgress(bool capture_in_progress
);
32 void showWirelessPreferences(const QString wlan_module_name
);
35 void timerEvent(QTimerEvent
*event
);
38 void handleInterfaceEvent(const char *ifname
, int added
, int up
);
41 int startTimer(int interval
);
42 void getInterfaceInfo();
43 void setInterfaceInfo();
44 int getCenterFrequency(int control_frequency
, int bandwidth
);
45 int getBandwidthFromChanType(int chan_type
);
46 void updateInterfaceList();
51 void on_helperToolButton_clicked();
52 void on_prefsToolButton_clicked();
53 void on_interfaceComboBox_activated(int);
54 void on_channelComboBox_activated(int);
55 void on_channelTypeComboBox_activated(int);
56 void on_fcsComboBox_activated(int);
59 Ui::WirelessFrame
*ui
;
61 bool capture_in_progress_
;
65 #endif // WIRELESS_FRAME_H