equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2002-2008 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". |
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 |
40 |
41 // Minimum length of service call number |
|
42 const TInt KAknServiceCallMinLength = 3; |
|
43 |
|
44 // Separator character for the emergency number string |
41 // Separator character for the emergency number string |
45 _LIT( KAknEcsSeparator, " "); |
42 _LIT( KAknEcsSeparator, " "); |
46 |
43 |
47 // Maximum time in Microseconds between keys in a valid emergency call entry: |
44 // Maximum time in Microseconds between keys in a valid emergency call entry: |
48 const TInt KEcsInterKeyTimeout = 10000000; |
45 const TInt KEcsInterKeyTimeout = 4000000; |
49 |
46 |
50 // Deprecated |
47 // Deprecated |
51 const TInt KAknMaxEmergencyNumberString = 200; |
48 const TInt KAknMaxEmergencyNumberString = 200; |
52 |
49 |
53 // FORWARD DECLARATIONS |
50 // FORWARD DECLARATIONS |
81 EEmpty, |
78 EEmpty, |
82 ENoMatch, |
79 ENoMatch, |
83 EPartialMatch, // Not in use. |
80 EPartialMatch, // Not in use. |
84 ECompleteMatch, |
81 ECompleteMatch, |
85 ECompleteMatchThenSendKey, |
82 ECompleteMatchThenSendKey, |
86 ECallAttempted, |
83 ECallAttempted |
87 EServiceNumMatch |
|
88 }; |
84 }; |
89 |
85 |
90 public: |
86 public: |
91 /** |
87 /** |
92 * C++ destructor |
88 * C++ destructor |
251 /** |
247 /** |
252 * Wraps up the code that acutally sets off the emergency call |
248 * Wraps up the code that acutally sets off the emergency call |
253 */ |
249 */ |
254 void AttemptEmergencyCall(); |
250 void AttemptEmergencyCall(); |
255 |
251 |
256 /** |
|
257 * Wraps up the code that actually initiates the service call |
|
258 */ |
|
259 void MakeServiceCallL(); |
|
260 |
|
261 public: |
252 public: |
262 /** |
253 /** |
263 * This callback is called by a CIdle object to state that the call has been |
254 * This callback is called by a CIdle object to state that the call has been |
264 * attempted. This is called outside the event loop in order allow self-deletion of the |
255 * attempted. This is called outside the event loop in order allow self-deletion of the |
265 * client object. |
256 * client object. |
301 CIdle* iIdler; |
292 CIdle* iIdler; |
302 |
293 |
303 /** Pointer to emergency call observer object */ |
294 /** Pointer to emergency call observer object */ |
304 CPhCltEmergencyCallObserver* iEmergencyCallObserver; |
295 CPhCltEmergencyCallObserver* iEmergencyCallObserver; |
305 |
296 |
306 /** Boolean to check if service call is enabled during device or key lock */ |
297 TInt iSpare_2; |
307 TBool iServiceCallEnabled; |
|
308 }; |
298 }; |
309 |
299 |
310 // |
300 // |
311 // MAknEcsObserver |
301 // MAknEcsObserver |
312 // |
302 // |