Tizen 2.1 base
[sdk/ide/native-sample.git] / samples / native / cpp / Sample / Tizen C++ / SceneManagement / SceneManagement / project / inc / InformationForm.h
1 //
2 // Tizen C++ SDK
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
18 #ifndef _INFORMATION_FORM_H_
19 #define _INFORMATION_FORM_H_
20
21 #include <FBase.h>
22 #include <FUi.h>
23
24
25 class InformationForm
26         : public Osp::Ui::Controls::Form
27         , public Osp::Ui::IActionEventListener
28         , public Osp::Ui::Controls::IFormBackEventListener
29         , public Osp::Ui::Scenes::ISceneEventListener
30         , public Osp::Ui::Controls::IListViewItemProvider
31 {
32 public:
33         InformationForm(void);
34         virtual ~InformationForm(void);
35         bool Initialize(void);
36
37         result OnInitializing(void);
38         result OnTerminating(void);
39         // ISceneEventListener
40         virtual void OnSceneActivatedN(const Osp::Ui::Scenes::SceneId& previousSceneId,
41                                                                    const Osp::Ui::Scenes::SceneId& currentSceneId, Osp::Base::Collection::IList* pArgs);
42         virtual void OnSceneDeactivated(const Osp::Ui::Scenes::SceneId& currentSceneId,
43                                                                         const Osp::Ui::Scenes::SceneId& nextSceneId);
44         virtual void OnActionPerformed(const Osp::Ui::Control& source, int actionId);
45         virtual void OnFormBackRequested(Osp::Ui::Controls::Form& source);
46         // IListViewItemProvider
47         virtual Osp::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
48         virtual bool DeleteItem(int index, Osp::Ui::Controls::ListItemBase *pItem, int itemWidth);
49         virtual int GetItemCount(void);
50
51 private:
52         Osp::Base::Collection::IListT<Osp::Ui::Scenes::SceneId>* __pSceneIdList;
53 };
54
55 #endif // _INFORMATION_FORM_H_