summaryrefslogtreecommitdiff
path: root/ui/qt/manage_interfaces_dialog.h
diff options
context:
space:
mode:
authorIrene Ruengeler <ruengeler@wireshark.org>2014-08-04 13:57:17 +0200
committerAnders Broman <a.broman58@gmail.com>2014-08-05 07:48:45 +0000
commitf080b43933fe1bbac48122fc32e9cf621bbd63f4 (patch)
treee0df63fa7950ae2b23ac9c199a7e36b72b2d2218 /ui/qt/manage_interfaces_dialog.h
parent3b91474af57daf6620be0d5233c7f2c59c17b3c5 (diff)
downloadwireshark-f080b43933fe1bbac48122fc32e9cf621bbd63f4.tar.gz
Windows: Manage remote interfaces
Add remote interfaces to capture from a remote host. Change-Id: I34e31d865304f3c6dd972ab9ab1c23829d564665 Reviewed-on: https://code.wireshark.org/review/3405 Petri-Dish: Jeff Morriss <jeff.morriss.ws@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> 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.h30
1 files changed, 29 insertions, 1 deletions
diff --git a/ui/qt/manage_interfaces_dialog.h b/ui/qt/manage_interfaces_dialog.h
index 1b68fe0fd6..a26c820a37 100644
--- a/ui/qt/manage_interfaces_dialog.h
+++ b/ui/qt/manage_interfaces_dialog.h
@@ -26,6 +26,11 @@
#include <QLineEdit>
#include <QTableWidget>
#include <QStyledItemDelegate>
+#include <QTreeWidgetItem>
+#include <QStandardItemModel>
+
+#include <glib.h>
+#include "capture_opts.h"
enum
{
@@ -36,6 +41,14 @@ enum
NUM_LOCAL_COLUMNS
};
+enum
+{
+ HOST = 0,
+ HIDDEN,
+ REMOTE_NAME,
+ NUM_REMOTE_COLUMNS
+};
+
class NewFileDelegate : public QStyledItemDelegate
{
@@ -73,21 +86,36 @@ public:
private:
Ui::ManageInterfacesDialog *ui;
NewFileDelegate new_pipe_item_delegate_;
+ QStandardItemModel *remoteModel;
void showPipes();
void showLocalInterfaces();
+ void showRemoteInterfaces();
void saveLocalHideChanges(QTableWidgetItem *item);
void saveLocalCommentChanges(QTableWidgetItem *item);
- void checkBoxChanged(QTableWidgetItem *item);
+ void checkBoxChanged(QTableWidgetItem *item);
signals:
void ifsChanged();
+#ifdef HAVE_PCAP_REMOTE
+ void remoteAdded(GList *rlist, remote_options *roptions);
+ void remoteSettingsChanged(interface_t *iface);
+#endif
private slots:
void on_addButton_clicked();
void on_buttonBox_accepted();
void on_delButton_clicked();
void on_localButtonBox_accepted();
+#ifdef HAVE_PCAP_REMOTE
+ void on_addRemote_clicked();
+ void on_remoteButtonBox_accepted();
+ void addRemoteInterfaces(GList *rlist, remote_options *roptions);
+ void setRemoteSettings(interface_t *iface);
+ void on_delRemote_clicked();
+ void remoteSelectionChanged(QTreeWidgetItem* item, int col);
+ void on_remoteSettings_clicked();
+#endif
};
#endif // MANAGE_INTERFACES_DIALOG_H