add patch
[framework/osp/web.git] / src / controls / FWebCtrl_WebPresenter.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 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                FWebCtrl_WebImpl.h
20  * @brief               The file contains the declaration of _WebImpl class.
21  *
22  * The file contains the declaration of _WebImpl class.
23  */
24 #ifndef _FWEB_CTRL_INTERNAL_WEB_PRESENTER_H_
25 #define _FWEB_CTRL_INTERNAL_WEB_PRESENTER_H_
26
27 #include <Ecore.h>
28 #include <FBaseString.h>
29
30 namespace Tizen { namespace Web { namespace Controls
31 {
32
33 class _WebPresenter
34         : public Tizen::Base::Object
35 {
36 // Lifecycle
37 public:
38         _WebPresenter(const Tizen::Base::Object* callerAddress);
39
40         virtual ~_WebPresenter(void);
41
42 // Operations
43 public:
44         void WaitAsyncProcess(bool& result);
45         void WaitAsyncProcess(Tizen::Base::String& result);
46         void WaitAsyncProcess(int& result);
47         void WaitAsyncProcess(long& result);
48         Eina_List* WaitAsyncProcess(void);
49
50         void EndAsyncProcess(bool result);
51         void EndAsyncProcess(const Tizen::Base::String& result);
52         void EndAsyncProcess(int result);
53         void EndAsyncProcess(long result);
54         void EndAsyncProcess(const Eina_List* result);
55
56 private:
57         _WebPresenter(const _WebPresenter& rhs);
58
59         _WebPresenter& operator =(const _WebPresenter& rhs);
60
61         void ProcessEvent(void);
62 //Attribute
63 private:
64         bool __stopState;
65
66         bool __boolean;
67         Tizen::Base::String __string;
68         int __integer;
69         Eina_List* __pIList;
70         long __longInteger;
71
72         int __callerAddress;
73 };
74
75 }}} // Tizen::Web::Controls
76 #endif // _FWEB_CTRL_INTERNAL_WEB_PRESENTER_H_