#include "httpwrapper.h" #include #include #include #include HttpWrapper::HttpWrapper() { } QByteArray HttpWrapper::getSyncData(QString& uri) { QHttp http; QUrl url(uri); http.setHost(url.host() ); http.get(url.path() + "?" + url.encodedQuery(), 0); while (http.currentId() != 0 ) { qApp->processEvents(); usleep(1000); } return http.readAll(); }