10#ifndef DIS_STREAM_DIALOG_H
11#define DIS_STREAM_DIALOG_H
15#include <QDialogButtonBox>
19#ifdef QT_MULTIMEDIA_LIB
26#include "ui/tap-dis-common.h"
101 class DisStreamTreeWidgetItem :
public QTreeWidgetItem {
103 using QTreeWidgetItem::QTreeWidgetItem;
109 bool operator<(
const QTreeWidgetItem &other)
const override;
116 static std::mutex mutex_;
119 QTreeWidget *stream_tree_;
122 QDialogButtonBox *button_box_;
125 QPushButton *filter_button_;
128 QPushButton *play_button_;
131 QPushButton *stop_button_;
134 QPushButton *analyze_button_;
140 QObject *packet_list_;
142#ifdef QT_MULTIMEDIA_LIB
144 class DisAudioStream *audio_stream_;
148 disstream_tapinfo_t tapinfo_;
154 static void tapReset(disstream_tapinfo_t *tapinfo);
160 static void tapDraw(disstream_tapinfo_t *tapinfo);
166 disstream_info_t *selectedStream()
const;
171 void updateStreams();
182 void onStreamSelectionChanged();
189 void onStreamItemDoubleClicked(QTreeWidgetItem *item,
int column);
194 void onPrepareFilter();
199 void onAnalyzeStream();
201#ifdef QT_MULTIMEDIA_LIB
216 void onPlaybackStateChanged(QAudio::State state _U_);
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 for viewing and managing DIS (Distributed Interactive Simulation) streams from a capture fil...
Definition dis_stream_dialog.h:34
void goToPacket(int packet_num)
Signal emitted to navigate the main UI to a specific packet number.
void captureFileClosing() override
Slot triggered when the capture file begins closing.
Definition dis_stream_dialog.cpp:185
void captureFileClosed() override
Slot triggered when the capture file is fully closed.
Definition dis_stream_dialog.cpp:195
void operator=(const DisStreamDialog &)=delete
Deleted assignment operator to enforce singleton pattern.
DisStreamDialog(DisStreamDialog &other)=delete
Deleted copy constructor to enforce singleton pattern.
void updateFilter(QString filter, bool force=false)
Signal emitted to update the application's display filter.
~DisStreamDialog()
Destroys the DisStreamDialog.
Definition dis_stream_dialog.cpp:171
static DisStreamDialog * openDisStreamDialog(QWidget &parent, CaptureFile &cf, QObject *packet_list)
Opens or retrieves the singleton instance of the DisStreamDialog.
Definition dis_stream_dialog.cpp:72
virtual void updateWidgets()
Updates the state and contents of the dialog's widgets.
Definition wireshark_dialog.cpp:92
WiresharkDialog(QWidget &parent, CaptureFile &capture_file)
Constructs a new WiresharkDialog object.
Definition wireshark_dialog.cpp:30