10 #ifndef WIRESHARK_DIALOG_H 11 #define WIRESHARK_DIALOG_H 29 #include "capture_file.h" 30 #include "geometry_state_dialog.h" 62 virtual void keyPressEvent(QKeyEvent *event) { QDialog::keyPressEvent(event); }
63 virtual void accept();
64 virtual void reject();
73 const QString &windowSubtitle() {
return subtitle_; }
74 virtual void updateWidgets();
94 const char *filter, guint flags,
95 void (*tap_reset)(
void *tapdata),
97 void (*tap_draw)(
void *tap_data));
122 virtual void captureFileClosed();
128 void setWindowTitleFromSubtitle();
130 void tryDeleteLater();
133 QList<void *> tap_listeners_;
140 #endif // WIRESHARK_DIALOG_H void setWindowSubtitle(const QString &subtitle)
Set the window subtitle, e.g. "Foo Timeouts". The subtitle and file name will be added to the dialog ...
Definition: wireshark_dialog.cpp:70
bool registerTapListener(const char *tap_name, void *tap_data, const char *filter, guint flags, void(*tap_reset)(void *tapdata), gboolean(*tap_packet)(void *tapdata, struct _packet_info *pinfo, struct epan_dissect *edt, const void *data), void(*tap_draw)(void *tap_data))
Convenience wrapper for register_tap_listener. Tap listeners registered via this function are automat...
Definition: wireshark_dialog.cpp:103
Definition: geometry_state_dialog.h:15
Definition: packet_info.h:44
bool file_closed_
true if the file has been closed, false otherwise.
Definition: wireshark_dialog.h:108
virtual void removeTapListeners()
Remove all tap listeners registered via registerTapListener.
Definition: wireshark_dialog.cpp:165
Definition: capture_event.h:19
virtual void captureFileClosing()
Called when the capture file is about to close. This can be used to enable or disable widgets accordi...
Definition: wireshark_dialog.cpp:172
void beginRetapPackets()
Mark the start of a code block that retaps packets. If the user closes the dialog while tapping...
Definition: wireshark_dialog.cpp:154
Definition: epan_dissect.h:28
Definition: wireshark_dialog.h:32
virtual void endRetapPackets()
Mark the end of a code block that retaps packets. If the user has closed the dialog it will be desroy...
Definition: wireshark_dialog.cpp:159
Definition: capture_file.h:22
bool dialogClosed()
Check to see if the user has closed (and not minimized) the dialog.
Definition: wireshark_dialog.h:114