|
1 /* |
|
2 * Copyright (c) 2002-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: Handler for phone numbers. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "CPhoneGsmPhoneNumberHandler.h" |
|
21 #include "CPhoneGsmPhoneNumberParser.h" |
|
22 #include "CPhoneGsmParserResult.h" |
|
23 |
|
24 // CONSTANTS |
|
25 const TInt KPhonePhoneNumberDialParam = 0; |
|
26 const TInt KPhonePhoneNumberPostfixParam = 1; |
|
27 |
|
28 // ============================ MEMBER FUNCTIONS =============================== |
|
29 |
|
30 // ----------------------------------------------------------------------------- |
|
31 // CPhoneGsmPhoneNumberHandler::ProcessL |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 EXPORT_C void CPhoneGsmPhoneNumberHandler::ProcessL( |
|
35 CPhoneGsmParserResult& aResult ) |
|
36 { |
|
37 if ( aResult.Uid() == KPhoneUidPhoneNumber ) |
|
38 { |
|
39 TPtrC number( aResult.ParameterAt( KPhonePhoneNumberDialParam ) ); |
|
40 TPtrC postfix( aResult.ParameterAt( KPhonePhoneNumberPostfixParam ) ); |
|
41 TClir clirover = EClirDefault; |
|
42 |
|
43 if ( aResult.AuxInformation() == KPhoneDialSuppressClir ) |
|
44 { |
|
45 clirover = EClirSuppress; |
|
46 } |
|
47 else if ( aResult.AuxInformation() == KPhoneDialInvokeClir ) |
|
48 { |
|
49 clirover = EClirInvoke; |
|
50 } |
|
51 |
|
52 ProcessDialToNumberL( number, postfix, clirover ); |
|
53 } |
|
54 |
|
55 } |
|
56 |
|
57 // End of File |