Initialize Tizen 2.3
[apps/osp/Call.git] / inc / CallSpeedDialPopup.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.1 (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
7 //
8 //     http://floralicense.org/license/
9 //
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.
15 //
16
17 /**
18  * @file                CallSpeedDialPopup.h
19  * @brief               This is the header file for the %SpeedDialPopup class.
20  *
21  * This header file contains the declarations for %SpeedDialPopup class.
22  */
23 #ifndef _PHN_SPEED_DIAL_POPUP_H_
24 #define _PHN_SPEED_DIAL_POPUP_H_
25
26 #include <FApp.h>
27 #include <FUi.h>
28
29 #include "CallIPopupItemSelectListener.h"
30
31 /**
32  * @class SpeedDialPopup
33  * @brief This class provides popup messages in Speed dial settings form.
34  *
35  */
36 class SpeedDialPopup
37         : public Tizen::Ui::Controls::Popup
38         , public Tizen::Ui::Controls::IListViewItemEventListener
39         , public Tizen::Ui::Controls::IListViewItemProvider
40         , public Tizen::Ui::IActionEventListener
41 {
42
43 public:
44         SpeedDialPopup(IPopupItemSelectListener& listener);
45         virtual ~SpeedDialPopup(void);
46         int Initialize(void);
47
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);
53
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);
58
59         // From IActionEventListener
60         void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
61
62 private:
63         void ConstructListData(void);
64
65 private:
66         Tizen::Ui::Controls::Button* __pCancelButton;
67         IPopupItemSelectListener& __popupListener;
68         Tizen::Base::Collection::ArrayList* __pListItemArray;
69 };
70
71 #endif // _PHN_SPEED_DIAL_POPUP_H_