From 5c23be69f89538b8f1b6d3c1b52d4bc6ad8a9928 Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Mon, 14 Jan 2019 14:52:12 -0800 Subject: [PATCH] websocket outline --- src/mainwindow.cpp | 5 +++++ src/mainwindow.h | 2 ++ src/precompiled.h | 1 + zec-qt-wallet.pro | 4 ++-- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 6f0d8cb..99053d8 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -93,8 +93,13 @@ MainWindow::MainWindow(QWidget *parent) : rpc = new RPC(this); restoreSavedStates(); + + createWebsocket(); } +void MainWindow::createWebsocket() { + +} void MainWindow::restoreSavedStates() { QSettings s; diff --git a/src/mainwindow.h b/src/mainwindow.h index f02adb4..9626bd1 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -102,6 +102,8 @@ private: void restoreSavedStates(); + void createWebsocket(); + RPC* rpc = nullptr; QCompleter* labelCompleter = nullptr; diff --git a/src/precompiled.h b/src/precompiled.h index 9d0fe75..09344ca 100644 --- a/src/precompiled.h +++ b/src/precompiled.h @@ -55,6 +55,7 @@ #include #include #include +#include #include #include #include diff --git a/zec-qt-wallet.pro b/zec-qt-wallet.pro index 730c9bd..361cf26 100644 --- a/zec-qt-wallet.pro +++ b/zec-qt-wallet.pro @@ -10,7 +10,8 @@ CONFIG += precompile_header PRECOMPILED_HEADER = src/precompiled.h -greaterThan(QT_MAJOR_VERSION, 4): QT += widgets +QT += widgets +QT += websockets TARGET = zec-qt-wallet @@ -100,4 +101,3 @@ ICON = res/logo.icns qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target -