Esempio n. 1
0
void ADHttp::platformDownloadFile(const std::string& url,
                                  const std::string& file_dir,
                                  const Callback& callback,
                                  const ProgressCallback& progress_callback)
{
    doDownloadFile(url, file_dir, callback, progress_callback);
}
Esempio n. 2
0
	/**	
	 *	To download a file. 
	 *	@param file	The file to download.
	 *	@param to	The location of the downloaded file (if everything goes well).
	 *	@returns	QTRUE if the file was finally well downloaded, and QFALSE in any other
	 *				circunstance.
	 */
	QBOOLEAN downloadFile (const std::string& file, const std::string& to)
							{ CMTYScopedLock locking (_exclusion);
							  return (doDownloadFile (file, to)); }