-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
47 lines (40 loc) · 1.07 KB
/
mainwindow.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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QWebSocketServer>
#include <QLabel>
#include "websocketinstance.h"
#include "interpretermodel.h"
#include <QHostInfo>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void on_btnStart_clicked();
private:
Ui::MainWindow *ui;
QWebSocketServer * mWebSockServer;
QList<QWebSocket*> mClients;
QLabel *statusLabel;
QLabel *statusLED;
WebSocketInstance * webSock;
InterpreterModel * IntpModel;
private Q_SLOTS:
void onNewConnection();
void onClientClosed();
void on_btnStop_clicked();
void processTextMessage(QString message);
void onSockServClose();
void on_actionImport_Certification_File_triggered();
void on_actionImport_Key_File_triggered();
void on_actionAdd_Node_triggred();
void dummySlot(const QString & message);
void on_btnSend_clicked();
};
#endif // MAINWINDOW_H