#include <download.h>
Public Member Functions | |
| Downloader () | |
| ~Downloader () | |
| bool | Get (const char *url, const char *save_as) |
Private Attributes | |
| CURL * | curl |
Definition at line 26 of file download.h.
| Downloader::Downloader | ( | ) |
| Downloader::~Downloader | ( | ) |
| bool Downloader::Get | ( | const char * | url, | |
| const char * | save_as | |||
| ) |
Definition at line 43 of file download.cpp.
00044 { 00045 FILE* fd = fopen( save_as, "w"); 00046 curl_easy_setopt(curl, CURLOPT_FILE, fd); 00047 curl_easy_setopt(curl, CURLOPT_URL, url); 00048 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, download_callback); 00049 CURLcode r = curl_easy_perform(curl); 00050 fclose(fd); 00051 00052 return (r == CURLE_OK); 00053 }
Here is the call graph for this function:

Here is the caller graph for this function:

CURL* Downloader::curl [private] |
Definition at line 28 of file download.h.
1.4.7