websocket outline
This commit is contained in:
@@ -93,8 +93,13 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
rpc = new RPC(this);
|
rpc = new RPC(this);
|
||||||
|
|
||||||
restoreSavedStates();
|
restoreSavedStates();
|
||||||
|
|
||||||
|
createWebsocket();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::createWebsocket() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::restoreSavedStates() {
|
void MainWindow::restoreSavedStates() {
|
||||||
QSettings s;
|
QSettings s;
|
||||||
|
|||||||
@@ -102,6 +102,8 @@ private:
|
|||||||
|
|
||||||
void restoreSavedStates();
|
void restoreSavedStates();
|
||||||
|
|
||||||
|
void createWebsocket();
|
||||||
|
|
||||||
RPC* rpc = nullptr;
|
RPC* rpc = nullptr;
|
||||||
QCompleter* labelCompleter = nullptr;
|
QCompleter* labelCompleter = nullptr;
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,7 @@
|
|||||||
#include <QtNetwork/QNetworkRequest>
|
#include <QtNetwork/QNetworkRequest>
|
||||||
#include <QtNetwork/QNetworkAccessManager>
|
#include <QtNetwork/QNetworkAccessManager>
|
||||||
#include <QtNetwork/QNetworkReply>
|
#include <QtNetwork/QNetworkReply>
|
||||||
|
#include <QtWebSockets/QtWebSockets>
|
||||||
#include <QJsonDocument>
|
#include <QJsonDocument>
|
||||||
#include <QJsonArray>
|
#include <QJsonArray>
|
||||||
#include <QJsonObject>
|
#include <QJsonObject>
|
||||||
|
|||||||
@@ -10,7 +10,8 @@ CONFIG += precompile_header
|
|||||||
|
|
||||||
PRECOMPILED_HEADER = src/precompiled.h
|
PRECOMPILED_HEADER = src/precompiled.h
|
||||||
|
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
QT += widgets
|
||||||
|
QT += websockets
|
||||||
|
|
||||||
TARGET = zec-qt-wallet
|
TARGET = zec-qt-wallet
|
||||||
|
|
||||||
@@ -100,4 +101,3 @@ ICON = res/logo.icns
|
|||||||
qnx: target.path = /tmp/$${TARGET}/bin
|
qnx: target.path = /tmp/$${TARGET}/bin
|
||||||
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||||
!isEmpty(target.path): INSTALLS += target
|
!isEmpty(target.path): INSTALLS += target
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user