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_PHY_HEADER_HH_
00024 # define WSCOUT_GUI_PHY_HEADER_HH_
00025
00026 # include <QtGui/QLabel>
00027 # include <QtGui/QLineEdit>
00028
00029 extern "C"
00030 {
00031 # include <stdint.h>
00032 }
00033
00034 # include "wscout_gui_header_base.hh"
00035
00036 namespace wscout
00037 {
00038
00039 namespace gui
00040 {
00041
00047 template <class Exact, int Proto>
00048 struct PHYHeader: public HeaderBase<Exact, Proto>
00049 {
00050 enum
00051 {
00052 default_spacing = 16
00053 };
00054
00056 PHYHeader(const QString& proto, QWidget* parent = 0);
00057
00058 protected:
00059 void setTruncated(bool trunc = true);
00060 void setTime(uint64_t hosttime, uint64_t mactime);
00061 void setRate(float rate);
00062 void setChannel(unsigned channel);
00063 void setSignal(int rssi, int signal, int noise);
00064
00065 private:
00066 QString proto_str_;
00067 QLabel proto_;
00068 QLineEdit time_;
00069 QLabel rate_;
00070 QLabel channel_;
00071 QLabel signal_;
00072 };
00073
00074 }
00075
00076 }
00077
00078 # include "wscout_gui_phy_header.hxx"
00079
00080 #endif // ! WSCOUT_GUI_PHY_HEADER_HH_