MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / getProject

Method getProject

launcher/modplatform/helpers/NetworkModAPI.cpp:83–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83auto NetworkModAPI::getProject(QString addonId, QByteArray* response) const -> NetJob*
84{
85 auto netJob = new NetJob(QString("%1::GetProject").arg(addonId), APPLICATION->network());
86 auto searchUrl = getModInfoURL(addonId);
87
88 netJob->addNetAction(Net::Download::makeByteArray(QUrl(searchUrl), response));
89
90 QObject::connect(netJob, &NetJob::finished, [response, netJob] {
91 netJob->deleteLater();
92 delete response;
93 });
94
95 return netJob;
96}

Callers 2

modrinthProjectsTaskMethod · 0.80
flameProjectsTaskMethod · 0.80

Calls 4

QStringClass · 0.85
QUrlClass · 0.85
networkMethod · 0.80
addNetActionMethod · 0.80

Tested by

no test coverage detected