author | Nithin Vijay <nithin.vjay@nokia.com> |
Tue, 20 Apr 2010 17:00:49 +0100 | |
branch | RCL_3 |
changeset 18 | 50bae5c5c85f |
permissions | -rw-r--r-- |
18
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
1 |
// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
2 |
// All rights reserved. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
3 |
// This component and the accompanying materials are made available |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
4 |
// under the terms of "Eclipse Public License v1.0" |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
5 |
// which accompanies this distribution, and is available |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
7 |
// |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
8 |
// Initial Contributors: |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
9 |
// Nokia Corporation - initial contribution. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
10 |
// |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
11 |
// Contributors: |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
12 |
// |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
13 |
// Description: |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
14 |
// |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
15 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
16 |
#ifndef __CLWSPPDUHANDLER_H__ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
17 |
#define __CLWSPPDUHANDLER_H__ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
18 |
#include <e32std.h> |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
19 |
#include <wapmessage.h> |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
20 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
21 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
22 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
23 |
The connectionless WSP PDU type definition. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
24 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
25 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
26 |
enum TWSPPduType |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
27 |
{ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
28 |
/** the Reply PDU type assignment |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
29 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
30 |
EReply =0x04, |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
31 |
/** the Push PDU type assignment |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
32 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
33 |
EPush =0x06, |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
34 |
/** the Get PDU type assignment |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
35 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
36 |
EGet =0x40, |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
37 |
/** the GetOption PDU type assignment |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
38 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
39 |
EGetOptions =0x41, |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
40 |
/** the Gethead PDU type assignment |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
41 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
42 |
EGetHead =0x42, |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
43 |
/** the GetDelete PDU type assignment |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
44 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
45 |
EGetDelete =0x43, |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
46 |
/** the GetTrace PDU type assignment |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
47 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
48 |
EGetTrace =0x44, |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
49 |
/** the Post PDU type assignment |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
50 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
51 |
EPost =0x60, |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
52 |
/** the PostPut PDU type assignment |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
53 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
54 |
EPostPut =0x61 |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
55 |
}; |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
56 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
57 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
58 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
59 |
The offset of the transactionID field in WSP PDU. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
60 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
61 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
62 |
const TUint KPDUHeaderTransactionIDOffSet =0; |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
63 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
64 |
The offset of the WSP PDU type field in WSP PDU. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
65 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
66 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
67 |
const TUint KPDUHeaderWSPPDUTypeOffSet =1; |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
68 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
69 |
The offset of WSP field. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
70 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
71 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
72 |
const TUint KPDUFieldOffset =2; |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
73 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
74 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
75 |
The length of transactionID+PDUType |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
76 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
77 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
78 |
const TUint8 KPDUTransactionIDAndPDUTypeLength =2; |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
79 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
80 |
The length of WSP status |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
81 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
82 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
83 |
const TUint8 KWSPStatusLength =1; |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
84 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
85 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
86 |
The mask of top 3 bits in varible length Unsigned integer |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
87 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
88 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
89 |
const TUint8 KTop3BitSet = 0x70; |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
90 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
91 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
92 |
The mask to valide each byte in varible length Unsigned integer |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
93 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
94 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
95 |
const TUint8 KWapQuote = 0x7F; |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
96 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
97 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
98 |
The mask of carry bit in each byte in varible length Unsigned integer |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
99 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
100 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
101 |
const TUint8 KCarryBitMask = 0x80; |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
102 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
103 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
104 |
Maximum length for varible length Unsigned integer |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
105 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
106 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
107 |
const TUint8 KMaxUintVarLength = 5; |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
108 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
109 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
110 |
shift 7 bits for each byte in Uint32 |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
111 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
112 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
113 |
const TUint8 KUIntVarOctetShift = 7; |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
114 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
115 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
116 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
117 |
class CCLWSPPduHandler |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
118 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
119 |
The Connectionless WSP PDU Handler. This class provides a set of static interfaces |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
120 |
for WAP message APIs to pack and unpack the WSP PDU. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
121 |
For error codes returned by methods in this class, see <wapmsgerr.h>. Most methods can |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
122 |
return a set of general errors, with some returning additional specific errors. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
123 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
124 |
{ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
125 |
public: |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
126 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
127 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
128 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
129 |
public: // Public Interfaces |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
130 |
static void UnpackWSPPduL(HBufC8* aWSPPdu, TWSPPduType& aType, HBufC8*& aWSPHeader, HBufC8*& aBody, TUint8& aId, TWSPStatus& aStatus); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
131 |
static void PackWSPPduL(HBufC8*& aWSPPdu, TWSPPduType aType, const TDesC& aURI, const TDesC8& aWSPHeader, const TDesC8& aBody, const TUint8 aId); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
132 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
133 |
private: // private methods |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
134 |
static void UnpackPushPduL(HBufC8* aWSPPdu, HBufC8*& aWSPHeader, HBufC8*& aBody); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
135 |
static void UnpackReplyPduL(HBufC8* aWSPPdu, HBufC8*& aWSPHeader, HBufC8*& aBody, TWSPStatus& aStatus); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
136 |
static void PackPostPduL(HBufC8*& aWSPPdu, TWSPPduType aType, const TDesC& aURI, const TDesC8& aWSPHeader, const TDesC8& aBody, const TUint8 aId); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
137 |
static void PackGetPduL(HBufC8*& aWSPPdu, TWSPPduType aType, const TDesC& aURI, const TDesC8& aWSPHeader, const TUint8 aId); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
138 |
static TInt UintVar(TUint32& aVal, TPtrC8& aBuffer, TUint aOffset); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
139 |
static HBufC8* UintVarL(const TUint32 aInt); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
140 |
}; |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
141 |
#endif // __CLWSPPDUHANDLER_H__ |