HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / ui / qt / summary_dialog.h
blobbe58d53fb1df8e2b345dffa62187953a1f60525c
1 /* summary_dialog.h
3 * $Id$
5 * GSoC 2013 - QtShark
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #ifndef SUMMARY_DIALOG_H
27 #define SUMMARY_DIALOG_H
29 #include "config.h"
31 #include <string.h>
32 #include <time.h>
34 #include "qt_ui_utils.h"
36 #include <epan/strutil.h>
37 #include <wiretap/wtap.h>
39 #include "globals.h"
40 #include "file.h"
41 #include "summary.h"
43 #include "version_info.h"
45 #ifdef HAVE_LIBPCAP
46 #include "capture.h"
47 #include "ui/capture_globals.h"
48 #include "capture-pcap-util.h"
49 #endif
51 #include <QDialog>
52 #include <QClipboard>
54 namespace Ui {
55 class SummaryDialog;
58 class SummaryDialog : public QDialog
60 Q_OBJECT
62 public:
63 explicit SummaryDialog(QWidget *parent = 0);
64 ~SummaryDialog();
67 QString TimeToString(time_t ti_time);
68 void UpdateValues();
69 QString SummaryToString();
71 signals:
72 void captureCommentChanged();
75 protected slots:
76 void RefreshData();
77 void SaveComment();
78 void HelpButton();
79 void CopyComment();
80 void on_tabWidget_currentChanged(int index);
83 private:
84 Ui::SummaryDialog *ui;
86 QPushButton *bRefresh;
87 QPushButton *bCopyComment;
89 summary_tally summary_;
92 #endif
95 * Editor modelines
97 * Local Variables:
98 * c-basic-offset: 4
99 * tab-width: 8
100 * indent-tabs-mode: nil
101 * End:
103 * ex: set shiftwidth=4 tabstop=8 expandtab:
104 * :indentSize=4:tabSize=8:noTabs=true: