Initial Testa commit

This commit is contained in:
David Kaya
2017-02-03 00:49:10 +01:00
parent 26e441c1d7
commit 7ec51f7da7
13 changed files with 378 additions and 0 deletions

28
applicationcontroller.h Normal file
View 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