SimbadLookupReply::~SimbadLookupReply() { if (reply) { disconnect(reply, SIGNAL(finished()), this, SLOT(httpQueryFinished())); reply->abort(); reply->deleteLater(); reply = NULL; } }
//This is provided for the correct deletion of the reply in the RemoteControl plugin void SimbadLookupReply::deleteNetworkReply() { if(reply) { disconnect(reply, SIGNAL(finished()), this, SLOT(httpQueryFinished())); reply->abort(); delete reply; reply = NULL; } }
void SimbadLookupReply::delayTimerCompleted() { reply = netMgr->get(QNetworkRequest(url)); connect(reply, SIGNAL(finished()), this, SLOT(httpQueryFinished())); }