Dali 3D User Interface Engine
Functions | Variables
Dali::TizenPlatform::anonymous_namespace{file-download.cpp} Namespace Reference

Functions

const int CONNECTION_TIMEOUT_SECONDS (30L)
 
void ConfigureCurlOptions (CURL *curl_handle, const std::string &url)
 
size_t DummyWrite (char *ptr, size_t size, size_t nmemb, void *userdata)
 
bool DownloadFile (CURL *curl_handle, const std::string &url, Dali::Vector< uint8_t > &dataBuffer, size_t &dataSize, size_t maximumAllowedSizeBytes)
 

Variables

const long VERBOSE_MODE = 0L
 
const long CLOSE_CONNECTION_ON_ERROR = 1L
 
const long EXCLUDE_HEADER = 0L
 
const long INCLUDE_HEADER = 1L
 
const long INCLUDE_BODY = 0L
 
const long EXCLUDE_BODY = 1L
 

Function Documentation

void Dali::TizenPlatform::anonymous_namespace{file-download.cpp}::ConfigureCurlOptions ( CURL *  curl_handle,
const std::string &  url 
)

Definition at line 51 of file file-download.cpp.

Referenced by DownloadFile().

Here is the caller graph for this function:

const int Dali::TizenPlatform::anonymous_namespace{file-download.cpp}::CONNECTION_TIMEOUT_SECONDS ( 30L  )
bool Dali::TizenPlatform::anonymous_namespace{file-download.cpp}::DownloadFile ( CURL *  curl_handle,
const std::string &  url,
Dali::Vector< uint8_t > &  dataBuffer,
size_t &  dataSize,
size_t  maximumAllowedSizeBytes 
)

Definition at line 76 of file file-download.cpp.

References ConfigureCurlOptions(), DALI_LOG_WARNING, DummyWrite(), Dali::Internal::Platform::FileCloser::GetFile(), and Dali::Vector< T, IsTrivialType >::Resize().

Referenced by Dali::TizenPlatform::Network::DownloadRemoteFileIntoMemory().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t Dali::TizenPlatform::anonymous_namespace{file-download.cpp}::DummyWrite ( char *  ptr,
size_t  size,
size_t  nmemb,
void *  userdata 
)

Definition at line 70 of file file-download.cpp.

Referenced by DownloadFile().

Here is the caller graph for this function:

Variable Documentation

const long Dali::TizenPlatform::anonymous_namespace{file-download.cpp}::CLOSE_CONNECTION_ON_ERROR = 1L

Definition at line 45 of file file-download.cpp.

const long Dali::TizenPlatform::anonymous_namespace{file-download.cpp}::EXCLUDE_BODY = 1L

Definition at line 49 of file file-download.cpp.

const long Dali::TizenPlatform::anonymous_namespace{file-download.cpp}::EXCLUDE_HEADER = 0L

Definition at line 46 of file file-download.cpp.

const long Dali::TizenPlatform::anonymous_namespace{file-download.cpp}::INCLUDE_BODY = 0L

Definition at line 48 of file file-download.cpp.

const long Dali::TizenPlatform::anonymous_namespace{file-download.cpp}::INCLUDE_HEADER = 1L

Definition at line 47 of file file-download.cpp.

const long Dali::TizenPlatform::anonymous_namespace{file-download.cpp}::VERBOSE_MODE = 0L

Definition at line 44 of file file-download.cpp.

Dali Docs Home
Read more about Dali