Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / export_object_action.cpp
blobcc289f563de65904638e9f693ed1695b2f1a3811
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
8 */
10 #include <config.h>
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"
18 #include <QMenu>
20 #include <ui/qt/utils/qt_ui_utils.h>
22 ExportObjectAction::ExportObjectAction(QObject *parent, register_eo_t *eo) :
23 QAction(parent),
24 eo_(eo)
26 if (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)
36 setEnabled(true);
37 else if (e.eventType() == CaptureEvent::Closed)
38 setEnabled(false);