mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 22:44:56 -04:00
first version saving some info from comic vine
This commit is contained in:
@ -23,6 +23,11 @@ void HttpWorker::get()
|
||||
this->start();
|
||||
}
|
||||
|
||||
QByteArray HttpWorker::getResult()
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
void HttpWorker::run()
|
||||
{
|
||||
QNetworkAccessManager manager;
|
||||
@ -39,9 +44,10 @@ void HttpWorker::run()
|
||||
|
||||
if(tT.isActive()){
|
||||
// download complete
|
||||
emit dataReady(reply->readAll());
|
||||
result = reply->readAll();
|
||||
emit dataReady(result);
|
||||
tT.stop();
|
||||
} else {
|
||||
emit timeout();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user