aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/packet_list_record.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-02-23 17:56:14 -0800
committerGerald Combs <gerald@wireshark.org>2015-03-05 16:45:04 +0000
commitf2b35a180f12575bcd4198add4a6478b4ce41802 (patch)
treea14fcab1ca616169b1649f8192250bf0f9925130 /ui/qt/packet_list_record.h
parenta065fefe689a1c839fc74e5b253212f0efddfced (diff)
Qt: Add extra related packet indicator types.
Add the ability to set frame number types: none, request, or response. Use the types to draw different related packet indicators in the packet list. Track the conversation in PacketListRecord. Use it to draw dashed lines for unrelated frames. Set frame number types for DNS and ICMP. Instead of drawing a transparent QImage, alpha blend our foreground color and draw directly in our painter. Blend more toward the foreground color. Add FRAMENUM_TYPE to checkAPIs. Change-Id: I2495945bb436413e05d6ec697184a0b4fd5ad214 Reviewed-on: https://code.wireshark.org/review/7436 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/packet_list_record.h')
-rw-r--r--ui/qt/packet_list_record.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/qt/packet_list_record.h b/ui/qt/packet_list_record.h
index af2b251eb4..8fea32a0de 100644
--- a/ui/qt/packet_list_record.h
+++ b/ui/qt/packet_list_record.h
@@ -35,6 +35,8 @@
#include <QList>
#include <QVariant>
+struct conversation;
+
class PacketListRecord
{
public:
@@ -44,6 +46,7 @@ public:
frame_data *frameData() const { return fdata_; }
// packet_list->col_to_text in gtk/packet_list_store.c
static int textColumn(int column) { return cinfo_column_.value(column, -1); }
+ struct conversation *conversation() { return conv_; }
int columnTextSize(const char *str);
static void resetColumns(column_info *cinfo);
@@ -63,6 +66,9 @@ private:
/** Has this record been colorized? */
bool colorized_;
+ /** Conversation. Used by RelatedPacketDelegate */
+ struct conversation *conv_;
+
void dissect(capture_file *cap_file, bool dissect_color = false);
void cacheColumnStrings(column_info *cinfo);