Wireshark  4.3.0
The Wireshark network protocol analyzer
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 
22 // Actions for "Follow Stream" menu items.
23 
24 class FollowStreamAction : public QAction
25 {
26  Q_OBJECT
27 public:
28  FollowStreamAction(QObject *parent, register_follow_t *follow = NULL);
29 
30  register_follow_t* follow() const {return follow_;}
31  int protoId() const {return get_follow_proto_id(follow_);}
32  const char* filterName() const {return proto_get_protocol_filter_name(get_follow_proto_id(follow_));}
33 
34 private:
35  register_follow_t *follow_;
36 };
37 
38 #endif // FOLLOWSTREAMACTION_H
Definition: follow_stream_action.h:25
WS_DLL_PUBLIC int get_follow_proto_id(register_follow_t *follower)
Definition: follow.c:68
const char * proto_get_protocol_filter_name(const int proto_id)
Definition: proto.c:8414
Definition: follow.c:23