Newer
Older
#pragma once
#include <vector>
#include <QtCore/QObject>
#include <QtCore/QEventLoop>
class QNetworkAccessManager;
class QNetworkReply;
class QDomDocument;
class QDomNodeList;
bool _debug = false;
bool readyToReadData = false;
const std::string fullApdListApiUrl = "https://ep1.ruhr-uni-bochum.de/endcapProductionDB/api/apd_details_listall.php";
QNetworkAccessManager* networkManager;
QNetworkReply *replyWithFullList;
QDomDocument *documentFromNetworkReply;
QDomNodeList *nodeListApds;
void getApdListFromNetwork();
void verifyHttpResponse();
void getDataFromReply();
void verifyDataFormat();
void verifyQuerySuccess();
void getApdNodeList();
std::vector<std::string> getSerialListIfDataCanBeRead();
std::vector<std::string> getSerialListFromNodeList();
serialListReader(bool debug = false);
void getAndProcessData();
std::vector<std::string> getListOfSerials();