Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
capture_file_properties_dialog.h
Go to the documentation of this file.
1
12#ifndef CAPTURE_FILE_PROPERTIES_DIALOG_H
13#define CAPTURE_FILE_PROPERTIES_DIALOG_H
14
15#include <config.h>
16
17#include <string.h>
18#include <time.h>
19
20#include <epan/strutil.h>
21#include <wiretap/wtap.h>
22
23#include "file.h"
24
25#ifdef HAVE_LIBPCAP
26 #include "ui/capture.h"
27 #include "ui/capture_globals.h"
28#endif
29
30#include "wireshark_dialog.h"
31
32#include <QClipboard>
33
34namespace Ui {
36}
37
38class QAbstractButton;
39
44{
45 Q_OBJECT
46
47public:
53 explicit CaptureFilePropertiesDialog(QWidget &parent, CaptureFile& capture_file);
54
59
60protected:
65 virtual QString getStartTextString() const;
66
71 virtual QString getFirstItemString() const;
72
77 virtual QString getLastItemString() const;
78
83 virtual QString getEndTextString() const;
84
89 virtual QString getDroppedItemString() const;
90
95 virtual QString getItemSizeLimitString() const;
96
101 virtual QString getRowTitleString() const;
102
107 virtual QString getAvgItemSizeString() const;
108
113 virtual QString getItemCommentString() const;
114
119 virtual QString getCreatedByString() const;
120
121signals:
126
127protected slots:
132 void changeEvent(QEvent* event);
133
134private:
136 Ui::CaptureFilePropertiesDialog *ui;
137
142 QString summaryToHtml();
143
147 void fillDetails();
148
149private slots:
153 void updateWidgets();
154
158 void addCaptureComment();
159
163 void on_buttonBox_helpRequested();
164
169 void on_buttonBox_clicked(QAbstractButton *button);
170
174 void on_buttonBox_rejected();
175};
176
177#endif
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
A dialog for displaying and modifying properties and statistics of a capture file.
Definition capture_file_properties_dialog.h:44
virtual QString getRowTitleString() const
Retrieves the title string for the row.
Definition capture_file_properties_dialog.cpp:107
virtual QString getFirstItemString() const
Retrieves the string representing the first item.
Definition capture_file_properties_dialog.cpp:81
virtual QString getCreatedByString() const
Retrieves the string showing who created the file or capture.
Definition capture_file_properties_dialog.cpp:122
virtual QString getStartTextString() const
Retrieves the start text string for the dialog.
Definition capture_file_properties_dialog.cpp:76
void captureCommentChanged()
Signal emitted when a capture comment has been changed.
virtual QString getAvgItemSizeString() const
Retrieves the string displaying the average item size.
Definition capture_file_properties_dialog.cpp:112
virtual QString getEndTextString() const
Retrieves the end text string for the dialog.
Definition capture_file_properties_dialog.cpp:91
virtual QString getDroppedItemString() const
Retrieves the string indicating dropped items.
Definition capture_file_properties_dialog.cpp:96
virtual QString getItemSizeLimitString() const
Retrieves the string displaying the item size limit.
Definition capture_file_properties_dialog.cpp:101
virtual QString getItemCommentString() const
Retrieves the string associated with the item comment.
Definition capture_file_properties_dialog.cpp:117
virtual ~CaptureFilePropertiesDialog()
Destroys the CaptureFilePropertiesDialog.
Definition capture_file_properties_dialog.cpp:71
void changeEvent(QEvent *event)
Handles state change events for the dialog.
Definition capture_file_properties_dialog.cpp:695
virtual QString getLastItemString() const
Retrieves the string representing the last item.
Definition capture_file_properties_dialog.cpp:86
Base class for Wireshark specific dialogs that require interaction with a CaptureFile.
Definition wireshark_dialog.h:38
Represents a capture file and its associated metadata.
Definition cfile.h:84