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