|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include <dial.h> |
|
17 |
|
18 /** |
|
19 @file |
|
20 @publishedAll |
|
21 @deprecated 9.1 |
|
22 */ |
|
23 |
|
24 /** |
|
25 Creates an empty TChargeCard. |
|
26 @deprecated 9.1 |
|
27 */ |
|
28 EXPORT_C TChargeCard::TChargeCard() |
|
29 {} |
|
30 |
|
31 /** |
|
32 Creates a TChargeCard containing the parameters. |
|
33 |
|
34 @param aNumber This string represents the charge card account number. |
|
35 @param aPin This string represents the charge card PIN number. |
|
36 @param aLocalRule This is a string representing the rule for dialling |
|
37 a local number. Each phone operator has its own rules for |
|
38 dialling local, national and international numbers. |
|
39 @param aNatRule As for aLocalRule but for a national call. |
|
40 @param aIntlRule As for aLocalRule but for an international call. |
|
41 |
|
42 @deprecated 9.1 |
|
43 */ |
|
44 EXPORT_C TChargeCard::TChargeCard( |
|
45 const TChargeCardAccount& aNumber, |
|
46 const TChargeCardPin& aPin, |
|
47 const TChargeCardRule& aLocalRule, |
|
48 const TChargeCardRule& aNatRule, |
|
49 const TChargeCardRule& aIntlRule) |
|
50 : |
|
51 iNumber(aNumber), |
|
52 iPin(aPin), |
|
53 iLocalRule(aLocalRule), |
|
54 iNatRule(aNatRule), |
|
55 iIntlRule(aIntlRule) |
|
56 {} |
|
57 |
|
58 |
|
59 /** |
|
60 Set the string that represents the charge card account number. |
|
61 @deprecated 9.1 |
|
62 */ |
|
63 EXPORT_C void TChargeCard::SetNumber(const TDesC& aNumber) { iNumber.Copy(aNumber);} |
|
64 /** |
|
65 Set the string that represents the charge card PIN number. |
|
66 @deprecated 9.1 |
|
67 */ |
|
68 EXPORT_C void TChargeCard::SetPin(const TDesC& aPin){iPin.Copy(aPin);} |
|
69 /** |
|
70 Set the string that represents the rule for dialling a local number. |
|
71 Each phone operator has its own rules for dialling local, |
|
72 national and international numbers. |
|
73 @deprecated 9.1 |
|
74 */ |
|
75 EXPORT_C void TChargeCard::SetLocalRule (const TDesC& aLocalRule){iLocalRule.Copy(aLocalRule);} |
|
76 /** |
|
77 Set the string that represents the rule for dialling a national number. |
|
78 Each phone operator has its own rules for dialling local, |
|
79 national and international numbers. |
|
80 @deprecated 9.1 |
|
81 */ |
|
82 EXPORT_C void TChargeCard::SetNatRule(const TDesC& aNatRule){iNatRule.Copy(aNatRule);} |
|
83 /** |
|
84 Set the string that represents the rule for dialling an international number. |
|
85 Each phone operator has its own rules for dialling local, |
|
86 national and international numbers. |
|
87 @deprecated 9.1 |
|
88 */ |
|
89 EXPORT_C void TChargeCard::SetIntlRule(const TDesC& aIntlRule){iIntlRule.Copy(aIntlRule);} |
|
90 |
|
91 /** |
|
92 True if the charge card number, PIN number, and |
|
93 the dialling rules (local, national and international) have been set. |
|
94 @deprecated 9.1 |
|
95 */ |
|
96 EXPORT_C TBool TChargeCard::ValidateChargeCardInfo () const |
|
97 { |
|
98 return ( iNumber.Length() && |
|
99 iPin.Length() && |
|
100 iLocalRule.Length() && |
|
101 iNatRule.Length() && |
|
102 iIntlRule.Length() ) ; |
|
103 } |
|
104 |
|
105 /** |
|
106 Returns the string that represents the charge card account number. |
|
107 @deprecated 9.1 |
|
108 */ |
|
109 EXPORT_C TPtrC TChargeCard::Number() const {return TPtrC(iNumber);} |
|
110 /** |
|
111 Returns the string that represents the charge card PIN number. |
|
112 @deprecated 9.1 |
|
113 */ |
|
114 EXPORT_C TPtrC TChargeCard::Pin() const {return TPtrC(iPin);} |
|
115 /** |
|
116 Returns the string that represents the rule for dialling a local number. |
|
117 Each phone operator has its own rules for dialling local, |
|
118 national and international numbers. |
|
119 @deprecated 9.1 |
|
120 */ |
|
121 EXPORT_C TPtrC TChargeCard::LocalRule () const {return TPtrC(iLocalRule);} |
|
122 /** |
|
123 Returns the string that represents the rule for dialling a national number. |
|
124 Each phone operator has its own rules for dialling local, |
|
125 national and international numbers. |
|
126 @deprecated 9.1 |
|
127 */ |
|
128 EXPORT_C TPtrC TChargeCard::NatRule() const {return TPtrC(iNatRule);} |
|
129 /** |
|
130 Returns the string that represents the rule for dialling an |
|
131 international number. Each phone operator has its own rules |
|
132 for dialling local, national and international numbers. |
|
133 @deprecated 9.1 |
|
134 */ |
|
135 EXPORT_C TPtrC TChargeCard::IntlRule() const {return TPtrC(iIntlRule);} |