equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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: Header declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 #ifndef WSOVIUTILS_H |
|
27 #define WSOVIUTILS_H |
|
28 |
|
29 // INCLUDES |
|
30 #include <e32base.h> |
|
31 #include <e32std.h> |
|
32 |
|
33 // CONSTANTS |
|
34 const TInt KHexWidth = 2; |
|
35 const TInt KCharWidth = 1; |
|
36 const TInt KSpaceChar = 32; |
|
37 |
|
38 // FORWARD DECLARATIONS |
|
39 class CMD5; |
|
40 //class RMapDescriptors; |
|
41 |
|
42 // CLASS DECLARATION |
|
43 class CWSOviUtils : public CBase |
|
44 { |
|
45 public: |
|
46 |
|
47 // New functions |
|
48 static HBufC8* NormalizeStringLC(const TDesC8& aMethod, const TDesC8& aUrl, const TDesC8& aHeader ); |
|
49 static HBufC8* DigestAuthStringL(const TDesC8& aNonce, const TDesC8& aTimestamp, const TDesC8& aUser, const TDesC8& aPassword); |
|
50 static HBufC8* EncodeCharsLC(const TDesC8& aString); |
|
51 static HBufC8* FormEncodeCharsLC(const TDesC8& aString); |
|
52 |
|
53 private: |
|
54 |
|
55 ~CWSOviUtils(); |
|
56 // New functions |
|
57 static TInt CountCharsToEncode(const TDesC8& aString); |
|
58 |
|
59 private: // Data |
|
60 |
|
61 |
|
62 }; |
|
63 |
|
64 #endif // WSOVIUTILS_H |
|
65 |
|
66 // End of File |
|
67 |