10#ifndef WIRESHARK_DIALOG_H
11#define WIRESHARK_DIALOG_H
61 virtual void keyPressEvent(QKeyEvent *event) { QDialog::keyPressEvent(event); }
134 const char *filter,
unsigned flags,
135 tap_reset_cb tap_reset,
136 tap_packet_cb tap_packet,
137 tap_draw_cb tap_draw);
189 void dialogCleanup(
bool closeDialog =
false);
195 QList<void *> tap_listeners_;
Represents an event occurring during a capture or file operation.
Definition capture_event.h:24
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
A dialog that remembers its geometry and splitter state.
Definition geometry_state_dialog.h:20
Base class for Wireshark specific dialogs that require interaction with a CaptureFile.
Definition wireshark_dialog.h:38
bool fileClosed() const
Checks if the capture file has been closed.
Definition wireshark_dialog.h:54
bool dialogClosed() const
Check to see if the user has closed (and not minimized) the dialog.
Definition wireshark_dialog.h:152
CaptureFile & cap_file_
Reference to the underlying capture file.
Definition wireshark_dialog.h:115
virtual void removeTapListeners()
Remove all tap listeners registered via registerTapListener.
Definition wireshark_dialog.cpp:160
virtual void updateWidgets()
Updates the state and contents of the dialog's widgets.
Definition wireshark_dialog.cpp:92
bool registerTapListener(const char *tap_name, void *tap_data, const char *filter, unsigned flags, tap_reset_cb tap_reset, tap_packet_cb tap_packet, tap_draw_cb tap_draw)
Convenience wrapper for register_tap_listener. Tap listeners registered via this function are automat...
Definition wireshark_dialog.cpp:97
int retapDepth() const
Check to see if we're currently retapping. If this is positive, tapping will fail in process_specifie...
Definition wireshark_dialog.h:159
virtual void accept()
Accepts the dialog.
Definition wireshark_dialog.cpp:43
bool file_closed_
Flag indicating if the capture file has been closed.
Definition wireshark_dialog.h:146
virtual void captureFileClosed()
Called when the capture file was closed. This can be used to enable or disable widgets according to t...
Definition wireshark_dialog.cpp:173
virtual void reject()
Rejects the dialog.
Definition wireshark_dialog.cpp:50
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:56
virtual void captureFileClosing()
Called when the capture file is about to close. This can be used to disconnect taps and similar actio...
Definition wireshark_dialog.cpp:167
void captureEvent(CaptureEvent e)
Handles capture events.
Definition wireshark_dialog.cpp:112
const QString & windowSubtitle()
Retrieves the current window subtitle.
Definition wireshark_dialog.h:106
virtual void beginRetapPackets()
Mark the start of a code block that retaps packets. If the user closes the dialog while tapping,...
Definition wireshark_dialog.cpp:149
virtual void endRetapPackets()
Mark the end of a code block that retaps packets. If the user has closed the dialog it will be destro...
Definition wireshark_dialog.cpp:154
virtual void keyPressEvent(QKeyEvent *event)
Handles key press events.
Definition wireshark_dialog.h:61
Represents a capture file and its associated metadata.
Definition cfile.h:84