| 1355 | } |
| 1356 | |
| 1357 | std::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 | |
| 1366 | DownloadManager::DownloadState DownloadManager::getState(int index) const |
| 1367 | { |