[BasicApp] Change license statements
[apps/native/sample/BasicApp.git] / project / inc / MainForm.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.1 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://floralicense.org/license/
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 #ifndef _MAIN_FORM_H_
18 #define _MAIN_FORM_H_
19
20 #include <FUi.h>
21
22 class MainForm 
23         : public Tizen::Ui::Controls::Form
24         , public Tizen::Ui::IActionEventListener
25         , public Tizen::Ui::Controls::IFormBackEventListener
26 {
27 public:
28         MainForm(void);
29         virtual ~MainForm(void);
30
31         result Initialize(int panelId);
32         result CreateImagePanel(void);
33
34         virtual result OnInitializing(void);
35         virtual result OnTerminating(void);
36         virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
37         virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
38
39 private:
40         static const int ID_HEADER_ITEM1 = 101;
41         static const int ID_HEADER_ITEM2 = 102;
42         static const int ID_HEADER_ITEM3 = 103;
43         static const int ID_ORIENTATION = 200;
44
45         Tizen::Ui::Controls::Panel* __pPanel[3];
46         Tizen::Ui::Controls::Button* __pButtonOrientation;
47         Tizen::Ui::Orientation __status;
48
49         int __panelId;
50 };
51
52 #endif