22 #include <QString> |
22 #include <QString> |
23 #include <hbmenu.h> |
23 #include <hbmenu.h> |
24 #include <spdefinitions.h> |
24 #include <spdefinitions.h> |
25 #include "phonecommandextensionwrapper.h" |
25 #include "phonecommandextensionwrapper.h" |
26 #include "phoneuiqtviewif.h" |
26 #include "phoneuiqtviewif.h" |
27 #include "phoneaction.h" |
|
28 |
27 |
29 // FORWARD DECLARATION |
28 // FORWARD DECLARATION |
30 class HbAction; |
29 class HbAction; |
31 |
30 |
32 class PhoneUiCommandController : public QObject |
31 class PhoneUiCommandController : public QObject |
69 \fn void pushButtonActionsForCall () |
68 \fn void pushButtonActionsForCall () |
70 |
69 |
71 Returns push button actions for call. |
70 Returns push button actions for call. |
72 |
71 |
73 */ |
72 */ |
74 QMap<PhoneAction::ActionType, PhoneAction *> pushButtonActionsForCall( |
73 QList<HbAction *> pushButtonActionsForCall( |
75 int callState, |
74 int callState, |
76 bool emergencyCall, |
75 bool emergencyCall, |
77 QMap<int,int> callStates, |
76 QMap<int,int> callStates, |
78 QMap<int,int> serviceIds, |
77 QMap<int,int> serviceIds, |
79 int serviceId, |
78 int serviceId, |
83 \fn void toolBarActions () |
82 \fn void toolBarActions () |
84 |
83 |
85 Returns tool bar actions for call. |
84 Returns tool bar actions for call. |
86 |
85 |
87 */ |
86 */ |
88 QList<PhoneAction *> toolBarActions( |
87 QList<HbAction *> toolBarActions( |
89 int resourceId, |
88 int resourceId, |
90 QMap<int,int> callStates, |
89 QMap<int,int> callStates, |
91 QMap<int,int> serviceIds, |
90 QMap<int,int> serviceIds, |
92 int serviceId, |
91 int serviceId, |
93 int callId); |
92 int callId); |
191 |
190 |
192 Sets multi call button flag. (Flag will be set as true when active |
191 Sets multi call button flag. (Flag will be set as true when active |
193 and held calls exists). |
192 and held calls exists). |
194 */ |
193 */ |
195 void setMultiCallFlag(QList<int> callStates) const; |
194 void setMultiCallFlag(QList<int> callStates) const; |
196 |
195 |
197 /*! |
|
198 \fn void mapToExtensionToolBarItems() |
|
199 |
|
200 Maps phone action tool bar item list to ui command extension |
|
201 tool bar item list. |
|
202 */ |
|
203 void mapToExtensionToolBarItems( |
|
204 const QList<PhoneAction::ToolBarItem> &sourceList, |
|
205 QList<XQTelUiCommandExtension::ToolBarCommand> &toolBarCmdList) const; |
|
206 |
|
207 /*! |
|
208 \fn void mapToPhoneActionToolBarItems() |
|
209 |
|
210 Maps ui command extension tool bar item list to phone action |
|
211 tool bar item list. |
|
212 */ |
|
213 void mapToPhoneActionToolBarItems( |
|
214 const QList<XQTelUiCommandExtension::ToolBarCommand> &sourceList, |
|
215 QList<PhoneAction::ToolBarItem> &commandList) const; |
|
216 |
|
217 /*! |
196 /*! |
218 \fn void buttonCommandList() |
197 \fn void buttonCommandList() |
219 |
198 |
220 Returns push button command list. |
199 Returns push button command list. |
221 */ |
200 */ |
222 QList<int> buttonCommandList(int callState, |
201 QList<int> buttonCommandList(int callState, |
223 bool emergencyCall, |
202 bool emergencyCall, |
224 QList<int> callStates) const; |
203 QList<int> callStates) const; |
225 |
204 |
226 /*! |
205 /*! |
227 \fn void mapCommandToAction() |
206 \fn HbAction *createAction(int extensionCommand, bool enabled) |
228 |
207 |
229 Maps push button command to phone action. |
208 Converts given extension command id to HbAction. |
230 */ |
209 |
231 PhoneAction *mapCommandToAction(int command, |
210 Returns action. |
232 bool disabled=false) const; |
211 */ |
|
212 HbAction *createAction(int extensionCommand, bool enabled = true) const; |
233 |
213 |
234 /*! |
214 /*! |
235 \fn void emergencyCall() |
215 \fn void emergencyCall() |
236 |
216 |
237 Checks is an emergency call ongoing. |
217 Checks is an emergency call ongoing. |