2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://floralicense.org/license/
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file CallSpeedDialPopup.h
19 * @brief This is the header file for the %SpeedDialPopup class.
21 * This header file contains the declarations for %SpeedDialPopup class.
23 #ifndef _PHN_SPEED_DIAL_POPUP_H_
24 #define _PHN_SPEED_DIAL_POPUP_H_
29 #include "CallIPopupItemSelectListener.h"
32 * @class SpeedDialPopup
33 * @brief This class provides popup messages in Speed dial settings form.
37 : public Tizen::Ui::Controls::Popup
38 , public Tizen::Ui::Controls::IListViewItemEventListener
39 , public Tizen::Ui::Controls::IListViewItemProvider
40 , public Tizen::Ui::IActionEventListener
44 SpeedDialPopup(IPopupItemSelectListener& listener);
45 virtual ~SpeedDialPopup(void);
48 // IListViewItemEventListener
49 virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state);
50 virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
51 virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction);
52 virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback);
54 //IListViewItemProvider
55 virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
56 virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
57 virtual int GetItemCount(void);
59 // From IActionEventListener
60 void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
63 void ConstructListData(void);
66 Tizen::Ui::Controls::Button* __pCancelButton;
67 IPopupItemSelectListener& __popupListener;
68 Tizen::Base::Collection::ArrayList* __pListItemArray;
71 #endif // _PHN_SPEED_DIAL_POPUP_H_