0cee88d6d97cb7a9d73707e006a0e96ab1d5012b
[metze/wireshark/wip.git] / ui / qt / lbm_stream_dialog.h
1 /* lbm_stream_dialog.h
2  *
3  * Copyright (c) 2005-2014 Informatica Corporation. All Rights Reserved.
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
23
24 #ifndef LBM_STREAM_DIALOG_H
25 #define LBM_STREAM_DIALOG_H
26
27 #include <config.h>
28
29 #include <glib.h>
30
31 #include "cfile.h"
32 #include <epan/epan.h>
33 #include <epan/packet_info.h>
34 #include <QDialog>
35
36 namespace Ui
37 {
38     class LBMStreamDialog;
39 }
40
41 class LBMStreamDialogInfo;
42
43 class LBMStreamDialog : public QDialog
44 {
45         Q_OBJECT
46
47     public:
48         explicit LBMStreamDialog(QWidget * parent = 0, capture_file * cfile = NULL);
49         ~LBMStreamDialog(void);
50         Ui::LBMStreamDialog * getUI(void)
51         {
52             return (m_ui);
53         }
54
55     public slots:
56         void setCaptureFile(capture_file * cfile);
57
58     private:
59         Ui::LBMStreamDialog * m_ui;
60         LBMStreamDialogInfo * m_dialog_info;
61         capture_file * m_capture_file;
62
63         void fillTree(void);
64         static void resetTap(void * tap_data);
65         static gboolean tapPacket(void * tap_data, packet_info * pinfo, epan_dissect_t * edt, const void * stream_info);
66         static void drawTreeItems(void * tap_data);
67
68     private slots:
69         void closeDialog(void);
70         void on_applyFilterButton_clicked(void);
71 };
72
73 #endif
74
75 /*
76  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
77  *
78  * Local variables:
79  * c-basic-offset: 4
80  * tab-width: 8
81  * indent-tabs-mode: nil
82  * End:
83  *
84  * vi: set shiftwidth=4 tabstop=8 expandtab:
85  * :indentSize=4:tabSize=8:noTabs=true:
86  */