1.Set as Contact fix 2.File size limit set to 255
[apps/osp/ImageViewer.git] / inc / IvSlideShowPopUp.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  * @file    SlideShowPopUp.h
20  * @brief       This header file contains the declarations of the SlideShowPopUp
21  *
22  */
23
24 #ifndef _SLIDE_SHOW_POPUP_H_
25 #define _SLIDE_SHOW_POPUP_H_
26
27 #include <FUi.h>
28
29 class ISlideSettingListener;
30
31 class SlideShowPopUp
32   : public Tizen::Ui::Controls::IListViewItemEventListener
33   , public Tizen::Ui::Controls::IListViewItemProvider
34   , public Tizen::Ui::Controls::Popup
35   , public Tizen::Ui::IActionEventListener
36   {
37   public:
38         /**
39          * @brief The Default Constructor
40          */
41           SlideShowPopUp(void);
42
43         /**
44          * @brief The Default Destructor
45          */
46         ~SlideShowPopUp(void);
47
48         /**
49          * @brief Initializes this SettingForm Form.
50          *
51          * @return              An error code
52          * @exception   true                            The method is succeIOrientationEventListenerssful.
53          * @exception   false                           An error Occured.
54          */
55         bool Initialize(void);
56
57         /**
58          * This function terminates all the controls
59          *
60          * @return      result type
61          * @param               No parameter
62          */
63         virtual result OnTerminating(void);
64
65   public:
66
67         //IListViewItemProvider
68         virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
69         virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
70         virtual int GetItemCount(void);
71
72         //IActionEventListener
73         virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
74
75         // IListViewItemEventListener
76         virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state){};
77         virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
78         virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction){};
79         virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback){};
80
81         void SetEventListner(ISlideSettingListener* listner);
82
83   private:
84         Tizen::Ui::Controls::ListView* __pList;
85         ISlideSettingListener* __pListener;
86   };
87
88
89 #endif /* _SLIDE_SHOW_POPUP_H_ */