equal
deleted
inserted
replaced
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: Defines interface for manipulating telephony call menus. |
14 * Description: Defines interface for manipulating telephony call commands. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #ifndef XQTELUICOMMANDEXTENSION_H |
18 #ifndef XQTELUICOMMANDEXTENSION_H |
19 #define XQTELUICOMMANDEXTENSION_H |
19 #define XQTELUICOMMANDEXTENSION_H |
20 |
20 |
21 #include <qobject> |
21 #include <QObject> |
22 #include <hbaction.h> |
22 #include <hbaction.h> |
23 |
23 |
24 |
24 |
25 #ifdef BUILD_DLL |
25 #ifdef BUILD_DLL |
26 #define DLL_EXPORT Q_DECL_EXPORT |
26 #define DLL_EXPORT Q_DECL_EXPORT |
28 #define DLL_EXPORT Q_DECL_IMPORT |
28 #define DLL_EXPORT Q_DECL_IMPORT |
29 #endif |
29 #endif |
30 |
30 |
31 /*! |
31 /*! |
32 XQTelUiCommandExtension |
32 XQTelUiCommandExtension |
33 Defines interface for manipulating telephony call menus. |
33 Defines interface for manipulating telephony call commands. |
34 |
34 |
35 */ |
35 */ |
36 class DLL_EXPORT XQTelUiCommandExtension |
36 class DLL_EXPORT XQTelUiCommandExtension |
37 { |
37 { |
38 |
38 |
68 bool mIsExpanded; |
68 bool mIsExpanded; |
69 |
69 |
70 }; |
70 }; |
71 |
71 |
72 /*! |
72 /*! |
|
73 Capsulates Tool Bar command info. |
|
74 */ |
|
75 class ToolBarCommand |
|
76 { |
|
77 public: |
|
78 |
|
79 // Tool Bar command Id |
|
80 int mCommandId; |
|
81 |
|
82 // Is command enabled |
|
83 bool mIsEnabled; |
|
84 |
|
85 }; |
|
86 |
|
87 /*! |
73 \fn void modifyMenuItemList(QList<int> &menuCmdList) |
88 \fn void modifyMenuItemList(QList<int> &menuCmdList) |
74 |
89 |
75 Modifies menu command list. CallInfo contains current call information and |
90 Modifies menu command list. CallInfo contains current call information and |
76 menuCmdList contains current list of menu commands. |
91 menuCmdList contains current list of menu commands. |
77 Interface can add new commands which should be hanled by telephony |
92 Interface can add new commands which should be hanled by telephony |
93 handling (maximum amount of push button commands is 2 and list |
108 handling (maximum amount of push button commands is 2 and list |
94 index 0 is used for right button). |
109 index 0 is used for right button). |
95 */ |
110 */ |
96 virtual void modifyPushButtonCommandList(const QList<CallInfo> &callInfo, |
111 virtual void modifyPushButtonCommandList(const QList<CallInfo> &callInfo, |
97 QList<int> &buttonCmdList) = 0; |
112 QList<int> &buttonCmdList) = 0; |
|
113 |
|
114 |
|
115 /*! |
|
116 \fn void modifyToolBarCommandList(QList<int> &menuCmdList) |
|
117 |
|
118 Modifies tool bar command list. CallInfo contains current call |
|
119 information and toolBarCmdList contains current list of tool |
|
120 bar commands. |
|
121 Interface can remove/disable commands if the command list contains |
|
122 unsupported call commands (For example if service doesn't support |
|
123 conference call) or add commads which should be handled by telephony |
|
124 call handling (maximum amount of tool bar commands is 4 and list |
|
125 index 0 is used for right button). |
|
126 */ |
|
127 virtual void modifyToolBarCommandList(const QList<CallInfo> &callInfo, |
|
128 QList<ToolBarCommand> &toolBarCmdList) = 0; |
98 |
129 |
99 /*! |
130 /*! |
100 \fn void addMenuActions(QList<HbAction*> &menuActions) |
131 \fn void addMenuActions(QList<HbAction*> &menuActions) |
101 |
132 |
102 Adds custom actions to the call menu. CallInfo contains current call |
133 Adds custom actions to the call menu. CallInfo contains current call |