diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-08-31 22:25:51 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-08-31 22:25:51 +0000 |
commit | 5c715fcc193851bc981ac99340b8ba59db9bbc22 (patch) | |
tree | ec130ef97e299246d7298ffc5696e1eb09eb4cbd /ui/qt/wireshark_application.h | |
parent | 94cbe0ce2c0a7de0a36755e94ca285606b2644ed (diff) |
It ain't Wireshark unless we can capture.
Implement basic capture start and stop. Add a lot of menu items and
enable and disable them when appropriate. Rename a few variables.
Next step: Let the user select an interface (we just use the default for
now).
svn path=/trunk/; revision=44714
Diffstat (limited to 'ui/qt/wireshark_application.h')
-rw-r--r-- | ui/qt/wireshark_application.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/ui/qt/wireshark_application.h b/ui/qt/wireshark_application.h index 6f8a6fdb60..b75ca03079 100644 --- a/ui/qt/wireshark_application.h +++ b/ui/qt/wireshark_application.h @@ -28,6 +28,7 @@ #include <glib.h> +#include "capture_opts.h" #include "file.h" #include <QApplication> @@ -55,14 +56,28 @@ public: explicit WiresharkApplication(int &argc, char **argv); QList<recent_item_status *> recent_item_list() const; void addRecentItem(const QString &filename, qint64 size, bool accessible); +#ifdef HAVE_LIBPCAP + void captureCallback(int event, capture_options * capture_opts); +#endif void captureFileCallback(int event, void * data); private: - QTimer *recentTimer; + QTimer *recent_timer_; signals: void updateRecentItemStatus(const QString &filename, qint64 size, bool accessible); +#ifdef HAVE_LIBPCAP + // XXX It might make more sense to move these to main.cpp or main_window.cpp or their own class. + void captureCapturePrepared(capture_options *capture_opts); + void captureCaptureUpdateStarted(capture_options *capture_opts); + void captureCaptureUpdateFinished(capture_options *capture_opts); + void captureCaptureFixedStarted(capture_options *capture_opts); + void captureCaptureFixedFinished(capture_options *capture_opts); + void captureCaptureStopping(capture_options *capture_opts); + void captureCaptureFailed(capture_options *capture_opts); +#endif + void captureFileReadStarted(const capture_file *cf); void captureFileReadFinished(const capture_file *cf); void captureFileClosing(const capture_file *cf); |