1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Provides engine implementation for CallUI. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CAUIDIALOGS_H__ |
|
20 #define __CAUIDIALOGS_H__ |
|
21 |
|
22 // Includes |
|
23 |
|
24 #include "phclttypes.h" |
|
25 #include "cauivoipextension.h" |
|
26 |
|
27 // Forward declarations |
|
28 |
|
29 class CCaUiEngine; |
|
30 class MCaUiReconnectQueryObserver; |
|
31 class CPhCntMatcher; |
|
32 class CAknGlobalListQuery; |
|
33 class CCaUiGlnActiveObject; |
|
34 class CCaUiReConQueryInformation; |
|
35 class CAknGlobalNote; |
|
36 class CCaUiNoteActiveObject; |
|
37 |
|
38 |
|
39 // Contants |
|
40 |
|
41 // The first item in list query (CCaUiQuery). |
|
42 const TInt KCallUiVoiceCall = 0; |
|
43 |
|
44 // The second item in list query (CCaUiQuery). |
|
45 const TInt KCallUiVideoCall = 1; |
|
46 |
|
47 // The third item in list query (CCaUiQuery). |
|
48 const TInt KCallUiInternetCall = 2; |
|
49 |
|
50 // Priority of the note |
|
51 const TInt KNoVideoSupportNotePriority = 3500; |
|
52 |
|
53 // Timeout for note launch. |
|
54 const TInt KCaUiEngNoteTimeout = 3000000; // 3s |
|
55 |
|
56 NONSHARABLE_CLASS( CCaUiDialogs ) |
|
57 : public CBase |
|
58 { |
|
59 |
|
60 public: |
|
61 |
|
62 /** |
|
63 * Two-phased constructor. |
|
64 * @return an instance of CCaUiDialogs. |
|
65 */ |
|
66 static CCaUiDialogs* NewL( CCaUiEngine& aCaUiEngine ); |
|
67 |
|
68 /** |
|
69 * Destructor. |
|
70 */ |
|
71 virtual ~CCaUiDialogs(); |
|
72 |
|
73 /** |
|
74 * Launch a query whether video call will be created with long |
|
75 * press of Send key |
|
76 * |
|
77 * @return The selection user made |
|
78 */ |
|
79 TInt QueryVideoCallDefaultActionL(); |
|
80 |
|
81 /** |
|
82 * Launch a list query asking what type of call the caller wants |
|
83 * to make. |
|
84 * |
|
85 * @param aCallType The call type chosen by user in query. |
|
86 * @return ETrue if query was successful, EFalse otherwise. |
|
87 */ |
|
88 TBool LaunchCreateListQueryL( TPhCltCallType& aCallType ); |
|
89 |
|
90 /** |
|
91 * Launch the qtn.tel.no.video.network information note. |
|
92 * |
|
93 * @see CCaUiEngApi::LaunchNoNetSupNoteL(). |
|
94 */ |
|
95 void LaunchNoNetSupNoteL(); |
|
96 |
|
97 /** |
|
98 * Launch reconnect confirmation query. |
|
99 * |
|
100 * @see CCaUiEngApi::LaunchReconConfQueryL(). |
|
101 * @param aAlias The alias corresponding the number. Can be empty TPtrC. |
|
102 */ |
|
103 void LaunchReconConfQueryL( |
|
104 MCaUiReconnectQueryObserver& aObserver, |
|
105 CPhCntMatcher* aPhCntMatcher, |
|
106 const TPtrC aPhoneNumber, |
|
107 const TBool aIncludeVideoCallOption, |
|
108 const TPtrC aAlias ); |
|
109 |
|
110 /** |
|
111 * Cancel reconnect query. |
|
112 * |
|
113 * @see CCaUiEngApi::CancelReconConfQuery(). |
|
114 */ |
|
115 void CancelReconConfQuery(); |
|
116 |
|
117 /** |
|
118 * Cancel note and reconnect query. |
|
119 * |
|
120 * @see CCaUiEngApi::CancelNoteAndReconConfQuery(). |
|
121 */ |
|
122 void CancelNoteAndReconConfQuery(); |
|
123 |
|
124 /** |
|
125 * Launch note and reconnect confirmation query. |
|
126 * |
|
127 * @see CCaUiEngApi::LaunchNoteAndReconConfQueryL(). |
|
128 * @param aAlias The alias corresponding the number. Can be empty TPtrC. |
|
129 */ |
|
130 void LaunchNoteAndReconConfQueryL( |
|
131 MCaUiReconnectQueryObserver& aObserver, |
|
132 CPhCntMatcher* aPhCntMatcher, |
|
133 const TPtrC aPhoneNumber, |
|
134 const TBool aIncludeVideoCallOption, |
|
135 const TPtrC aNoteText, |
|
136 const TPtrC aAlias ); |
|
137 |
|
138 /** |
|
139 * Check if reconfigure query is ongoing. |
|
140 * @since 3.2 |
|
141 * @return TBool, ETrue if query is ongoing |
|
142 * EFalse if not ongoing. |
|
143 */ |
|
144 TBool IsReconfQueryOngoing(); |
|
145 |
|
146 /** |
|
147 * Set reconfigure query is ongoing. |
|
148 * @since 5.0 |
|
149 */ |
|
150 void SetReconfQueryOngoing( TBool aOngoing ); |
|
151 |
|
152 private: |
|
153 |
|
154 /** |
|
155 * C++ default constructor. |
|
156 */ |
|
157 CCaUiDialogs( CCaUiEngine& aCaUiEngine ); |
|
158 |
|
159 /** |
|
160 * Symbian 2nd phase constructor |
|
161 */ |
|
162 void ConstructL(); |
|
163 |
|
164 /** |
|
165 * Fill list query items |
|
166 * |
|
167 * @since 5.0 |
|
168 * @param aTextArray |
|
169 * @param aMappingList |
|
170 */ |
|
171 void FillListQueryItemsL( |
|
172 CDesCArray& aTextArray, |
|
173 CListMappingArray& aMappingList ); |
|
174 |
|
175 /** |
|
176 * Handle note expiration call back. |
|
177 * |
|
178 * @param aAny This pointer. |
|
179 * @return KErrNone if successful, Symbian error code otherwise. |
|
180 */ |
|
181 static TInt DoPerformNoteLaunchCallBackL( TAny* aAny ); |
|
182 |
|
183 public: // data |
|
184 |
|
185 // tkuuva, create getter/setter |
|
186 //TBool iReconfQueryOngoing; |
|
187 |
|
188 private: //data |
|
189 |
|
190 // The reconnect global list query. |
|
191 CAknGlobalListQuery* iReconListQuery; |
|
192 |
|
193 // The active object to handle reconnect query results. |
|
194 CCaUiGlnActiveObject* iReconActObject; |
|
195 |
|
196 CCaUiEngine& iCaUiEngine; |
|
197 |
|
198 // Owned timer for note launch time-out. |
|
199 CPeriodic* iNoteTimer; |
|
200 |
|
201 // Storage for Reconnect query information. |
|
202 CCaUiReConQueryInformation* iReConQueryInformation; |
|
203 |
|
204 // The qtn.tel.no.video.network note shown to the user. |
|
205 CAknInformationNote* iInfoNote; |
|
206 |
|
207 // ReconfQuery ongoing flag |
|
208 TBool iReconfQueryOngoing; |
|
209 |
|
210 }; |
|
211 |
|
212 #endif // __CAUIDIALOGS_H__ |
|