| 1266 | } |
| 1267 | |
| 1268 | QString DownloadManager::getFilePath(int index) const |
| 1269 | { |
| 1270 | if ((index < 0) || (index >= m_ActiveDownloads.size())) { |
| 1271 | throw MyException(tr("get path: invalid download index %1").arg(index)); |
| 1272 | } |
| 1273 | |
| 1274 | return m_OutputDirectory + "/" + m_ActiveDownloads.at(index)->m_FileName; |
| 1275 | } |
| 1276 | |
| 1277 | QString DownloadManager::getFileTypeString(int fileType) |
| 1278 | { |
no test coverage detected