fix gbs/obs build failure
[framework/osp/web.git] / src / controls / FWebCtrl_WebManager.h
1 //\r
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.\r
3 //\r
4 // Licensed under the Apache License, Version 2.0 (the License);\r
5 // you may not use this file except in compliance with the License.\r
6 // You may obtain a copy of the License at\r
7 //\r
8 //     http://www.apache.org/licenses/LICENSE-2.0\r
9 //\r
10 // Unless required by applicable law or agreed to in writing, software\r
11 // distributed under the License is distributed on an "AS IS" BASIS,\r
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13 // See the License for the specific language governing permissions and\r
14 // limitations under the License.\r
15 //\r
16 \r
17 /**\r
18  * @file        FWebCtrl_WebManager.h\r
19  * @brief       This is the header file for the %_WebManager class.\r
20  *\r
21  * This header file contains the declarations of the %_WebManager class.\r
22  */\r
23  \r
24 #ifndef _FWEB_CTRL_INTERNAL_WEB_MANAGER_H_\r
25 #define _FWEB_CTRL_INTERNAL_WEB_MANAGER_H_\r
26 \r
27 #include <unique_ptr.h>\r
28 #include <FBaseColArrayListT.h>\r
29 #include <FBaseColMultiHashMapT.h>\r
30 \r
31 namespace Tizen { namespace Web { namespace Controls\r
32 {\r
33 class _WebImpl;\r
34 \r
35 class _WebManager\r
36         : public Tizen::Base::Object\r
37 {\r
38 public:\r
39         static _WebManager* GetInstance(void);\r
40         \r
41         result AddWeb(int webAdress);\r
42         result RemoveWeb(int webAdress);\r
43         bool IsValidWeb(int webAdress) const;\r
44 \r
45         result AddCallback(int callerAdress, int callbackAdress);\r
46         result RemoveCallback(int callerAdress, int callbackAdress);\r
47         bool IsValidCallback(int callerAdress, int callbackAdress) const;\r
48 \r
49 private:\r
50         _WebManager(void);\r
51         _WebManager(const _WebManager& rhs);\r
52         virtual ~_WebManager(void);\r
53         result Construct(void);\r
54         _WebManager& operator=(const _WebManager& rhs);\r
55 \r
56 private:\r
57         std::unique_ptr<Tizen::Base::Collection::ArrayListT< int > > __pWebList;\r
58         std::unique_ptr<Tizen::Base::Collection::MultiHashMapT< int, int > > __pCallbackList;\r
59 };\r
60 \r
61 } } }\r
62 #endif\r
63 \r
64