SlideShow menu implementation
[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.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
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 <FApp.h>
29 #include <FBase.h>
30 #include <FUi.h>
31
32
33 class ISlideSettingListener;
34
35 class SlideShowPopUp
36   : public Tizen::Ui::Controls::IListViewItemEventListener
37   , public Tizen::Ui::Controls::IListViewItemProvider
38   , public Tizen::Ui::Controls::Popup
39   , public Tizen::Ui::IActionEventListener
40   {
41   public:
42         /**
43          * @brief The Default Constructor
44          */
45           SlideShowPopUp(void);
46
47         /**
48          * @brief The Default Destructor
49          */
50         ~SlideShowPopUp(void);
51
52         /**
53          * @brief Initializes this SettingForm Form.
54          *
55          * @return              An error code
56          * @exception   true                            The method is succeIOrientationEventListenerssful.
57          * @exception   false                           An error Occured.
58          */
59         bool Initialize(void);
60
61         /**
62          * This function terminates all the controls
63          *
64          * @return      result type
65          * @param               No parameter
66          */
67         virtual result OnTerminating(void);
68
69   public:
70
71         //IListViewItemProvider
72         virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
73         virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
74         virtual int GetItemCount(void);
75
76         //IActionEventListener
77         virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
78
79         // IListViewItemEventListener
80         virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state){};
81         virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
82         virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction){};
83         virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback){};
84
85         void SetEventListner(ISlideSettingListener* listner);
86
87   private:
88         Tizen::Ui::Controls::ListView* __pList;
89         ISlideSettingListener* __pListener;
90   };
91
92
93 #endif /* _GL_SLIDE_SHOW_POPUP_H_ */