| 635 | } |
| 636 | |
| 637 | void ComponentUpdateTask::remoteLoadSucceeded(size_t taskIndex) |
| 638 | { |
| 639 | auto &taskSlot = d->remoteLoadStatusList[taskIndex]; |
| 640 | if(taskSlot.finished) |
| 641 | { |
| 642 | qWarning() << "Got multiple results from remote load task" << taskIndex; |
| 643 | return; |
| 644 | } |
| 645 | qDebug() << "Remote task" << taskIndex << "succeeded"; |
| 646 | taskSlot.succeeded = false; |
| 647 | taskSlot.finished = true; |
| 648 | d->remoteTasksInProgress --; |
| 649 | // update the cached data of the component from the downloaded version file. |
| 650 | if (taskSlot.type == RemoteLoadStatus::Type::Version) |
| 651 | { |
| 652 | auto component = d->m_list->getComponent(taskSlot.PackProfileIndex); |
| 653 | component->m_loaded = true; |
| 654 | component->updateCachedData(); |
| 655 | } |
| 656 | checkIfAllFinished(); |
| 657 | } |
| 658 | |
| 659 | |
| 660 | void ComponentUpdateTask::remoteLoadFailed(size_t taskIndex, const QString& msg) |
nothing calls this directly
no test coverage detected