Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
follow_stream_action.h
Go to the documentation of this file.
1
10#ifndef FOLLOWSTREAMACTION_H
11#define FOLLOWSTREAMACTION_H
12
13#include "config.h"
14
15#include <epan/packet_info.h>
16#include <epan/follow.h>
17
18#include <QAction>
19
20#include <ui/qt/capture_file.h>
21
25class FollowStreamAction : public QAction
26{
27 Q_OBJECT
28public:
34 FollowStreamAction(QObject *parent, register_follow_t *follow = NULL);
35
40 register_follow_t* follow() const {return follow_;}
41
46 int protoId() const {return get_follow_proto_id(follow_);}
47
52 const char* filterName() const {return proto_get_protocol_filter_name(get_follow_proto_id(follow_));}
53
54private:
56 register_follow_t *follow_;
57};
58
59#endif // FOLLOWSTREAMACTION_H
Actions for "Follow Stream" menu items.
Definition follow_stream_action.h:26
register_follow_t * follow() const
Retrieves the associated registered follow stream type.
Definition follow_stream_action.h:40
int protoId() const
Retrieves the protocol ID associated with the follow stream.
Definition follow_stream_action.h:46
const char * filterName() const
Retrieves the filter name of the associated protocol.
Definition follow_stream_action.h:52
const char * proto_get_protocol_filter_name(const int proto_id)
Definition proto.c:8749
Definition follow.c:23