1 /* conversation_colorize_action.cpp
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
12 #include <epan/packet_info.h>
13 #include <epan/proto_data.h>
14 #include <epan/packet.h>
15 #include <wsutil/utf8_entities.h>
16 #include "export_object_action.h"
20 #include <ui/qt/utils/qt_ui_utils.h>
22 ExportObjectAction::ExportObjectAction(QObject
*parent
, register_eo_t
*eo
) :
27 setText(QStringLiteral("%1%2").arg(proto_get_protocol_short_name(find_protocol_by_id(get_eo_proto_id(eo
)))).arg(UTF8_HORIZONTAL_ELLIPSIS
));
31 void ExportObjectAction::captureFileEvent(CaptureEvent e
)
33 if (e
.captureContext() == CaptureEvent::File
)
35 if (e
.eventType() == CaptureEvent::Opened
)
37 else if (e
.eventType() == CaptureEvent::Closed
)