Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / manage_interfaces_dialog.h
blobde8db2d4ff73c0912e73bd9ac015d73536bdb1d1
1 /** @file
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
8 */
10 #ifndef MANAGE_INTERFACES_DIALOG_H
11 #define MANAGE_INTERFACES_DIALOG_H
13 #include <config.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>
23 class QTreeWidget;
24 class QTreeWidgetItem;
25 class QStandardItemModel;
27 class QLineEdit;
30 namespace Ui {
31 class ManageInterfacesDialog;
34 class ManageInterfacesDialog : public GeometryStateDialog
36 Q_OBJECT
38 public:
39 explicit ManageInterfacesDialog(QWidget *parent = 0);
40 ~ManageInterfacesDialog();
42 private:
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();
53 #endif
55 signals:
56 void ifsChanged();
57 #ifdef HAVE_PCAP_REMOTE
58 void remoteAdded(GList *rlist, remote_options *roptions);
59 void remoteSettingsChanged(interface_t *iface);
60 #endif
62 private slots:
63 void updateWidgets();
65 #ifdef HAVE_LIBPCAP
66 void on_addPipe_clicked();
67 void on_delPipe_clicked();
68 #endif
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();
81 #endif
82 void on_buttonBox_helpRequested();
85 #endif // MANAGE_INTERFACES_DIALOG_H