| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
manage_interfaces_dialog.h
Go to the documentation of this file.
1
9
10#ifndef MANAGE_INTERFACES_DIALOG_H
11#define MANAGE_INTERFACES_DIALOG_H
12
13#include <config.h>
14
15#include <ui/capture_opts.h>
16
17#include <ui/qt/models/interface_tree_cache_model.h>
18#include <ui/qt/models/interface_sort_filter_model.h>
19
20#include "geometry_state_dialog.h"
21#include <QStyledItemDelegate>
22
23 class QTreeWidget;
24 class QTreeWidgetItem;
25 class QStandardItemModel;
26
27 class QLineEdit;
28
29
30 namespace Ui {
31 class ManageInterfacesDialog;
32}
33
37 class ManageInterfacesDialog : public GeometryStateDialog
38{
39 Q_OBJECT
40
41 public:
46 explicit ManageInterfacesDialog(QWidget *parent = 0);
47
51 ~ManageInterfacesDialog();
52
53 private:
55 Ui::ManageInterfacesDialog *ui;
56
58 InterfaceTreeCacheModel * sourceModel;
59
61 InterfaceSortFilterModel * proxyModel;
62
64 InterfaceSortFilterModel * pipeProxyModel;
65
69 void showRemoteInterfaces();
70
71#ifdef HAVE_PCAP_REMOTE
76 void addRemote(const QVariantMap&& remoteHostMap);
77
81 void populateExistingRemotes();
82#endif
83
84signals:
88 void ifsChanged();
89
90#ifdef HAVE_PCAP_REMOTE
96 void remoteAdded(GList *rlist, remote_options *roptions);
97
102 void remoteSettingsChanged(interface_t *iface);
103#endif
104
105 private slots:
109 void updateWidgets();
110
111#ifdef HAVE_LIBPCAP
115 void on_addPipe_clicked();
116
120 void on_delPipe_clicked();
121#endif
122
123#ifdef HAVE_PCAP_REMOTE
127 void on_addRemote_clicked();
128
132 void on_delRemote_clicked();
133
137 void remoteAccepted();
138
144 void on_remoteList_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
145
151 void on_remoteList_itemClicked(QTreeWidgetItem *item, int column);
152
158 void addRemoteInterfaces(GList *rlist, remote_options *roptions);
159
166 void updateRemoteInterfaceList(capture_options* capture_opts, GList *rlist, remote_options *roptions);
167
172 void setRemoteSettings(interface_t *iface);
173
179 void remoteSelectionChanged(QTreeWidgetItem* item, int col);
180
184 void on_remoteSettings_clicked();
185#endif
186
190 void on_buttonBox_helpRequested();
191};
192
193#endif // MANAGE_INTERFACES_DIALOG_H
capture_opts.h
GeometryStateDialog::GeometryStateDialog
GeometryStateDialog(QWidget *parent, Qt::WindowFlags f=Qt::Window)
Constructs a new GeometryStateDialog with the specified parent and window flags.
Definition geometry_state_dialog.h:91
InterfaceSortFilterModel
A proxy model that provides custom sorting and filtering for the list of interfaces.
Definition interface_sort_filter_model.h:25
InterfaceTreeCacheModel
A proxy model that caches edits and additions to the interface tree before applying them to the sourc...
Definition interface_tree_cache_model.h:25
ManageInterfacesDialog::ManageInterfacesDialog
ManageInterfacesDialog(QWidget *parent=0)
Constructs a new ManageInterfacesDialog.
Definition manage_interfaces_dialog.cpp:168
ManageInterfacesDialog::~ManageInterfacesDialog
~ManageInterfacesDialog()
Destroys the ManageInterfacesDialog.
Definition manage_interfaces_dialog.cpp:256
ManageInterfacesDialog::ifsChanged
void ifsChanged()
Signal emitted when the list of interfaces has changed.
geometry_state_dialog.h
interface_sort_filter_model.h
interface_tree_cache_model.h
interface_t
Definition androiddump.c:217