27 #include <e32std.h> |
25 #include <e32std.h> |
28 #include <es_sock.h> |
26 #include <es_sock.h> |
29 #include <ir_sock.h> |
27 #include <ir_sock.h> |
30 #include <bt_sock.h> |
28 #include <bt_sock.h> |
31 #include <obexpanics.h> |
29 #include <obexpanics.h> |
32 |
30 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
33 //common to request & resp digests |
31 #include <obexconstantsinternal.h> |
34 |
32 #endif |
35 /** @internalComponent */ |
33 |
|
34 |
|
35 /** @publishedAll */ |
36 const TInt KChallResponseSize = 58; |
36 const TInt KChallResponseSize = 58; |
37 /** @internalComponent */ |
37 /** @publishedAll */ |
38 const TInt KMinChallResponseSize = 18; //Nonce(16) + tag(1) + size(1) |
|
39 /** @internalComponent */ |
|
40 const TInt KObexNonceSize = 16; |
|
41 /** @internalComponent */ |
|
42 const TUint8 KObexRequireUID = 0x01; |
|
43 |
|
44 //request or chall |
|
45 /** @internalComponent */ |
|
46 const TUint KObexChallNonceTag = 0; |
|
47 /** @internalComponent */ |
|
48 const TUint8 KObexChallOptionsTag = 0x01; |
|
49 /** @internalComponent */ |
|
50 const TUint8 KObexChallRealmTag = 0x02; |
|
51 /** @internalComponent */ |
|
52 const TInt KObexChallOptionSize = 1; //this can't be changed from one without making |
|
53 /** @internalComponent */ |
|
54 const TUint KObexChallHeaderSize = 23; //assuming no Realm data |
|
55 |
|
56 //response |
|
57 /** @internalComponent */ |
|
58 const TUint KObexRespTag = 0; |
|
59 /** @internalComponent */ |
|
60 const TInt KObexRespSize = 16; |
38 const TInt KObexRespSize = 16; |
61 /** @internalComponent */ |
39 /** @publishedAll */ |
62 const TUint8 KObexRespUserIDTag = 0x01; |
|
63 /** @internalComponent */ |
|
64 const TUint8 KObexRespNonceTag = 0x02; |
|
65 |
|
66 /** @internalComponent */ |
|
67 const TUint8 KObexHeaderTypeMask = 0xc0; |
|
68 /** @internalComponent */ |
|
69 const TUint8 KObexHeaderTypeOffset = 6; |
|
70 |
|
71 #ifdef _UNICODE |
|
72 /** @internalComponent */ |
|
73 const TInt KUidOBEXTransportModule = 0x10003d56; |
|
74 #else |
|
75 /** @internalComponent */ |
|
76 const TInt KUidOBEXTransportModule = 0x1000169c; |
|
77 #endif |
|
78 |
|
79 /** @internalComponent */ |
|
80 const TInt KUsbIntStringDescLength = 30; |
40 const TInt KUsbIntStringDescLength = 30; |
81 |
41 /** @publishedAll */ |
82 /** @internalComponent */ |
|
83 const TUint8 KFourByteTimeHeaderAddress = 0xc4; |
|
84 |
|
85 // Header mask definitions. |
|
86 // Old style accessor for which headers are present or |
|
87 // should be sent by an object. Now deprecated, use the |
|
88 // header iterator instead. |
|
89 /** @internalComponent */ |
|
90 const TUint16 KObexHdrName = 0x0001; |
|
91 /** @internalComponent */ |
|
92 const TUint16 KObexHdrType = 0x0002; |
|
93 /** @internalComponent */ |
|
94 const TUint16 KObexHdrLength = 0x0004; |
|
95 /** @internalComponent */ |
|
96 const TUint16 KObexHdrTime = 0x0008; |
|
97 /** @internalComponent */ |
|
98 const TUint16 KObexHdrDescription = 0x0010; |
|
99 /** @internalComponent */ |
|
100 const TUint16 KObexHdrTarget = 0x0020; |
|
101 /** @internalComponent */ |
|
102 const TUint16 KObexHdrConnectionID = 0x0040; |
|
103 /** @internalComponent */ |
|
104 const TUint16 KObexHdrBody = 0x0080; |
|
105 /** @internalComponent */ |
|
106 const TUint16 KObexHdrEndOfBody = 0x0100; |
|
107 /** @internalComponent */ |
|
108 const TUint16 KObexHdrHttp = 0x0200; |
|
109 /** @internalComponent */ |
|
110 const TUint16 KObexHdrAppParam = 0x0400; |
|
111 /** @internalComponent */ |
|
112 const TUint16 KObexHdrUserDefined = 0x0800; |
|
113 /** @internalComponent */ |
|
114 const TUint16 KObexHdrCount = 0x1000; |
|
115 /** @internalComponent */ |
|
116 const TUint16 KObexHdrCreatorID = 0x2000; |
|
117 /** @internalComponent */ |
|
118 const TUint16 KObexHdrWanUUID = 0x4000; |
|
119 /** @internalComponent */ |
|
120 const TUint16 KObexHdrObjectClass = 0x8000; |
|
121 |
|
122 /** @internalComponent */ |
|
123 const TUint8 KObexUserDefinedHdrAddrMin = 0x30; //start of user defined header address range |
|
124 /** @internalComponent */ |
|
125 const TUint8 KObexUserDefinedHdrAddrMax = 0x3F; //end of user defined header address range |
|
126 |
|
127 /** @internalComponent */ |
|
128 const TUint8 KObexVersion = 0x10; ///< Version 1.0 (still correct for Obex spec v 1.2) |
|
129 |
|
130 /** @internalComponent */ |
|
131 const TUint8 KObexObjectFieldSize = 127; |
|
132 /** @internalComponent */ |
|
133 const TUint8 KObexObjectDescriptionSize = 255; |
42 const TUint8 KObexObjectDescriptionSize = 255; |
134 |
43 |
135 // Extended errors for IrObex |
44 // Extended errors for IrObex |
136 |
45 |
137 /** Must not use as not in the allocated range */ |
46 /** Must not use as not in the allocated range */ |