Tizen 2.1 base
[sdk/ide/native-sample.git] / samples / native / cpp / Sample / Tizen C++ / EffectsApp / EffectsApp / 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_
18 #define FORMMANAGER_H_
19
20 #include <FBase.h>
21 #include <FUi.h>
22 #include <FApp.h>
23
24 #include "EffectsBaseForm.h"
25 #include "MainForm.h"
26
27 class FormManager
28         : public Osp::Ui::Controls::Form
29 {
30 public:
31         FormManager(void);
32         virtual ~FormManager(void);
33
34         bool Initialize(void);
35         void OnUserEventReceivedN(RequestId requestId, Osp::Base::Collection::IList* pArgs);
36         void SetCurrentForm(RequestId requestId);
37
38 public:
39         static const RequestId REQUEST_ID_MAIN_FORM = 101;
40         static const RequestId REQUEST_ID_INTERACTIVE_PHYSICS_EFFECT_FORM = 102;
41         static const RequestId REQUEST_ID_TIME_BASED_SINGLE_EFFECT_FORM = 103;
42
43 private:
44         MainForm* __pMainForm;
45         EffectsBaseForm* __pEffectsForm;
46         EffectsBaseForm* __pEffectsFormInteractive;
47         EffectsBaseForm* __pEffectsFormTimeBasedSingle;
48 };
49
50 #endif /* FORMMANAGER_H_ */