2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FNetHttp_HttpCurl.cpp
20 * @brief This is the implementation file for _HttpCurl class.
23 #include <FNetHttpHttpTypes.h>
24 #include <FBaseSysLog.h>
25 #include "FNetHttp_HttpCommon.h"
26 #include "FNetHttp_HttpCurl.h"
28 using namespace Tizen::Base;
30 namespace Tizen { namespace Net { namespace Http
33 _HttpCurl::_HttpCurl(CURL* pCurl, bool isAuthenticated)
36 __isAuthenticated = isAuthenticated;
41 _HttpCurl::~_HttpCurl(void)
45 SysLog(NID_NET_HTTP, "__pCurl[%x, IsAuthenticated:%d] is deleted.", __pCurl, __isAuthenticated);
46 curl_easy_cleanup(__pCurl);
52 _HttpCurl::AddRef(void)
55 SysLog(NID_NET_HTTP, "The reference count of this instance is %d. __pCurl[%x]", __refCount, __pCurl);
59 _HttpCurl::Release(void)
62 SysLog(NID_NET_HTTP, "The reference count of this instance is %d. __pCurl[%x]", __refCount, __pCurl);
66 SysLog(NID_NET_HTTP, "The reference count of this instance is 0. So this instance will be deleted.");
72 _HttpCurl::GetCurl(void) const
77 _HttpCurl::SetAuthenticated(void)
79 __isAuthenticated = true;
81 } } } // Tizen::Net::Http