1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-2010 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". |
43 * Verifies that the given string is a valid phone number. |
42 * Verifies that the given string is a valid phone number. |
44 * Rules: |
43 * Rules: |
45 * - '+' is only allowed as the first character |
44 * - '+' is only allowed as the first character |
46 * - The phone number part must be between 3-40 digits |
45 * - The phone number part must be between 3-40 digits |
47 * |
46 * |
48 * @since S60 v5.2 |
|
49 * @param in aNumber Vmbx number |
47 * @param in aNumber Vmbx number |
50 * @return ETrue if valid number |
48 * @return ETrue if valid number |
51 */ |
49 */ |
52 static TBool IsValidPhoneNumber( const TDesC& aNumber ); |
50 static TBool IsValidPhoneNumber( const TDesC& aNumber ); |
53 |
51 |
54 /** |
52 /** |
55 /** |
53 /** |
56 * Returns active ALS |
54 * Returns active ALS |
57 * |
55 * |
58 * @since S60 v5.2 |
|
59 * @return Active ALS line |
56 * @return Active ALS line |
60 */ |
57 */ |
61 static TVmbxAlsLineType AlsLine(); |
58 static TVmbxAlsLineType AlsLine(); |
62 |
59 |
63 /** |
60 /** |
64 * Returns state of the video support |
61 * Returns state of the video support |
65 * |
62 * |
66 * @since S60 v5.2 |
|
67 * @return ETrue if Video supported |
63 * @return ETrue if Video supported |
68 */ |
64 */ |
69 static TBool VideoSupported(); |
65 static TBool VideoSupported(); |
70 |
66 |
71 /** |
67 /** |
72 * Returns state of the VoIP Support |
68 * Returns state of the VoIP Support |
73 * |
69 * |
74 * @since S60 v5.2 |
|
75 * @return ETrue if VoIP Supported |
70 * @return ETrue if VoIP Supported |
76 */ |
71 */ |
77 static TBool VoIPSupported(); |
72 static TBool VoIPSupported(); |
78 |
73 |
79 /** |
74 /** |
80 * Verifies that the given number is not an emergency number. |
75 * Verifies that the given number is not an emergency number. |
81 * |
76 * |
82 * @since S60 v5.2 |
|
83 * @param in aNumber Mailbox number |
77 * @param in aNumber Mailbox number |
84 * @return ETrue if emergency number |
78 * @return ETrue if emergency number |
85 */ |
79 */ |
86 static TBool IsEmergencyNumber( const TDesC& aNumber ); |
80 static TBool IsEmergencyNumber( const TDesC& aNumber ); |
87 |
81 |
88 private: |
82 private: |
89 |
83 |
90 /** |
84 /** |
91 * Verifies that the given string is a valid SS. |
|
92 * |
|
93 * @since S60 v5.2 |
|
94 * @param in&out aLexer string to be validate |
|
95 * @return ETrue if supplementary service code validate |
|
96 */ |
|
97 static TBool ValidateSsNum( TLex& aLexer ); |
|
98 |
|
99 /** |
|
100 * Verifies that the given string is a valid Tel number. |
85 * Verifies that the given string is a valid Tel number. |
101 * |
86 * |
102 * @since S60 v5.2 |
|
103 * @param in aLexer string to be validate |
87 * @param in aLexer string to be validate |
104 * @return ETrue if tel number validate |
88 * @return ETrue if tel number validate |
105 */ |
89 */ |
106 static TBool ValidateTelNum( TLex& aLexer ); |
90 static TBool ValidateTelNum( TLex& aLexer ); |
107 |
91 |
108 /** |
92 /** |
109 * Verifies that the given string is a valid DTMF number. |
93 * Verifies that the given string is a valid DTMF number. |
110 * |
94 * |
111 * @since S60 v5.2 |
|
112 * @param in aLexer string to be validate |
95 * @param in aLexer string to be validate |
113 * @return ETrue if DTMf validate |
96 * @return ETrue if DTMf validate |
114 */ |
97 */ |
115 static TBool ValdateDtmfPart( TLex& aLexer ); |
98 static TBool ValdateDtmfPart( TLex& aLexer ); |
116 |
99 |
117 }; |
100 }; |
118 |
101 |
119 #endif // VMBXUTILITIES_H |
102 #endif // VMBXUTILITIES_H |