1 /* manage_interfaces_dialog.h
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef MANAGE_INTERFACES_DIALOG_H
23 #define MANAGE_INTERFACES_DIALOG_H
28 #include "capture_opts.h"
30 #include "ui/qt/interface_tree_cache_model.h"
31 #include "ui/qt/interface_sort_filter_model.h"
33 #include "geometry_state_dialog.h"
34 #include <QStyledItemDelegate>
37 class QTreeWidgetItem;
38 class QStandardItemModel;
44 class ManageInterfacesDialog;
47 class ManageInterfacesDialog : public GeometryStateDialog
52 explicit ManageInterfacesDialog(QWidget *parent = 0);
53 ~ManageInterfacesDialog();
56 Ui::ManageInterfacesDialog *ui;
58 InterfaceTreeCacheModel * sourceModel;
59 InterfaceSortFilterModel * proxyModel;
60 InterfaceSortFilterModel * pipeProxyModel;
62 void showRemoteInterfaces();
66 #ifdef HAVE_PCAP_REMOTE
67 void remoteAdded(GList *rlist, remote_options *roptions);
68 void remoteSettingsChanged(interface_t *iface);
74 void on_buttonBox_accepted();
76 void on_addPipe_clicked();
77 void on_delPipe_clicked();
79 void onSelectionChanged(const QItemSelection &sel, const QItemSelection &desel);
81 #ifdef HAVE_PCAP_REMOTE
82 void on_addRemote_clicked();
83 void on_delRemote_clicked();
84 void remoteAccepted();
85 void on_remoteList_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
86 void on_remoteList_itemClicked(QTreeWidgetItem *item, int column);
87 void addRemoteInterfaces(GList *rlist, remote_options *roptions);
88 void setRemoteSettings(interface_t *iface);
89 void remoteSelectionChanged(QTreeWidgetItem* item, int col);
90 void on_remoteSettings_clicked();
92 void on_buttonBox_helpRequested();
95 #endif // MANAGE_INTERFACES_DIALOG_H
103 * indent-tabs-mode: nil
106 * ex: set shiftwidth=4 tabstop=8 expandtab:
107 * :indentSize=4:tabSize=8:noTabs=true: