Wireshark
4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
ui
qt
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
16
typedef
struct
_capture_session
capture_session
;
17
18
struct
_packet_info
;
19
20
class
CaptureEvent
21
{
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
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
62
private
:
63
Context _ctx;
64
EventType _evt;
65
QString _filePath;
66
capture_session
* _session;
67
};
68
69
#endif
// CAPTURE_EVENT_H
CaptureEvent
Definition
capture_event.h:21
_capture_session
Definition
capture_session.h:137
_packet_info
Definition
packet_info.h:43
_wslua_file
Definition
wslua.h:293
Generated by
1.9.8