2021-11-30 13:01:36 +00:00
|
|
|
/** @file
|
2013-07-09 18:08:40 +00:00
|
|
|
*
|
|
|
|
* GSoC 2013 - QtShark
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-04-30 07:47:58 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2013-07-09 18:08:40 +00:00
|
|
|
|
2014-11-12 22:24:16 +00:00
|
|
|
#ifndef CAPTURE_FILE_PROPERTIES_DIALOG_H
|
|
|
|
#define CAPTURE_FILE_PROPERTIES_DIALOG_H
|
2013-07-09 18:08:40 +00:00
|
|
|
|
2015-01-03 20:52:54 +00:00
|
|
|
#include <config.h>
|
2013-07-09 18:08:40 +00:00
|
|
|
|
2014-12-22 23:51:36 +00:00
|
|
|
#include <glib.h>
|
|
|
|
|
2013-07-09 18:08:40 +00:00
|
|
|
#include <string.h>
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
#include <epan/strutil.h>
|
|
|
|
#include <wiretap/wtap.h>
|
|
|
|
|
|
|
|
#include "file.h"
|
|
|
|
|
|
|
|
#ifdef HAVE_LIBPCAP
|
2014-06-30 05:38:29 +00:00
|
|
|
#include "ui/capture.h"
|
2013-07-09 18:08:40 +00:00
|
|
|
#include "ui/capture_globals.h"
|
2014-07-04 07:24:02 +00:00
|
|
|
#endif
|
2013-07-09 18:08:40 +00:00
|
|
|
|
2014-12-22 23:51:36 +00:00
|
|
|
#include "wireshark_dialog.h"
|
|
|
|
|
2013-08-29 22:15:40 +00:00
|
|
|
#include <QClipboard>
|
2013-07-09 18:08:40 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
2014-12-20 22:18:05 +00:00
|
|
|
class CaptureFilePropertiesDialog;
|
2013-07-09 18:08:40 +00:00
|
|
|
}
|
|
|
|
|
2014-11-12 22:24:16 +00:00
|
|
|
class QAbstractButton;
|
|
|
|
|
2014-12-22 23:51:36 +00:00
|
|
|
class CaptureFilePropertiesDialog : public WiresharkDialog
|
2013-07-09 18:08:40 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2014-02-25 20:42:35 +00:00
|
|
|
|
2013-07-09 18:08:40 +00:00
|
|
|
public:
|
2014-12-22 23:51:36 +00:00
|
|
|
explicit CaptureFilePropertiesDialog(QWidget &parent, CaptureFile& capture_file);
|
2014-11-12 22:24:16 +00:00
|
|
|
~CaptureFilePropertiesDialog();
|
2013-07-09 18:08:40 +00:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void captureCommentChanged();
|
|
|
|
|
|
|
|
protected slots:
|
2013-12-21 16:55:43 +00:00
|
|
|
void changeEvent(QEvent* event);
|
2013-07-09 18:08:40 +00:00
|
|
|
|
2014-02-25 20:42:35 +00:00
|
|
|
|
2013-07-09 18:08:40 +00:00
|
|
|
private:
|
2014-12-20 22:18:05 +00:00
|
|
|
Ui::CaptureFilePropertiesDialog *ui;
|
2014-11-12 22:24:16 +00:00
|
|
|
|
|
|
|
QString summaryToHtml();
|
2015-08-21 15:46:43 +00:00
|
|
|
void fillDetails();
|
2013-07-23 08:56:56 +00:00
|
|
|
|
2014-11-12 22:24:16 +00:00
|
|
|
private slots:
|
|
|
|
void updateWidgets();
|
|
|
|
void on_buttonBox_helpRequested();
|
|
|
|
void on_buttonBox_accepted();
|
|
|
|
void on_buttonBox_clicked(QAbstractButton *button);
|
|
|
|
void on_buttonBox_rejected();
|
2013-07-09 18:08:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|