Initialize Tizen 2.3
[framework/osp/net.git] / src / http / FNetHttp_HttpCurl.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18 /**
19  * @file                FNetHttp_HttpCurl.h
20  * @brief               This is the header file for the %_HttpCurl class.
21  */
22
23 #ifndef _FNET_HTTP_INTERNAL_HTTP_CURL_H_
24 #define _FNET_HTTP_INTERNAL_HTTP_CURL_H_
25
26 #include <curl.h>
27 #include <FOspConfig.h>
28 #include <FNetHttpHttpTypes.h>
29
30 namespace Tizen { namespace Net { namespace Http
31 {
32
33 class _HttpCurl
34         : public Tizen::Base::Object
35 {
36
37 public:
38         _HttpCurl(CURL* pCurl, bool isAuthenticated);
39
40         virtual ~_HttpCurl(void);
41
42         void AddRef(void);
43
44         void Release(void);
45
46 public:
47         CURL* GetCurl(void) const;
48
49         void SetAuthenticated(void);
50
51 private:
52         _HttpCurl(const _HttpCurl& rhs);
53
54         _HttpCurl& operator =(const _HttpCurl& rhs);
55
56 private:
57         CURL* __pCurl;
58         int __refCount;
59         bool __isAuthenticated;
60
61 }; //_HttpCurl
62
63 } } } // Tizen::Net::Http
64 #endif // _FNET_HTTP_INTERNAL_HTTP_CURL_H_