| 291 | } |
| 292 | |
| 293 | size_t DownloadTask::writeData(void *buffer, size_t size, size_t nmemb) |
| 294 | { |
| 295 | size_t bytesToWrite = size * nmemb; |
| 296 | if (appendFile(m_outputTmp, reinterpret_cast<const unsigned char *>(buffer), bytesToWrite)) |
| 297 | { |
| 298 | return bytesToWrite; |
| 299 | } |
| 300 | return 0; |
| 301 | } |
| 302 | |
| 303 | CopyTask::CopyTask(const std::string &src, const std::string& dest, const std::string& name) : m_src(src), m_dest(dest), m_name(name) |
| 304 | { |
no test coverage detected