1 /* firewall_rules_dialog.h
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*/
9 #ifndef FIREWALL_RULES_DIALOG_H
10 #define FIREWALL_RULES_DIALOG_H
12 #include "epan/address.h"
14 #include <wireshark_dialog.h>
17 class FirewallRulesDialog;
20 class QAbstractButton;
22 typedef void (*syntax_func)(GString *rtxt, gchar *addr, guint32 port, port_type ptype, gboolean inbound, gboolean deny);
24 class FirewallRulesDialog : public WiresharkDialog
29 explicit FirewallRulesDialog(QWidget &parent, CaptureFile &cf);
30 ~FirewallRulesDialog();
33 void on_productComboBox_currentIndexChanged(int new_idx);
34 void on_inboundCheckBox_toggled(bool);
35 void on_denyCheckBox_toggled(bool);
36 void on_buttonBox_helpRequested();
38 void on_buttonBox_clicked(QAbstractButton *button);
41 Ui::FirewallRulesDialog *ui;
56 void addRule(QString description, syntax_func rule_func, address *addr, guint32 port);
59 #endif // FIREWALL_RULES_DIALOG_H
67 * indent-tabs-mode: nil
70 * ex: set shiftwidth=4 tabstop=8 expandtab:
71 * :indentSize=4:tabSize=8:noTabs=true: