equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009-2010 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 * Initial Contributors: |
|
9 * Nokia Corporation - initial contribution. |
|
10 * Contributors: |
|
11 * |
|
12 * Description: |
|
13 * MSRP Implementation |
|
14 * |
|
15 */ |
|
16 |
|
17 #ifndef __TMSRPHEADERUTIL_H__ |
|
18 #define __TMSRPHEADERUTIL_H__ |
|
19 |
|
20 // INCLUDES |
|
21 #include <e32base.h> |
|
22 |
|
23 // CLASS DEFINITION |
|
24 /** |
|
25 * Static utility class, used by MSRP Client |
|
26 */ |
|
27 class TMSRPHeaderUtil |
|
28 { |
|
29 |
|
30 public: |
|
31 |
|
32 /** |
|
33 * Convert given string to a number, leaves if string cannot be converted |
|
34 * @param aString string to be converted |
|
35 * @return string converted to number |
|
36 */ |
|
37 static TInt ConvertToNumber( const TDesC8& aString ); |
|
38 |
|
39 /** |
|
40 * Append a string from a destination to source descriptor |
|
41 * @param aSource string to be added |
|
42 * @param aDest destination descriptor |
|
43 */ |
|
44 static void AppendStringL( const TDesC8& aString, TDes8& aDest ); |
|
45 |
|
46 /** |
|
47 * Checks that given string consists of only the allowed characters |
|
48 * @param aString string to check |
|
49 * @return True if string valid, false if contained illegal characters |
|
50 */ |
|
51 static TBool CheckStringValidity( const TDesC8& aString ); |
|
52 }; |
|
53 |
|
54 #endif // __TMSRPHEADERUTIL_H__ |
|
55 |
|
56 // End of File |