| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
capture_file_properties_dialog.h
Go to the documentation of this file.
1
11
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
34 namespace Ui {
35 class CaptureFilePropertiesDialog;
36}
37
38 class QAbstractButton;
39
43 class CaptureFilePropertiesDialog : public WiresharkDialog
44{
45 Q_OBJECT
46
47 public:
53 explicit CaptureFilePropertiesDialog(QWidget &parent, CaptureFile& capture_file);
54
58 virtual ~CaptureFilePropertiesDialog();
59
60 protected:
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:
125 void captureCommentChanged();
126
127 protected slots:
132 void changeEvent(QEvent* event) override;
133
134 private:
136 Ui::CaptureFilePropertiesDialog *ui;
137
142 QString summaryToHtml();
143
147 void fillDetails();
148
149 private slots:
153 void updateWidgets() override;
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
capture.h
capture_globals.h
capture_file
struct _capture_file capture_file
Represents a capture file and its associated metadata.
CaptureFile
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
CaptureFilePropertiesDialog::getRowTitleString
virtual QString getRowTitleString() const
Retrieves the title string for the row.
Definition capture_file_properties_dialog.cpp:107
CaptureFilePropertiesDialog::getFirstItemString
virtual QString getFirstItemString() const
Retrieves the string representing the first item.
Definition capture_file_properties_dialog.cpp:81
CaptureFilePropertiesDialog::getCreatedByString
virtual QString getCreatedByString() const
Retrieves the string showing who created the file or capture.
Definition capture_file_properties_dialog.cpp:122
CaptureFilePropertiesDialog::getStartTextString
virtual QString getStartTextString() const
Retrieves the start text string for the dialog.
Definition capture_file_properties_dialog.cpp:76
CaptureFilePropertiesDialog::captureCommentChanged
void captureCommentChanged()
Signal emitted when a capture comment has been changed.
CaptureFilePropertiesDialog::getAvgItemSizeString
virtual QString getAvgItemSizeString() const
Retrieves the string displaying the average item size.
Definition capture_file_properties_dialog.cpp:112
CaptureFilePropertiesDialog::getEndTextString
virtual QString getEndTextString() const
Retrieves the end text string for the dialog.
Definition capture_file_properties_dialog.cpp:91
CaptureFilePropertiesDialog::changeEvent
void changeEvent(QEvent *event) override
Handles state change events for the dialog.
Definition capture_file_properties_dialog.cpp:695
CaptureFilePropertiesDialog::getDroppedItemString
virtual QString getDroppedItemString() const
Retrieves the string indicating dropped items.
Definition capture_file_properties_dialog.cpp:96
CaptureFilePropertiesDialog::getItemSizeLimitString
virtual QString getItemSizeLimitString() const
Retrieves the string displaying the item size limit.
Definition capture_file_properties_dialog.cpp:101
CaptureFilePropertiesDialog::getItemCommentString
virtual QString getItemCommentString() const
Retrieves the string associated with the item comment.
Definition capture_file_properties_dialog.cpp:117
CaptureFilePropertiesDialog::~CaptureFilePropertiesDialog
virtual ~CaptureFilePropertiesDialog()
Destroys the CaptureFilePropertiesDialog.
Definition capture_file_properties_dialog.cpp:71
CaptureFilePropertiesDialog::CaptureFilePropertiesDialog
CaptureFilePropertiesDialog(QWidget &parent, CaptureFile &capture_file)
Constructs a new CaptureFilePropertiesDialog.
Definition capture_file_properties_dialog.cpp:36
CaptureFilePropertiesDialog::getLastItemString
virtual QString getLastItemString() const
Retrieves the string representing the last item.
Definition capture_file_properties_dialog.cpp:86
WiresharkDialog::updateWidgets
virtual void updateWidgets()
Updates the state and contents of the dialog's widgets.
Definition wireshark_dialog.cpp:92
WiresharkDialog::WiresharkDialog
WiresharkDialog(QWidget &parent, CaptureFile &capture_file)
Constructs a new WiresharkDialog object.
Definition wireshark_dialog.cpp:30
file.h
strutil.h
wireshark_dialog.h
wtap.h