equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002-2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
35 |
35 |
36 // CONSTANTS |
36 // CONSTANTS |
37 |
37 |
38 // Maximum length of an emergency number |
38 // Maximum length of an emergency number |
39 const TInt KAknEcsMaxMatchingLength = 6; |
39 const TInt KAknEcsMaxMatchingLength = 6; |
|
40 |
|
41 // Minimum length of service call number |
|
42 const TInt KAknServiceCallMinLength = 3; |
40 |
43 |
41 // Separator character for the emergency number string |
44 // Separator character for the emergency number string |
42 _LIT( KAknEcsSeparator, " "); |
45 _LIT( KAknEcsSeparator, " "); |
43 |
46 |
44 // Maximum time in Microseconds between keys in a valid emergency call entry: |
47 // Maximum time in Microseconds between keys in a valid emergency call entry: |
78 EEmpty, |
81 EEmpty, |
79 ENoMatch, |
82 ENoMatch, |
80 EPartialMatch, // Not in use. |
83 EPartialMatch, // Not in use. |
81 ECompleteMatch, |
84 ECompleteMatch, |
82 ECompleteMatchThenSendKey, |
85 ECompleteMatchThenSendKey, |
83 ECallAttempted |
86 ECallAttempted, |
|
87 EServiceNumMatch |
84 }; |
88 }; |
85 |
89 |
86 public: |
90 public: |
87 /** |
91 /** |
88 * C++ destructor |
92 * C++ destructor |
247 /** |
251 /** |
248 * Wraps up the code that acutally sets off the emergency call |
252 * Wraps up the code that acutally sets off the emergency call |
249 */ |
253 */ |
250 void AttemptEmergencyCall(); |
254 void AttemptEmergencyCall(); |
251 |
255 |
|
256 /** |
|
257 * Wraps up the code that actually initiates the service call |
|
258 */ |
|
259 void MakeServiceCallL(); |
|
260 |
252 public: |
261 public: |
253 /** |
262 /** |
254 * This callback is called by a CIdle object to state that the call has been |
263 * This callback is called by a CIdle object to state that the call has been |
255 * attempted. This is called outside the event loop in order allow self-deletion of the |
264 * attempted. This is called outside the event loop in order allow self-deletion of the |
256 * client object. |
265 * client object. |
292 CIdle* iIdler; |
301 CIdle* iIdler; |
293 |
302 |
294 /** Pointer to emergency call observer object */ |
303 /** Pointer to emergency call observer object */ |
295 CPhCltEmergencyCallObserver* iEmergencyCallObserver; |
304 CPhCltEmergencyCallObserver* iEmergencyCallObserver; |
296 |
305 |
297 TInt iSpare_2; |
306 /** Boolean to check if service call is enabled during device or key lock */ |
|
307 TBool iServiceCallEnabled; |
298 }; |
308 }; |
299 |
309 |
300 // |
310 // |
301 // MAknEcsObserver |
311 // MAknEcsObserver |
302 // |
312 // |