X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fimaging%2Fcommon%2Ffile-download.h;h=9c6d41952c83795a490d5549551af0deca40ece0;hb=c1bb1606717a5a831a0e7bdaca8b4eb86dc5a89e;hp=20380a05b1d71ecfbb30c2d8fe6cae923de4689d;hpb=761f75cd51351b7a4e072130f4a2ad0b3e3231bb;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/imaging/common/file-download.h b/dali/internal/imaging/common/file-download.h old mode 100644 new mode 100755 index 20380a0..9c6d419 --- a/dali/internal/imaging/common/file-download.h +++ b/dali/internal/imaging/common/file-download.h @@ -2,7 +2,7 @@ #define __DALI_TIZEN_PLATFORM_NETWORK_FILE_DOWNLOAD_H__ /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -52,6 +52,13 @@ public: */ ~CurlEnvironment(); + // Moveable but not copyable + + CurlEnvironment( const CurlEnvironment& ) = delete; + CurlEnvironment& operator=( const CurlEnvironment& ) = delete; + CurlEnvironment( CurlEnvironment&& ) = default; + CurlEnvironment& operator=( CurlEnvironment&& ) = default; + /** * Locking function for libcurl with openssl */ @@ -62,6 +69,10 @@ public: */ static unsigned long GetThreadId(); + static void ConfigureCurlOptions( void* curlHandle, const std::string& url ); + + static void InitWriteFunction( void* curlHandle ); + private: void SetLockingFunction();