Browse Source

websocket outline

pull/45/head
Aditya Kulkarni 5 years ago
parent
commit
5c23be69f8
  1. 5
      src/mainwindow.cpp
  2. 2
      src/mainwindow.h
  3. 1
      src/precompiled.h
  4. 4
      zec-qt-wallet.pro

5
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;

2
src/mainwindow.h

@ -102,6 +102,8 @@ private:
void restoreSavedStates();
void createWebsocket();
RPC* rpc = nullptr;
QCompleter* labelCompleter = nullptr;

1
src/precompiled.h

@ -55,6 +55,7 @@
#include <QtNetwork/QNetworkRequest>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkReply>
#include <QtWebSockets/QtWebSockets>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonObject>

4
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

Loading…
Cancel
Save