3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://floralicense.org/license/
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.
19 * @file ClkSortByPopUp.h
20 * @brief This header file contains the declarations of the SortByPopUp
24 #ifndef _CLK_SORTBY_POPUP_H_
25 #define _CLK_SORTBY_POPUP_H_
37 class ISortByEventListener
40 ISortByEventListener();
41 virtual ~ISortByEventListener();
43 virtual void OnSortByPopUpItemSelected(SortBy sortby ) = 0;
47 : public Tizen::Ui::Controls::Popup
48 , public Tizen::Ui::Controls::IListViewItemEventListener
49 , public Tizen::Ui::Controls::IListViewItemProvider
50 , public Tizen::Ui::IActionEventListener
51 , public Tizen::Ui::IPropagatedKeyEventListener
55 * @brief The Default Constructor
60 * @brief The Default Destructor
65 * @brief Initializes this SettingForm Form.
67 * @return An error code
68 * @exception true The method is succeIOrientationEventListenerssful.
69 * @exception false An error Occured.
71 bool Initialize(void);
74 * This function terminates all the controls
79 virtual result OnTerminating(void);
82 //IListViewItemProvider
83 virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
84 virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
85 virtual int GetItemCount(void);
87 //IActionEventListener
88 virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
90 // IListViewItemEventListener
91 virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state){};
92 virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
93 virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction){};
94 virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback){};
96 //ISortByEventListener
97 ISortByEventListener* GetEventListner(void);
98 void SetEventListner(ISortByEventListener*);
100 void SetDstIndex(int index);
102 virtual bool OnKeyPressed (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
103 virtual bool OnKeyReleased (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo);
104 virtual bool OnPreviewKeyPressed (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
105 virtual bool OnPreviewKeyReleased (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
107 Tizen::Ui::Controls::ListView* __pList;
108 ISortByEventListener *__pListener;
109 Tizen::Base::Collection::ArrayList* __pShareList;
113 #endif /* _CLK_SORTBY_POPUP_H_ */