From 4835a775479aa47ec316397f2f94a7f9df7a920f Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Wed, 26 Dec 2018 17:54:45 +0100 Subject: [PATCH] data is now downloaded from the itsblue server --- sources/serverconn.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/serverconn.cpp b/sources/serverconn.cpp index 1490e00..a7d87e3 100644 --- a/sources/serverconn.cpp +++ b/sources/serverconn.cpp @@ -227,7 +227,7 @@ float ServerConn::getProgress() int ServerConn::getEvents(QString day){ - /* + this->progress = 0; ReturnData_t ret; //this is a custom type to store the returned data // Call the webservice @@ -265,8 +265,7 @@ int ServerConn::getEvents(QString day){ } QString eventString = reply->readAll(); -*/ - +/* qDebug() << "reading text file"; QFile * textFile = new QFile(":/samplehtml/Download File.txt"); if (!textFile->open(QIODevice::ReadOnly | QIODevice::Text)) { @@ -275,6 +274,7 @@ int ServerConn::getEvents(QString day){ } QString eventString = textFile->readAll(); + */ // separate all lines into a list QStringList events = eventString.split("\n");