00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef WSCOUT_GUI_PCAP_HEADER_HH_
00024 # define WSCOUT_GUI_PCAP_HEADER_HH_
00025
00026 # include <utility>
00027
00028 # include <QtGui/QLabel>
00029
00030 # include <wipal/pcap/descriptor.hh>
00031
00032 # include "wscout_gui_trace.hh"
00033 # include "wscout_gui_header_base.hh"
00034 # include "wscout_protocol_ids.hh"
00035
00036 namespace wscout
00037 {
00038
00039 namespace gui
00040 {
00041
00043 struct PcapHeader: public HeaderBase<PcapHeader, protocol::PCAP>
00044 {
00046 PcapHeader(QWidget* parent = 0);
00047
00049 virtual next_header setup(const void* bytes,
00050 size_t caplen,
00051 const Trace& trace,
00052 const frame_descriptor& desc);
00053
00055 static next_header nextHeader(const Trace& t,
00056 const frame_descriptor& d);
00057
00058 private:
00059 QLabel id_;
00060 QLabel date_;
00061 QLabel len_;
00062 };
00063
00064 }
00065
00066 }
00067
00068 # include "wscout_gui_pcap_header.hxx"
00069
00070 #endif // ! WSCOUT_GUI_PCAP_HEADER_HH_