-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlosocket.h
54 lines (45 loc) · 1.04 KB
/
losocket.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
50
51
52
53
54
#ifndef LOSOCKET_H
#define LOSOCKET_H
#include <QMainWindow>
#include <QSettings>
#include <QVariant>
#include <QDir>
#include <QFile>
#include <QVector>
#include <QTimer>
#include <QKeyEvent>
#include <QFileDialog>
#include <QTranslator>
#include "myconfig.h"
#include "ls_pageudp.h"
#include "ls_pagetcpclient.h"
#include "ls_pagetcpsrv.h"
#include "about.h"
namespace Ui {
class LoSocket;
}
class LoSocket : public QMainWindow
{
Q_OBJECT
public:
explicit LoSocket(QWidget *parent = 0);
~LoSocket();
virtual void keyPressEvent(QKeyEvent *event) override;
public slots:
void onLanguageChanged();
void onAboutShown();
void onDataSent();
void onAutSendChanged(bool isBegin);
void onTxtSendConverted(bool isHex);
void onFileOpened();
void onShowAbout();
private:
Ui::LoSocket *ui;
QTimer *m_timer;
LS_PageUdp *m_udp;
LS_PageTcpClient *m_tcpClient;
LS_PageTcpSrv *m_tcpSrv;
QVector<LS_Page*> m_pageList;
QTranslator *m_Translator;
};
#endif // LOSOCKET_H