Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / capture_event.h
blob3959ed1786fdbdae3164c38dc15499ae25c0df97
1 /** @file
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 #ifndef CAPTURE_EVENT_H
11 #define CAPTURE_EVENT_H
13 #include <QEvent>
14 #include <QString>
16 typedef struct _capture_session capture_session;
18 struct _packet_info;
20 class CaptureEvent
22 public:
23 enum Context {
24 #ifdef HAVE_LIBPCAP
25 Capture = 0x0001,
26 Update = 0x0100 | Capture,
27 Fixed = 0x0200 | Capture,
28 #endif
29 File = 0x0002,
30 Reload = 0x0100 | File,
31 Rescan = 0x0200 | File,
32 Save = 0x0400 | File,
33 Retap = 0x0800 | File,
34 Merge = 0x1000 | File
37 enum EventType {
38 Opened = 0x0001,
39 Started = 0x0002,
40 Finished = 0x0004,
41 Closing = 0x0008,
42 Closed = 0x0010,
43 Failed = 0x0020,
44 Stopped = 0x0040,
45 Flushed = 0x0080,
46 Prepared = 0x0100,
47 Continued = 0x0200,
48 Stopping = 0x0400
51 CaptureEvent(Context ctx, EventType evt);
52 CaptureEvent(Context ctx, EventType evt, QString file);
53 CaptureEvent(Context ctx, EventType evt, capture_session * session);
55 CaptureEvent(const CaptureEvent &ce);
57 Context captureContext() const;
58 EventType eventType() const;
59 QString filePath() const;
60 capture_session * capSession() const;
62 private:
63 Context _ctx;
64 EventType _evt;
65 QString _filePath;
66 capture_session * _session;
69 #endif // CAPTURE_EVENT_H