|
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 /** |
|
17 @file |
|
18 @internalComponent |
|
19 @deprecated 9.1 |
|
20 */ |
|
21 |
|
22 #ifndef __DIALUTIL_H__ |
|
23 #define __DIALUTIL_H__ |
|
24 |
|
25 #include <dial.h> |
|
26 /** |
|
27 @internalComponent |
|
28 @deprecated 9.1 |
|
29 */ |
|
30 enum TCallType { ELocalCall , ELongDistanceCall, EInternationalCall } ; |
|
31 |
|
32 class TDialNumber |
|
33 /** |
|
34 @internalComponent |
|
35 @deprecated 9.1 |
|
36 */ |
|
37 { |
|
38 public: |
|
39 TDialNumber ( const TDes&, const TDialLocation& , const TChargeCard &); |
|
40 TPtrC IntlPrefCode () const; |
|
41 TPtrC NatPrefCode () const; |
|
42 TPtrC NatCode() const; |
|
43 TPtrC AreaCode() const; |
|
44 TPtrC PhoneNumber() const; |
|
45 TPtrC RuleToUse() const; |
|
46 void CallType ( const TDialLocation & ) ; |
|
47 void RuleToUse ( const TChargeCard & ) ; |
|
48 TBool IsNatCode() const; |
|
49 TBool IsAreaCode() const; |
|
50 TBool IsRuleToUse() const; |
|
51 TCallType CallType() const; |
|
52 private: |
|
53 TInt String (const TDes& aPhoneNumber, TInt aPos) const ; |
|
54 void BracketParser(const TDes& aPhoneNumber) ; |
|
55 void SpaceParser(const TDes& aPhoneNumber) ; |
|
56 TIntlPrefCode iIntlPrefCode ; |
|
57 TNatPrefCode iNatPrefCode; |
|
58 TNatCode iNatCode; |
|
59 TAreaCode iAreaCode; |
|
60 TPhoneNumber iPhoneNumber; |
|
61 TChargeCardRule iRuleToUse; |
|
62 TCallType iCallType; |
|
63 }; |
|
64 |
|
65 class DialUtil |
|
66 /** |
|
67 @internalComponent |
|
68 @deprecated 9.1 |
|
69 */ |
|
70 { |
|
71 public: |
|
72 static TBool AppendDialString(TDes& aDialStr, TPtrC aAppendStr ) ; |
|
73 static TBool AppendDialString(TDes& aDialStr, TChar aChar ) ; |
|
74 static void RemoveSpace (TDes& aDialString); |
|
75 //static TBool PhoneFormatOK( TDes& aPhoneNumber) ; |
|
76 static TInt GeneralParse( |
|
77 TDialString& aDialString, |
|
78 const TDialLocation & aDialLocation , |
|
79 const TChargeCard& aChargeCard , |
|
80 const TDesC& aNumberToDial, |
|
81 TParseMode aParseMode, |
|
82 TCityDialOptions aOption ) ; |
|
83 static void RemoveUndiallableChars (TDes& aDialString) ; |
|
84 }; |
|
85 |
|
86 /** |
|
87 @internalComponent |
|
88 @deprecated 9.1 |
|
89 */ |
|
90 const TUint KCharT='T'; |
|
91 const TUint KCharP='P'; |
|
92 const TUint KCharW='W'; |
|
93 const TUint KCharComma=','; |
|
94 const TUint KCharPlus='+'; |
|
95 const TUint KCharSpace=' '; |
|
96 const TUint KCharELower='e'; |
|
97 const TUint KCharEUpper='E'; |
|
98 const TUint KCharFLower='f'; |
|
99 const TUint KCharFUpper='F'; |
|
100 const TUint KCharILower='i'; |
|
101 const TUint KCharIUpper='I'; |
|
102 const TUint KCharJLower='j'; |
|
103 const TUint KCharJUpper='J'; |
|
104 const TUint KCharGLower='g'; |
|
105 const TUint KCharGUpper='G'; |
|
106 const TUint KCharHLower='h'; |
|
107 const TUint KCharHUpper='H'; |
|
108 const TUint KCharKLower='k'; |
|
109 const TUint KCharKUpper='K'; |
|
110 const TUint KCharStar='*'; |
|
111 const TUint KCharOpenBracket='('; |
|
112 const TUint KCharCloseBracket=')'; |
|
113 const TUint KCharMinus='-'; |
|
114 const TUint KCharUnderscore='_'; |
|
115 const TUint KCharHash='#'; |
|
116 |
|
117 |
|
118 #endif |