| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
capture_event.h
Go to the documentation of this file.
1
9
10#ifndef CAPTURE_EVENT_H
11#define CAPTURE_EVENT_H
12
13#include <QEvent>
14#include <QString>
15
16 typedef struct _capture_session capture_session;
17
18 struct _packet_info;
19
23 class CaptureEvent
24{
25 public:
29 enum Context {
30#ifdef HAVE_LIBPCAP
31 Capture = 0x0001,
32 Update = 0x0100 | Capture,
33 Fixed = 0x0200 | Capture,
34#endif
35 File = 0x0002,
36 Reload = 0x0100 | File,
37 Rescan = 0x0200 | File,
38 Save = 0x0400 | File,
39 Retap = 0x0800 | File,
40 Merge = 0x1000 | File
41 };
42
46 enum EventType {
47 Opened = 0x0001,
48 Started = 0x0002,
49 Finished = 0x0004,
50 Closing = 0x0008,
51 Closed = 0x0010,
52 Failed = 0x0020,
53 Stopped = 0x0040,
54 Flushed = 0x0080,
55 Prepared = 0x0100,
56 Continued = 0x0200,
57 Stopping = 0x0400,
58 Toolbar = 0x0800
59 };
60
66 CaptureEvent(Context ctx, EventType evt);
67
74 CaptureEvent(Context ctx, EventType evt, QString file);
75
82 CaptureEvent(Context ctx, EventType evt, capture_session * session);
83
88 CaptureEvent(const CaptureEvent &ce);
89
94 Context captureContext() const;
95
100 EventType eventType() const;
101
106 QString filePath() const;
107
112 capture_session * capSession() const;
113
114 private:
116 Context _ctx;
117
119 EventType _evt;
120
122 QString _filePath;
123
125 capture_session * _session;
126};
127
128#endif // CAPTURE_EVENT_H
capture_session
struct _capture_session capture_session
Opaque handle representing an active or pending capture session.
CaptureEvent
Represents an event occurring during a capture or file operation.
Definition capture_event.h:24
CaptureEvent::Context
Context
Defines the operational context of the event.
Definition capture_event.h:29
CaptureEvent::File
@ File
Definition capture_event.h:35
CaptureEvent::Save
@ Save
Definition capture_event.h:38
CaptureEvent::Rescan
@ Rescan
Definition capture_event.h:37
CaptureEvent::Reload
@ Reload
Definition capture_event.h:36
CaptureEvent::Merge
@ Merge
Definition capture_event.h:40
CaptureEvent::Retap
@ Retap
Definition capture_event.h:39
CaptureEvent::filePath
QString filePath() const
Retrieves the associated file path.
Definition capture_file.cpp:67
CaptureEvent::captureContext
Context captureContext() const
Retrieves the context of the capture event.
Definition capture_file.cpp:61
CaptureEvent::EventType
EventType
Defines the specific type of event.
Definition capture_event.h:46
CaptureEvent::Closed
@ Closed
Definition capture_event.h:51
CaptureEvent::Toolbar
@ Toolbar
Definition capture_event.h:58
CaptureEvent::Stopping
@ Stopping
Definition capture_event.h:57
CaptureEvent::Stopped
@ Stopped
Definition capture_event.h:53
CaptureEvent::Flushed
@ Flushed
Definition capture_event.h:54
CaptureEvent::Failed
@ Failed
Definition capture_event.h:52
CaptureEvent::Finished
@ Finished
Definition capture_event.h:49
CaptureEvent::Continued
@ Continued
Definition capture_event.h:56
CaptureEvent::Closing
@ Closing
Definition capture_event.h:50
CaptureEvent::Opened
@ Opened
Definition capture_event.h:47
CaptureEvent::Started
@ Started
Definition capture_event.h:48
CaptureEvent::Prepared
@ Prepared
Definition capture_event.h:55
CaptureEvent::eventType
EventType eventType() const
Retrieves the type of the capture event.
Definition capture_file.cpp:64
CaptureEvent::CaptureEvent
CaptureEvent(Context ctx, EventType evt)
Constructs a new CaptureEvent with a specific context and event type.
Definition capture_file.cpp:31
CaptureEvent::capSession
capture_session * capSession() const
Retrieves the associated capture session.
Definition capture_file.cpp:70
_capture_session
Opaque handle representing an active or pending capture session.
Definition capture_session.h:156
_packet_info
Represents the metadata and indexing information for a single captured frame.
Definition packet_info.h:43