diff options
author | Gerald Combs <gerald@zing.org> | 2014-12-21 13:23:02 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-12-22 18:12:31 +0000 |
commit | 5cdad9fe423662e2aea3d63540cd19b7e518b7c3 (patch) | |
tree | 16deed9efb4df400a81b564ec1aa5d9f5b1c9c61 /ui/qt/wireshark_application.h | |
parent | 30c3d394adbf8deff83854f01dc1082db9cac598 (diff) | |
download | wireshark-5cdad9fe423662e2aea3d63540cd19b7e518b7c3.tar.gz |
Qt: Add methods to CaptureFile and WiresharkApplication.
Add isValid, fileTitle, and retapPackets methods to CaptureFile. Add
application name and title separator convenience methods to
WiresharkApplication.
Convert traffic tables, conversations, and endpoints to use CaptureFile
directly and to let the user know when the capture file is closed. Set
the file dialog titles while we're here.
Change-Id: I990392786d3833e1e0b3638aa2d34a5ada39fa13
Reviewed-on: https://code.wireshark.org/review/5957
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/wireshark_application.h')
-rw-r--r-- | ui/qt/wireshark_application.h | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/ui/qt/wireshark_application.h b/ui/qt/wireshark_application.h index f6f43e8632..3de29d8695 100644 --- a/ui/qt/wireshark_application.h +++ b/ui/qt/wireshark_application.h @@ -93,6 +93,9 @@ public: bool isInitialized() { return initialized_; } const QIcon &normalIcon() const { return normal_icon_; } const QIcon &captureIcon() const { return capture_icon_; } + const QString &applicationName() const { return application_name_; } + const QString &windowTitleSeparator() const { return window_title_separator_; } + const QString &windowTitlePrefix() const { return window_title_prefix_; } QTranslator translator; QTranslator translatorQt; @@ -108,6 +111,9 @@ private: QSocketNotifier *if_notifier_; QIcon normal_icon_; QIcon capture_icon_; + static QString application_name_; + static QString window_title_separator_; + static QString window_title_prefix_; protected: bool event(QEvent *event); @@ -128,25 +134,6 @@ signals: void addressResolutionChanged(); void fieldsChanged(); -#if 0 - void captureCapturePrepared(capture_session *cap_session); - void captureCaptureUpdateStarted(capture_session *cap_session); - void captureCaptureUpdateContinue(capture_session *cap_session); - void captureCaptureUpdateFinished(capture_session *cap_session); - void captureCaptureFixedStarted(capture_session *cap_session); - void captureCaptureFixedFinished(capture_session *cap_session); - void captureCaptureStopping(capture_session *cap_session); - void captureCaptureFailed(capture_session *cap_session); -#endif - -#if 0 - void captureFileOpened(const capture_file *cf); - void captureFileReadStarted(const capture_file *cf); - void captureFileReadFinished(const capture_file *cf); - void captureFileClosing(const capture_file *cf); - void captureFileClosed(const capture_file *cf); -#endif - void openStatCommandDialog(const QString &menu_path, const char *arg, void *userdata); public slots: |