-
Notifications
You must be signed in to change notification settings - Fork 0
/
receivemsg.h
49 lines (36 loc) · 881 Bytes
/
receivemsg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef RECEIVEMSG_H
#define RECEIVEMSG_H
#include "slidebutton.h"
#include <QWidget>
#include <QUdpSocket>
#include <QStandardItemModel>
#include <QTableView>
#include <QTimer>
#include <QRadioButton>
#include <QLabel>
#include <QGroupBox>
class ReceiveMsg : public QWidget
{
Q_OBJECT
public:
explicit ReceiveMsg(QWidget *parent = nullptr);
~ReceiveMsg();
private slots:
void processPendingDatagrams();
void timelyClear();
void isReceiveOrNot();
void toWhiteStyle();
void toBlackStyle();
private:
QStandardItemModel *model;
QTableView *tableView;
QTimer timer;
QUdpSocket *udpSocket;
QRadioButton *whiteStyle;
QRadioButton *blackStyle;
SlideButton *slideButton;
QLabel *receiveOrNot;
QLabel *Style;
QGroupBox *settings;
};
#endif // RECEIVEMSG_H