|
1 /* |
|
2 * Copyright (c) 2006 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: Phone number |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "tphcntnumber.h" |
|
20 |
|
21 // ======== MEMBER FUNCTIONS ======== |
|
22 |
|
23 // --------------------------------------------------------------------------- |
|
24 // Constructor |
|
25 // --------------------------------------------------------------------------- |
|
26 // |
|
27 TPhCntNumber::TPhCntNumber( |
|
28 const TDesC& aNumber, |
|
29 MPhCntMatch::TNumberType aNumberType, |
|
30 TInt aSpeedDialPosition ) : |
|
31 iNumber( aNumber ), |
|
32 iNumberType( aNumberType ), |
|
33 iSpeedDialPosition( aSpeedDialPosition ) |
|
34 { |
|
35 } |
|
36 |
|
37 // --------------------------------------------------------------------------- |
|
38 // Constructor |
|
39 // --------------------------------------------------------------------------- |
|
40 // |
|
41 TPhCntNumber::TPhCntNumber() : |
|
42 iNumber( KNullDesC() ), |
|
43 iNumberType( MPhCntMatch::ENone ), |
|
44 iSpeedDialPosition() |
|
45 { |
|
46 } |
|
47 |
|
48 // --------------------------------------------------------------------------- |
|
49 // Getter |
|
50 // --------------------------------------------------------------------------- |
|
51 // |
|
52 const TDesC& TPhCntNumber::Number() const |
|
53 { |
|
54 return iNumber; |
|
55 } |
|
56 |
|
57 // --------------------------------------------------------------------------- |
|
58 // Getter |
|
59 // --------------------------------------------------------------------------- |
|
60 // |
|
61 MPhCntMatch::TNumberType TPhCntNumber::Type() const |
|
62 { |
|
63 return iNumberType; |
|
64 } |
|
65 |
|
66 // --------------------------------------------------------------------------- |
|
67 // Getter |
|
68 // --------------------------------------------------------------------------- |
|
69 // |
|
70 TInt TPhCntNumber::Position() const |
|
71 { |
|
72 return iSpeedDialPosition; |
|
73 } |
|
74 |
|
75 // --------------------------------------------------------------------------- |
|
76 // Setter |
|
77 // --------------------------------------------------------------------------- |
|
78 // |
|
79 void TPhCntNumber::Set( |
|
80 const TDesC& aNumber, |
|
81 MPhCntMatch::TNumberType aNumberType, |
|
82 TInt aSpeedDialPosition ) |
|
83 { |
|
84 iNumber.Set( aNumber ); |
|
85 iNumberType = aNumberType; |
|
86 iSpeedDialPosition = aSpeedDialPosition; |
|
87 } |
|
88 |