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 <glib.h>
16 #include <epan/packet_info.h>
17 #include <epan/follow.h>
18 
19 #include <QAction>
20 
21 #include <ui/qt/capture_file.h>
22 
23 // Actions for "Follow Stream" menu items.
24 
25 class FollowStreamAction : public QAction
26 {
27  Q_OBJECT
28 public:
29  FollowStreamAction(QObject *parent, register_follow_t *follow = NULL);
30 
31  register_follow_t* follow() const {return follow_;}
32  int protoId() const {return get_follow_proto_id(follow_);}
33  const char* filterName() const {return proto_get_protocol_filter_name(get_follow_proto_id(follow_));}
34 
35 private:
36  register_follow_t *follow_;
37 };
38 
39 #endif // FOLLOWSTREAMACTION_H
Definition: follow_stream_action.h:26
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:8171
Definition: follow.c:23