Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
capture_event.h
Go to the documentation of this file.
1
10#ifndef CAPTURE_EVENT_H
11#define CAPTURE_EVENT_H
12
13#include <QEvent>
14#include <QString>
15
17
18struct _packet_info;
19
21{
22public:
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
35 };
36
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
49 };
50
51 CaptureEvent(Context ctx, EventType evt);
52 CaptureEvent(Context ctx, EventType evt, QString file);
53 CaptureEvent(Context ctx, EventType evt, capture_session * session);
54
55 CaptureEvent(const CaptureEvent &ce);
56
57 Context captureContext() const;
58 EventType eventType() const;
59 QString filePath() const;
60 capture_session * capSession() const;
61
62private:
63 Context _ctx;
64 EventType _evt;
65 QString _filePath;
66 capture_session * _session;
67};
68
69#endif // CAPTURE_EVENT_H
Definition capture_event.h:21
Definition capture_session.h:137
Definition packet_info.h:43
Definition wslua.h:293