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 MANAGE_INTERFACES_DIALOG_H
11 #define MANAGE_INTERFACES_DIALOG_H
15 #include "capture_opts.h"
17 #include <ui/qt/models/interface_tree_cache_model.h>
18 #include <ui/qt/models/interface_sort_filter_model.h>
20 #include "geometry_state_dialog.h"
21 #include <QStyledItemDelegate>
24 class QTreeWidgetItem
;
25 class QStandardItemModel
;
31 class ManageInterfacesDialog
;
34 class ManageInterfacesDialog
: public GeometryStateDialog
39 explicit ManageInterfacesDialog(QWidget
*parent
= 0);
40 ~ManageInterfacesDialog();
43 Ui::ManageInterfacesDialog
*ui
;
45 InterfaceTreeCacheModel
* sourceModel
;
46 InterfaceSortFilterModel
* proxyModel
;
47 InterfaceSortFilterModel
* pipeProxyModel
;
49 void showRemoteInterfaces();
50 #ifdef HAVE_PCAP_REMOTE
51 void addRemote(const QVariantMap
&&);
52 void populateExistingRemotes();
57 #ifdef HAVE_PCAP_REMOTE
58 void remoteAdded(GList
*rlist
, remote_options
*roptions
);
59 void remoteSettingsChanged(interface_t
*iface
);
66 void on_addPipe_clicked();
67 void on_delPipe_clicked();
70 #ifdef HAVE_PCAP_REMOTE
71 void on_addRemote_clicked();
72 void on_delRemote_clicked();
73 void remoteAccepted();
74 void on_remoteList_currentItemChanged(QTreeWidgetItem
*current
, QTreeWidgetItem
*previous
);
75 void on_remoteList_itemClicked(QTreeWidgetItem
*item
, int column
);
76 void addRemoteInterfaces(GList
*rlist
, remote_options
*roptions
);
77 void updateRemoteInterfaceList(GList
*rlist
, remote_options
*roptions
);
78 void setRemoteSettings(interface_t
*iface
);
79 void remoteSelectionChanged(QTreeWidgetItem
* item
, int col
);
80 void on_remoteSettings_clicked();
82 void on_buttonBox_helpRequested();
85 #endif // MANAGE_INTERFACES_DIALOG_H