コード例 #1
0
void WebPuppeteerTab::downloadFile(QNetworkReply*reply) {
	// Won't be finished at this point, need to connect() to reply signals to detect end of download
	// Just in case, check if reply->isFinished()
	if (reply->isFinished()) {
		downloadFileFinished(reply);
	}
	connect(reply, SIGNAL(finished()), this, SLOT(downloadFileFinished()));
}
コード例 #2
0
void DownloadFileThread::run()
{
    GlobalXAgentOCX *agentOCX = GlobalXAgentOCX::instance();
    this->m_result = agentOCX->downloadFile(m_serverFileName);
    this->msleep(1000);
    emit downloadFileFinished(m_fileType, m_result);
}
コード例 #3
0
void OnlineDataManager::downloadFileFinished()
{
    OnlineDataNode *dataNode = qobject_cast<OnlineDataNode *>(sender());
    emit downloadFileFinished(dataNode->id());
}
コード例 #4
0
void OnlineDataManager::beginDownloadFile(QString nodePath, QString actionId) {

    OnlineDataNode *dataNode = downloadFileAsync(nodePath, actionId);
    _actionNodes[actionId] = dataNode;
    connect(dataNode, SIGNAL(finished()), this, SLOT(downloadFileFinished()));
}