Wireshark
2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ui
qt
models
packet_list_record.h
1
/* packet_list_record.h
2
*
3
* Wireshark - Network traffic analyzer
4
* By Gerald Combs <gerald@wireshark.org>
5
* Copyright 1998 Gerald Combs
6
*
7
* SPDX-License-Identifier: GPL-2.0-or-later
8
*/
9
10
#ifndef PACKET_LIST_RECORD_H
11
#define PACKET_LIST_RECORD_H
12
13
#include <config.h>
14
15
#include <glib.h>
16
17
#include "cfile.h"
18
19
#include <
epan/column-info.h
>
20
#include <epan/packet.h>
21
22
#include <QByteArray>
23
#include <QList>
24
#include <QVariant>
25
26
struct
conversation
;
27
struct
_GStringChunk;
28
29
class
ColumnTextList
;
30
31
class
PacketListRecord
32
{
33
public
:
34
PacketListRecord
(
frame_data
*frameData);
35
36
// Allocate our records using wmem.
37
static
void
*
operator
new
(
size_t
size);
38
static
void
operator
delete
(
void
*) {}
39
40
// Return the string value for a column. Data is cached if possible.
41
const
QByteArray columnString(
capture_file
*cap_file,
int
column,
bool
colorized =
false
);
42
frame_data
*frameData()
const
{
return
fdata_; }
43
// packet_list->col_to_text in gtk/packet_list_store.c
44
static
int
textColumn(
int
column) {
return
cinfo_column_.value(column, -1); }
45
bool
colorized() {
return
colorized_; }
46
struct
conversation
*
conversation
() {
return
conv_; }
47
48
int
columnTextSize(
const
char
*str);
49
static
void
invalidateAllRecords() { col_data_ver_++; }
50
static
void
resetColumns(
column_info
*cinfo);
51
void
resetColorized();
52
inline
int
lineCount() {
return
lines_; }
53
inline
int
lineCountChanged() {
return
line_count_changed_; }
54
55
static
void
clearStringPool();
56
57
private
:
59
ColumnTextList
*col_text_;
60
61
frame_data
*fdata_;
62
int
lines_;
63
bool
line_count_changed_;
64
static
QMap<int, int> cinfo_column_;
65
67
static
unsigned
col_data_ver_;
68
unsigned
data_ver_;
70
bool
colorized_;
71
73
struct
conversation
*conv_;
74
75
void
dissect(
capture_file
*cap_file,
bool
dissect_color =
false
);
76
void
cacheColumnStrings(
column_info
*cinfo);
77
78
static
struct
_GStringChunk *string_pool_;
79
80
};
81
82
#endif // PACKET_LIST_RECORD_H
83
84
/*
85
* Editor modelines
86
*
87
* Local Variables:
88
* c-basic-offset: 4
89
* tab-width: 8
90
* indent-tabs-mode: nil
91
* End:
92
*
93
* ex: set shiftwidth=4 tabstop=8 expandtab:
94
* :indentSize=4:tabSize=8:noTabs=true:
95
*/
column-info.h
epan_column_info
Definition:
column-info.h:51
PacketListRecord
Definition:
packet_list_record.h:31
conversation
Definition:
conversation.h:89
_frame_data
Definition:
frame_data.h:53
ColumnTextList
Definition:
packet_list_record.cpp:26
_capture_file
Definition:
cfile.h:58
Generated by
1.8.11