Represents a single record within the packet list.
More...
#include <packet_list_record.h>
|
| static int | textColumn (int column) |
| | packet_list->col_to_text in gtk/packet_list_store.c
|
| |
|
static void | invalidateAllRecords () |
| | Clears the column text cache for all records.
|
| |
| static void | setMaxCache (int cost) |
| | Sets the maximum capacity of the column text cache.
|
| |
| static void | resetColumns (column_info *cinfo) |
| | Resets the columns configuration.
|
| |
|
static void | resetColorization () |
| | Increments the global color version to reset colorization for all.
|
| |
| static void | setDissectionPaused (bool paused) |
| | Sets whether packet dissection is currently paused.
|
| |
Represents a single record within the packet list.
◆ PacketListRecord()
| PacketListRecord::PacketListRecord |
( |
frame_data * |
frameData | ) |
|
Constructs a PacketListRecord.
- Parameters
-
| frameData | Pointer to the frame data for this record. |
◆ colorFilterCount()
| int PacketListRecord::colorFilterCount |
( |
| ) |
const |
|
inline |
Get count of matching color filters.
- Returns
- The number of matched color filters.
◆ colorized()
| bool PacketListRecord::colorized |
( |
| ) |
|
|
inline |
Checks if the record is currently colorized up to date.
- Returns
- True if properly colorized, false otherwise.
◆ columnString()
| const QString PacketListRecord::columnString |
( |
capture_file * |
cap_file, |
|
|
int |
column, |
|
|
bool |
colorized = false |
|
) |
| |
Return the string value for a column. Data is cached if possible.
- Parameters
-
| cap_file | The capture file containing the packet. |
| column | The column index. |
| colorized | Whether to fetch the colorized string. |
- Returns
- The string value for the specified column.
◆ columnTextSize()
| int PacketListRecord::columnTextSize |
( |
const char * |
str | ) |
|
Calculates the size of the column text.
- Parameters
-
| str | The string to measure. |
- Returns
- The text size in appropriate units.
◆ conversation()
| unsigned int PacketListRecord::conversation |
( |
| ) |
|
|
inline |
Retrieves the conversation index.
- Returns
- The conversation index.
◆ ensureColorized()
| void PacketListRecord::ensureColorized |
( |
capture_file * |
cap_file | ) |
|
Ensure that the record is colorized.
- Parameters
-
| cap_file | The capture file containing the packet. |
◆ expertSeverity()
| uint32_t PacketListRecord::expertSeverity |
( |
| ) |
const |
|
inline |
Gets the highest expert information severity found in the packet.
- Returns
- The expert severity level.
◆ frameData()
| frame_data * PacketListRecord::frameData |
( |
| ) |
const |
|
inline |
Gets the underlying frame data.
- Returns
- Pointer to the frame data.
◆ hasMultipleColors()
| bool PacketListRecord::hasMultipleColors |
( |
| ) |
const |
|
inline |
Check if packet has multiple color matches.
- Returns
- True if there are multiple matches, false otherwise.
◆ lineCount()
| int PacketListRecord::lineCount |
( |
| ) |
|
|
inline |
Gets the number of lines this record spans.
- Returns
- The line count.
◆ lineCountChanged()
| int PacketListRecord::lineCountChanged |
( |
| ) |
|
|
inline |
Gets whether the line count has changed.
- Returns
- Non-zero if changed, zero otherwise.
◆ matchingColorFilters()
| const GSList * PacketListRecord::matchingColorFilters |
( |
| ) |
const |
|
inline |
Get list of all matching color filters.
- Returns
- Pointer to the GSList of matching color filters.
◆ resetColumns()
| void PacketListRecord::resetColumns |
( |
column_info * |
cinfo | ) |
|
|
static |
Resets the columns configuration.
- Parameters
-
| cinfo | Pointer to the new column information. |
◆ row()
| int PacketListRecord::row |
( |
| ) |
const |
|
inline |
Gets the logical row index of this record.
- Returns
- The row index.
◆ setDissectionPaused()
| static void PacketListRecord::setDissectionPaused |
( |
bool |
paused | ) |
|
|
inlinestatic |
Sets whether packet dissection is currently paused.
- Parameters
-
| paused | True to pause dissection, false to resume. |
◆ setMaxCache()
| static void PacketListRecord::setMaxCache |
( |
int |
cost | ) |
|
|
inlinestatic |
Sets the maximum capacity of the column text cache.
In Qt 6, QCache maxCost is a qsizetype, but the QAbstractItemModel number of rows is still an int, so we're limited to INT_MAX anyway.
- Parameters
-
| cost | The maximum cost (capacity) for the cache. |
◆ setRow()
| void PacketListRecord::setRow |
( |
int |
row | ) |
|
|
inline |
Sets the logical row index for this record.
- Parameters
-
◆ textColumn()
| static int PacketListRecord::textColumn |
( |
int |
column | ) |
|
|
inlinestatic |
packet_list->col_to_text in gtk/packet_list_store.c
- Parameters
-
- Returns
- The corresponding text column.
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/models/packet_list_record.h
- /builds/wireshark/wireshark/ui/qt/models/packet_list_record.cpp