Added new API to download images remotely 95/118695/4
authorDavid Steele <david.steele@samsung.com>
Mon, 13 Mar 2017 11:00:52 +0000 (11:00 +0000)
committerDavid Steele <david.steele@samsung.com>
Mon, 20 Mar 2017 10:33:49 +0000 (03:33 -0700)
commit85d35ea15ba296bef2d0c67e689b2e9f7c29094c
treef2a9b64388f99bcb08c3bc4f6991049b21ef7320
parent25711120c43317d28ef2da9dd8bda53623505700
Added new API to download images remotely

Added "DownloadImageSynchronously()" method, which invokes libcurl to
download a URL.

Added global object to ensure curl is globally initialized and cleaned up,
this should allow usage of the above method in multiple threads simultaneously.

Also added "GetClosestImageSize" method, which partially loads the image file
to determine it's size.

Change-Id: Ie27f69d729abecfe5de3d5a90eae01a34f92c5b1
Signed-off-by: David Steele <david.steele@samsung.com>
adaptors/common/adaptor-impl.h
adaptors/devel-api/adaptor-framework/image-loading.cpp
adaptors/devel-api/adaptor-framework/image-loading.h
automated-tests/src/dali-adaptor/utc-Dali-ImageLoading.cpp
platform-abstractions/tizen/resource-loader/network/file-download.cpp
platform-abstractions/tizen/resource-loader/network/file-download.h
platform-abstractions/tizen/resource-loader/network/http-utils.cpp
platform-abstractions/tizen/resource-loader/network/http-utils.h