equal
deleted
inserted
replaced
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // |
14 // |
15 |
15 |
16 |
|
17 |
|
18 /** |
16 /** |
19 @file WSPEncoder.h |
17 @file WSPEncoder.h |
20 @publishedAll |
18 @publishedAll |
21 @released |
19 @deprecated |
22 */ |
20 */ |
23 |
21 |
24 #ifndef __WSPENCODER_H__ |
22 #ifndef __WSPENCODER_H__ |
25 #define __WSPENCODER_H__ |
23 #define __WSPENCODER_H__ |
26 |
24 |
30 #include <stringpool.h> |
28 #include <stringpool.h> |
31 |
29 |
32 /** |
30 /** |
33 enum CodecPanic |
31 enum CodecPanic |
34 @publishedAll |
32 @publishedAll |
35 @released |
33 @deprecated |
36 */ |
34 */ |
37 enum TWspCodecPanic |
35 enum TWspCodecPanic |
38 { |
36 { |
39 /** Due to failure to call StartValueLength function */ |
37 /** Due to failure to call StartValueLength function */ |
40 EWspCodecPanicStartValueLengthNotCalled=0, |
38 EWspCodecPanicStartValueLengthNotCalled=0, |
63 encoder->StartHeaderL(); |
61 encoder->StartHeaderL(); |
64 encoder->AddLongIntL(); |
62 encoder->AddLongIntL(); |
65 encoder->AddTextStringL(); |
63 encoder->AddTextStringL(); |
66 HBufC8* output = encoder->EndHeaderL(); |
64 HBufC8* output = encoder->EndHeaderL(); |
67 @publishedAll |
65 @publishedAll |
68 @released |
66 @deprecated |
69 */ |
67 */ |
70 class CWspHeaderEncoder : public CBase |
68 class CWspHeaderEncoder : public CBase |
71 { |
69 { |
72 public: |
70 public: |
73 IMPORT_C static CWspHeaderEncoder* NewL(); |
71 IMPORT_C static CWspHeaderEncoder* NewL(); |
150 |
148 |
151 /** |
149 /** |
152 Class encapsulating primitive encoding methods which are defined in the WSP standard. |
150 Class encapsulating primitive encoding methods which are defined in the WSP standard. |
153 Input will be encoded and returned in an 8 bit buffer. |
151 Input will be encoded and returned in an 8 bit buffer. |
154 @publishedAll |
152 @publishedAll |
155 @released |
153 @deprecated |
156 */ |
154 */ |
157 class TWspPrimitiveEncoder |
155 class TWspPrimitiveEncoder |
158 { |
156 { |
159 public: |
157 public: |
160 IMPORT_C static TUint8 ShortInt(const TUint8 aValue); |
158 IMPORT_C static TUint8 ShortInt(const TUint8 aValue); |