aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/wireshark_application.h
diff options
context:
space:
mode:
authorRoland Knall <roland.knall@br-automation.com>2017-12-22 13:58:02 +0100
committerRoland Knall <rknall@gmail.com>2017-12-23 09:41:46 +0000
commitd5d815189d98745e3b33a6caadd4c2dc5648a114 (patch)
tree18e0c90a8f3bc0289d8e12dfa7e63c7368fe9844 /ui/qt/wireshark_application.h
parentd41d0f71485fdad56b27eac08c06cd3d0235013d (diff)
Qt: Redesign signal/slot concept of capture_file
This is in preparation to make it easier for other classes to get the right signals from the capture file. Also the decision on what signals to listen to now resides with the final classes, not main window, and it no longer needs to be changed if the statusbar or wsapp needs additional signals. Change-Id: If366d42b07dc822636404ac44ba2306ec4418b4e Reviewed-on: https://code.wireshark.org/review/24941 Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/wireshark_application.h')
-rw-r--r--ui/qt/wireshark_application.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/qt/wireshark_application.h b/ui/qt/wireshark_application.h
index 47b7bc5049..a10928fb8c 100644
--- a/ui/qt/wireshark_application.h
+++ b/ui/qt/wireshark_application.h
@@ -30,6 +30,8 @@ struct _e_prefs;
class QAction;
class QSocketNotifier;
+class CaptureEvent;
+
// Recent items:
// - Read from prefs
// - Add from open file
@@ -196,12 +198,12 @@ signals:
public slots:
void clearRecentCaptures();
void refreshRecentCaptures();
- void captureFileReadStarted();
- void captureStarted();
- void captureFinished();
- void updateTaps();
+
+ void captureEventHandler(CaptureEvent *);
private slots:
+ void updateTaps();
+
void cleanup();
void ifChangeEventsAvailable();
void itemStatusFinished(const QString filename = "", qint64 size = 0, bool accessible = false);