| 178 | } |
| 179 | |
| 180 | HRESULT DownloadManager::OnStatusUpdate( int status ) |
| 181 | { |
| 182 | std::string s = Fetch_String(FTP_StatusNone); |
| 183 | switch (status) |
| 184 | { |
| 185 | case DOWNLOADSTATUS_CONNECTING: |
| 186 | s = Fetch_String(FTP_StatusConnecting); |
| 187 | break; |
| 188 | case DOWNLOADSTATUS_LOGGINGIN: |
| 189 | s = Fetch_String(FTP_StatusLoggingIn); |
| 190 | break; |
| 191 | case DOWNLOADSTATUS_FINDINGFILE: |
| 192 | s = Fetch_String(FTP_StatusFindingFile); |
| 193 | break; |
| 194 | case DOWNLOADSTATUS_QUERYINGRESUME: |
| 195 | s = Fetch_String(FTP_StatusQueryingResume); |
| 196 | break; |
| 197 | case DOWNLOADSTATUS_DOWNLOADING: |
| 198 | s = Fetch_String(FTP_StatusDownloading); |
| 199 | break; |
| 200 | case DOWNLOADSTATUS_DISCONNECTING: |
| 201 | s = Fetch_String(FTP_StatusDisconnecting); |
| 202 | break; |
| 203 | case DOWNLOADSTATUS_FINISHING: |
| 204 | s = Fetch_String(FTP_StatusFinishing); |
| 205 | break; |
| 206 | case DOWNLOADSTATUS_DONE: |
| 207 | s = Fetch_String(FTP_StatusDone); |
| 208 | break; |
| 209 | } |
| 210 | m_statusString = s; |
| 211 | DEBUG_LOG(("DownloadManager::OnStatusUpdate(): %s(%d)", s.c_str(), status)); |
| 212 | return S_OK; |
| 213 | } |
| 214 | |
| 215 | } // namespace patchget |
nothing calls this directly
no test coverage detected