10#ifndef FOLLOW_STREAM_DIALOG_H
11#define FOLLOW_STREAM_DIALOG_H
61 void addCodecs(
const QMap<QString, QTextCodec *> &codecMap);
71 bool follow(QString previous_filter = QString(),
bool use_stream_index =
false,
unsigned stream_num = 0,
unsigned sub_stream_num = 0);
116 int turns()
const {
return turns_; }
148 void cbCharsetCurrentIndexChanged(
int idx);
154 void deltaComboBoxCurrentIndexChanged(
int idx);
160 void cbDirectionsCurrentIndexChanged(
int idx);
170 void leFindReturnPressed();
196 void useRegexFind(
bool use_regex);
202 void findText(
bool go_back =
true);
218 void fillHintLabel(
int pkt = 0);
224 void goToPacketForTextPos(
int pkt = 0);
230 void streamNumberSpinBoxValueChanged(
int stream_num);
236 void subStreamNumberSpinBoxValueChanged(
int sub_stream_num);
241 void buttonBoxRejected();
262 static void resetStream(
void *tapData);
267 void removeStreamControls();
272 void resetStream(
void);
278 void updateWidgets(
bool follow_in_progress);
283 void updateWidgets() { updateWidgets(
false); }
294 void showBuffer(QByteArray &
buffer,
size_t nchars,
bool is_from_server,
295 uint32_t packet_num,
nstime_t abs_ts, uint32_t *global_pos);
305 void readFollowStream();
319 void addText(QString text,
bool is_from_server, uint32_t packet_num,
bool colorize =
true);
322 Ui::FollowStreamDialog *ui;
325 QPushButton *b_filter_out_;
328 QPushButton *b_find_;
331 QPushButton *b_print_;
334 QPushButton *b_save_;
337 QPushButton *b_back_;
346 QString previous_filter_;
349 QString filter_out_filter_;
352 QString output_filter_;
355 int client_buffer_count_;
358 int server_buffer_count_;
361 int client_packet_count_;
364 int server_packet_count_;
367 uint32_t last_packet_;
370 bool last_from_server_;
379 bool use_regex_find_;
385 int previous_sub_stream_num_;
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
A dialog window for viewing the contents of a network stream.
Definition follow_stream_dialog.h:40
void goToPacket(int packet_num)
Signal emitted to navigate to a specific packet in the main window.
void updateFilter(QString filter, bool force)
Signal emitted to update the main display filter.
bool follow(QString previous_filter=QString(), bool use_stream_index=false, unsigned stream_num=0, unsigned sub_stream_num=0)
Initiates the stream following process.
Definition follow_stream_dialog.cpp:1017
const follow_info_t & followInfo() const
Retrieves the core follow_info structure.
Definition follow_stream_dialog.h:122
~FollowStreamDialog()
Destroys the FollowStreamDialog.
Definition follow_stream_dialog.cpp:167
virtual QString clientToServerString() const
Gets the string representation for the client-to-server direction.
Definition follow_stream_dialog.cpp:983
void captureFileClosed()
Slot triggered when the underlying capture file is closed.
Definition follow_stream_dialog.cpp:1181
void keyPressEvent(QKeyEvent *event)
Handles key press events in the dialog.
Definition follow_stream_dialog.cpp:651
bool eventFilter(QObject *obj, QEvent *event)
Filters events for the dialog text display.
Definition follow_stream_dialog.cpp:631
virtual QString bothDirectionsString() const
Gets the string representation for both directions.
Definition follow_stream_dialog.cpp:1009
void addCodecs(const QMap< QString, QTextCodec * > &codecMap)
Adds a map of character encodings to the dialog's codec selection.
Definition follow_stream_dialog.cpp:173
int server_packet_count() const
Gets the number of packets sent by the server.
Definition follow_stream_dialog.h:110
virtual QString labelHint(int pkt=0)
Generates a hint label based on the current packet.
Definition follow_stream_dialog.cpp:195
virtual QString serverToClientString() const
Gets the string representation for the server-to-client direction.
Definition follow_stream_dialog.cpp:957
int turns() const
Gets the number of direction changes (turns) in the stream.
Definition follow_stream_dialog.h:116
int client_packet_count() const
Gets the number of packets sent by the client.
Definition follow_stream_dialog.h:104
Base class for Wireshark specific dialogs that require interaction with a CaptureFile.
Definition wireshark_dialog.h:38
Aggregates all state for following and reassembling a single stream across both client and server dir...
Definition follow.h:65
Definition mcast_stream.h:30