data is now downloaded from the itsblue server

This commit is contained in:
Dorian Zedler 2018-12-26 17:54:45 +01:00
parent e4935e842b
commit 4835a77547

View file

@ -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");