MCPcopy Create free account
hub / github.com/MultiMC/Launcher / executeTask

Method executeTask

launcher/modplatform/technic/SolderPackInstallTask.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void Technic::SolderPackInstallTask::executeTask()
43{
44 setStatus(tr("Finding recommended version:\n%1").arg(m_sourceUrl.toString()));
45 m_filesNetJob.reset(new NetJob(tr("Finding recommended version")));
46 m_filesNetJob->addNetAction(Net::Download::makeByteArray(m_sourceUrl, &m_response));
47 auto job = m_filesNetJob.get();
48 connect(job, &NetJob::succeeded, this, &Technic::SolderPackInstallTask::versionSucceeded);
49 connect(job, &NetJob::failed, this, &Technic::SolderPackInstallTask::downloadFailed);
50 m_filesNetJob->start(m_network);
51}
52
53void Technic::SolderPackInstallTask::versionSucceeded()
54{

Callers

nothing calls this directly

Calls 5

addNetActionMethod · 0.80
toStringMethod · 0.45
resetMethod · 0.45
getMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected