| 234 | } |
| 235 | |
| 236 | BOOL InetGetFile::IsFileReceived() { |
| 237 | int state = 0; |
| 238 | if (m_bUseHTTP) { |
| 239 | state = http->GetStatus(); |
| 240 | } else if (ftp) { |
| 241 | state = ftp->GetStatus(); |
| 242 | } |
| 243 | if (state == FTP_STATE_FILE_RECEIVED) { |
| 244 | return true; |
| 245 | } else { |
| 246 | return false; |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | BOOL InetGetFile::IsFileError() { |
| 251 | int state = FTP_STATE_INTERNAL_ERROR; |
no test coverage detected