2014-11-12 22:24:16 +00:00
|
|
|
/* capture_file_properties_dialog.h
|
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
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
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
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines
|
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* ex: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|