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

Method getProgress

src/downloadmanager.cpp:1357–1364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1355}
1356
1357std::pair<int, QString> DownloadManager::getProgress(int index) const
1358{
1359 if ((index < 0) || (index >= m_ActiveDownloads.size())) {
1360 throw MyException(tr("progress: invalid download index %1").arg(index));
1361 }
1362
1363 return m_ActiveDownloads.at(index)->m_Progress;
1364}
1365
1366DownloadManager::DownloadState DownloadManager::getState(int index) const
1367{

Callers 1

paintMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected