summaryrefslogtreecommitdiff
path: root/ui/qt/manage_interfaces_dialog.h
diff options
context:
space:
mode:
authorRoland Knall <rknall@gmail.com>2016-10-17 15:01:24 +0200
committerAnders Broman <a.broman58@gmail.com>2016-10-19 07:43:45 +0000
commit864f750be560a7a739c7453f19a8f5679cf7d6b3 (patch)
treee7d4c74c127a477c13f70ee69c82c6f06274f9a1 /ui/qt/manage_interfaces_dialog.h
parent5cbdbecc35f77c40142e2e5389e553931490eea0 (diff)
downloadwireshark-864f750be560a7a739c7453f19a8f5679cf7d6b3.tar.gz
ManageInterfacesDialog: Implement View/Data Model
Implement the same interface view/data model as used for the interface_tree selection in this dialog, to encapsulate all access to global_capture_devices from the dialog. Change-Id: I0e568fe236d077befa2a79765638db8bb3ed1a3f Reviewed-on: https://code.wireshark.org/review/18062 Petri-Dish: Roland Knall <rknall@gmail.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/manage_interfaces_dialog.h')
-rw-r--r--ui/qt/manage_interfaces_dialog.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/ui/qt/manage_interfaces_dialog.h b/ui/qt/manage_interfaces_dialog.h
index 8a1321a3e5..1a812a583a 100644
--- a/ui/qt/manage_interfaces_dialog.h
+++ b/ui/qt/manage_interfaces_dialog.h
@@ -27,6 +27,9 @@
#include <glib.h>
#include "capture_opts.h"
+#include "ui/qt/interface_tree_cache_model.h"
+#include "ui/qt/interface_sort_filter_model.h"
+
#include "geometry_state_dialog.h"
#include <QStyledItemDelegate>
@@ -78,14 +81,10 @@ private:
Ui::ManageInterfacesDialog *ui;
PathChooserDelegate new_pipe_item_delegate_;
+ InterfaceTreeCacheModel * sourceModel;
+ InterfaceSortFilterModel * proxyModel;
void showPipes();
- void showLocalInterfaces();
void showRemoteInterfaces();
- void saveLocalHideChanges(QTreeWidgetItem *item);
- void saveLocalCommentChanges(QTreeWidgetItem *item);
-#if 0 // Not needed?
- void checkBoxChanged(QTreeWidgetItem *item);
-#endif
signals:
void ifsChanged();
@@ -104,8 +103,6 @@ private slots:
void pipeAccepted();
void on_pipeList_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
- void localAccepted();
- void localListItemDoubleClicked(QTreeWidgetItem * item, int column);
#ifdef HAVE_PCAP_REMOTE
void on_addRemote_clicked();