MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / download

Method download

src/selfupdater.cpp:242–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void SelfUpdater::download(const QString& downloadLink)
243{
244 QNetworkAccessManager* accessManager = m_Interface->getAccessManager();
245 QUrl dlUrl(downloadLink);
246 QNetworkRequest request(dlUrl);
247 m_Canceled = false;
248 m_Reply = accessManager->get(request);
249 showProgress();
250
251 connect(m_Reply, SIGNAL(downloadProgress(qint64, qint64)), this,
252 SLOT(downloadProgress(qint64, qint64)));
253 connect(m_Reply, SIGNAL(finished()), this, SLOT(downloadFinished()));
254 connect(m_Reply, SIGNAL(readyRead()), this, SLOT(downloadReadyRead()));
255}
256
257void SelfUpdater::downloadProgress(qint64 bytesReceived, qint64 bytesTotal)
258{

Callers 1

dropMimeDataMethod · 0.80

Calls 2

getAccessManagerMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected