mirror of
https://github.com/ysoftdevs/Testa.git
synced 2026-01-16 08:26:38 +01:00
Initial Testa commit
This commit is contained in:
28
applicationcontroller.h
Normal file
28
applicationcontroller.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef APPLICATIONCONTROLLER_H
|
||||
#define APPLICATIONCONTROLLER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QJsonObject>
|
||||
#include <QAbstractSocket>
|
||||
#include <QtWebSockets/QWebSocket>
|
||||
#include "webengineview.h"
|
||||
|
||||
class ApplicationController : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ApplicationController(WebEngineView *webEngineView, QObject *parent = 0);
|
||||
void test();
|
||||
private slots:
|
||||
void connected();
|
||||
void messageReceived(const QString &message);
|
||||
void error(QAbstractSocket::SocketError error);
|
||||
private:
|
||||
QWebSocket* webSocket;
|
||||
WebEngineView* webEngineView;
|
||||
|
||||
QString getMessageType(const QJsonObject &jsonObject);
|
||||
QJsonObject getParameters(const QJsonObject &jsonObject);
|
||||
};
|
||||
|
||||
#endif // APPLICATIONCONTROLLER_H
|
||||
Reference in New Issue
Block a user