gresbstatusenquiry.h
63 lines
| 1.3 KiB
| text/x-c
|
CLexer
/ common_PLE / gresbstatusenquiry.h
r0 | #ifndef GRESBSTATUSENQUIRY_H | |||
#define GRESBSTATUSENQUIRY_H | ||||
#include <QWidget> | ||||
#include <QTableWidget> | ||||
#include <QGridLayout> | ||||
#include <QPushButton> | ||||
#include <gresbstatusqueryTYPES.h> | ||||
enum GresbStatusQueryOption{ | ||||
LinkStatus, | ||||
LinkStatistics, | ||||
NodeAddressStatistics, | ||||
GetRoute}; | ||||
struct gresb_status_query_str | ||||
{ | ||||
char protocolIdentifier; | ||||
char reserved1; | ||||
char reserved0; | ||||
char option; | ||||
char value3; | ||||
char value2; | ||||
char value1; | ||||
char value0; | ||||
}; | ||||
typedef gresb_status_query_str gresb_status_query_t; | ||||
struct gresb_link_status_reply_str | ||||
{ | ||||
char byte3; | ||||
char byte2; | ||||
char byte1; | ||||
char byte0; | ||||
}; | ||||
typedef gresb_link_status_reply_str gresb_link_status_reply_t; | ||||
struct gresb_link_statistics_reply_str | ||||
{ | ||||
char numberOfPacketsReceived[4]; | ||||
char sizeOfDataReceived[4]; | ||||
char numberOfPacketsWithEEPReceived[4]; | ||||
char numberOfTruncatedPacketsReceived[4]; | ||||
char numberOfPacketsTransmitted[4]; | ||||
char sizeOfDataTransmitted[4]; | ||||
}; | ||||
typedef gresb_link_statistics_reply_str gresb_link_statistics_reply_t; | ||||
class gresbStatusEnquiry : public QWidget | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
explicit gresbStatusEnquiry(QWidget *parent = 0); | ||||
QGridLayout* mainLayout; | ||||
QTableWidget* statusQueryTable; | ||||
QPushButton* readSPWStatusButton; | ||||
signals: | ||||
public slots: | ||||
}; | ||||
#endif // GRESBSTATUSENQUIRY_H | ||||