Initialize Tizen 2.3
[apps/osp/Gallery.git] / inc / GlSlideShowPopUp.h
1 //
2 // Tizen Native SDK
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Flora License, Version 1.1 (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://floralicense.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
19 /**
20  * @file    GlSlideShowPopUp.h
21  * @brief       This header file contains the declarations of the SlideShowPopUp
22  *
23  */
24
25 #ifndef _GL_SLIDE_SHOW_POPUP_H_
26 #define _GL_SLIDE_SHOW_POPUP_H_
27
28 #include <FUi.h>
29
30 class ISlideSettingListener;
31
32 class SlideShowPopUp
33         : public Tizen::Ui::Controls::IListViewItemEventListener
34         , public Tizen::Ui::Controls::IListViewItemProvider
35         , public Tizen::Ui::Controls::Popup
36         , public Tizen::Ui::IActionEventListener
37         , public Tizen::Ui::IPropagatedKeyEventListener
38 {
39 public:
40         SlideShowPopUp(void);
41         virtual ~SlideShowPopUp(void);
42
43         bool Initialize(void);
44         virtual result OnTerminating(void);
45
46 public:
47         void SetEventListner(ISlideSettingListener* listner);
48
49         virtual int GetItemCount(void);
50         virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
51         virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
52
53         virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index,
54                         int elementId, Tizen::Ui::Controls::ListContextItemStatus state){};
55         virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId,
56                         Tizen::Ui::Controls::ListItemStatus status);
57         virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index,
58                         Tizen::Ui::Controls::SweepDirection direction){};
59         virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId,
60                         bool& invokeListViewItemCallback){};
61
62         virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
63
64         virtual bool OnKeyPressed(Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo){return false;};
65         virtual bool OnKeyReleased(Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
66         virtual bool OnPreviewKeyPressed(Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo){return false;};
67         virtual bool OnPreviewKeyReleased(Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo){return false;};
68
69 private:
70         Tizen::Ui::Controls::ListView* __pList;
71         ISlideSettingListener* __pListener;
72 };
73
74 #endif /* _GL_SLIDE_SHOW_POPUP_H_ */