Tizen 2.1 base
[sdk/ide/native-sample.git] / samples / native / partner / cpp / Sample / Tizen C++ / UiGestureDetector / UiGestureDetector / project / inc / FormManager.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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 #ifndef _FORMMANAGER_H_\r
18 #define _FORMMANAGER_H_\r
19 \r
20 \r
21 #include <FApp.h>\r
22 #include <FBase.h>\r
23 #include <FUi.h>\r
24 \r
25 #include "MainForm.h"\r
26 \r
27 class MainForm;\r
28 \r
29 class FormManager:\r
30         public Osp::Ui::Controls::Form\r
31 {\r
32 public:\r
33         FormManager(void);\r
34         virtual ~FormManager(void);\r
35 \r
36         bool Initialize(void);\r
37         \r
38         bool SetStarterForm(RequestId requestId, Osp::Base::Collection::IList* pArgs);\r
39         virtual void OnUserEventReceivedN(RequestId requestId, Osp::Base::Collection::IList* pArgs);\r
40 \r
41 public:\r
42         static const RequestId REQUEST_MAIN_FORM = 101;\r
43         static const RequestId REQUEST_LONGPRESSFORM = 102;\r
44         static const RequestId REQUEST_TAPFORM = 103;\r
45         static const RequestId REQUEST_FLICKFORM = 104;\r
46         static const RequestId REQUEST_PINCHFORM = 105;\r
47         static const RequestId REQUEST_CUSTOMFORM = 106;\r
48         static const RequestId REQUEST_PANNINGFORM = 107;\r
49         static const RequestId REQUEST_ROTATIONFORM = 108;\r
50         static const RequestId REQUEST_ROTATION_PANNINGFORM = 109;\r
51         static const RequestId REQUEST_MAP = 110;\r
52         static const RequestId REQUEST_ACCESSIBILITY = 111;\r
53         static const RequestId REQUEST_TOUCH_RELATED= 112;\r
54 \r
55 private:\r
56         void SwitchToForm(RequestId requestId, Osp::Base::Collection::IList* pArgs);\r
57         Osp::Ui::Controls::Form* __pPreviousForm;\r
58         MainForm* __pMainForm;\r
59 };\r
60 \r
61 \r
62 #endif /* FORMMANAGER_H_ */\r