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 PhnSettingsCallStatusTonesForm.h
19 * @brief This is the header file for the %SettingsCallStatusTonesForm class.
21 * This header file contains the declarations for %SettingsCallStatusTonesForm class.
23 #ifndef _PHN_SETTINGS_CALL_STATUS_TONES_FORM_H_
24 #define _PHN_SETTINGS_CALL_STATUS_TONES_FORM_H_
29 class SettingsPresentationModel;
32 * @class SettingsCallStatusTonesForm
33 * @brief This class presents a settings form based UI for call settings - call status tones.
36 class SettingsCallStatusTonesForm
37 : public Tizen::Ui::IActionEventListener
38 , public Tizen::Ui::Controls::Form
39 , public Tizen::Ui::Controls::IFormBackEventListener
40 , public Tizen::Ui::Controls::IGroupedTableViewItemProvider
41 , public Tizen::Ui::Controls::IGroupedTableViewItemEventListener
42 , public Tizen::Ui::Scenes::ISceneEventListener
45 SettingsCallStatusTonesForm(void);
46 virtual ~SettingsCallStatusTonesForm(void);
47 void Initialize(void);
50 virtual result OnInitializing(void);
51 virtual result OnTerminating(void);
52 virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
53 virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
54 virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
55 virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
57 //From IGroupedTableViewItemEventListener - Called when the state of a TableViewGroupItem is changed.
58 virtual void OnGroupedTableViewGroupItemStateChanged(Tizen::Ui::Controls::GroupedTableView& tableView, int groupIndex, Tizen::Ui::Controls::TableViewGroupItem* pItem, Tizen::Ui::Controls::TableViewItemStatus status){};
59 //From IGroupedTableViewItemEventListener - Called when the state of a TableViewItem in the GroupedTableView is changed.
60 virtual void OnGroupedTableViewItemStateChanged(Tizen::Ui::Controls::GroupedTableView& tableView, int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem, Tizen::Ui::Controls::TableViewItemStatus status);
61 //From IGroupedTableViewItemEventListener - Called when the TableViewContextItem is opened or closed.
62 virtual void OnGroupedTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::GroupedTableView& tableView, int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewContextItem* pContextItem, bool activated){};
64 //From IGroupedTableViewItemProvider - Gets the total number of groups.
65 virtual int GetGroupCount(void);
66 //From IGroupedTableViewItemProvider - Gets the total number of items in the specified group.
67 virtual int GetItemCount(int groupIndex);
68 //From IGroupedTableViewItemProvider - Gets the group item for the specified index from the item provider.
69 virtual Tizen::Ui::Controls::TableViewGroupItem* CreateGroupItem(int groupIndex, int itemWidth);
70 //From IGroupedTableViewItemProvider - Deletes the specified group item.
71 virtual bool DeleteGroupItem(int groupIndex, Tizen::Ui::Controls::TableViewGroupItem* pItem);
72 //From IGroupedTableViewItemProvider - Updates the specified group item.
73 virtual void UpdateGroupItem(int groupIndex, Tizen::Ui::Controls::TableViewGroupItem* pItem);
74 //From IGroupedTableViewItemProvider - Creates the specified item.
75 virtual Tizen::Ui::Controls::TableViewItem* CreateItem(int groupIndex, int itemIndex, int itemWidth);
76 //From IGroupedTableViewItemProvider - Deletes the specified item.
77 virtual bool DeleteItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
78 //From IGroupedTableViewItemProvider - Updates the specified item.
79 virtual void UpdateItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
80 //From IGroupedTableViewItemProvider - Gets the default height of an group item.
81 virtual int GetDefaultGroupItemHeight(void);
82 //From IGroupedTableViewItemProvider - Gets the default height of an item.
83 virtual int GetDefaultItemHeight(void);
86 //create call reminders status menu
87 result InitializeGroupedTableView(void);
94 GROUP_CALL_CONNECT_HLPTXT,
96 GROUP_CALL_REMINDER_HLPTXT,
98 GROUP_CALL_END_HLPTXT,
99 GROUP_TOTALCOUNT, //always the last element to get group count
102 //Items for "GROUP_CALL_CONNECT" group
103 enum CallConnectItems
105 CALLCONNECT_CONNECT_TONE,
106 CALLCONNECT_TOTALCOUNT,
109 //Items for "GROUP_CALL_REMINDER" group
110 enum CallReminderItems
112 CALLREMINDER_MINUTE_REMINDERS,
113 CALLREMINDER_TOTALCOUNT,
116 //Items for "GROUP_CALL_END" group
124 SettingsPresentationModel* __pSettingsPresentor;
127 #endif //_PHN_SETTINGS_CALL_STATUS_TONES_FORM_H_