obex/obexprotocol/obex/inc/obexconstantsinternal.h
changeset 57 f6055a57ae18
parent 0 d0791faffa3f
equal deleted inserted replaced
54:4dc88a4ac6f4 57:f6055a57ae18
       
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17 @file
       
    18 @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef __OBEXCONSTANTSINTERNAL_H
       
    22 #define __OBEXCONSTANTSINTERNAL_H
       
    23 
       
    24 #include <e32def.h>
       
    25 
       
    26 //common to request & resp digests
       
    27 
       
    28 /** @internalComponent */
       
    29 const TInt KMinChallResponseSize = 18; //Nonce(16) + tag(1) + size(1)
       
    30 /** @internalComponent */
       
    31 const TInt KObexNonceSize = 16;
       
    32 /** @internalComponent */
       
    33 const TUint8 KObexRequireUID = 0x01;
       
    34 
       
    35 //request or chall
       
    36 /** @internalComponent */
       
    37 const TUint KObexChallNonceTag = 0;
       
    38 /** @internalComponent */
       
    39 const TUint8 KObexChallOptionsTag = 0x01;
       
    40 /** @internalComponent */
       
    41 const TUint8 KObexChallRealmTag = 0x02;
       
    42 /** @internalComponent */
       
    43 const TInt KObexChallOptionSize = 1; //this can't be changed from one without making
       
    44 /** @internalComponent */
       
    45 const TUint KObexChallHeaderSize = 23; //assuming no Realm data
       
    46 
       
    47 //response
       
    48 /** @internalComponent */
       
    49 const TUint KObexRespTag = 0;
       
    50 /** @internalComponent */
       
    51 const TUint8 KObexRespUserIDTag = 0x01;
       
    52 /** @internalComponent */
       
    53 const TUint8 KObexRespNonceTag = 0x02;
       
    54 
       
    55 /** @internalComponent */
       
    56 const TUint8 KObexHeaderTypeMask = 0xc0;
       
    57 /** @internalComponent */
       
    58 const TUint8 KObexHeaderTypeOffset = 6;
       
    59 
       
    60 
       
    61 #ifdef _UNICODE
       
    62 /** @internalComponent */
       
    63 const TInt KUidOBEXTransportModule = 0x10003d56;
       
    64 #else
       
    65 /** @internalComponent */
       
    66 const TInt KUidOBEXTransportModule = 0x1000169c;
       
    67 #endif
       
    68 
       
    69 /** @internalComponent */
       
    70 const TUint8 KFourByteTimeHeaderAddress = 0xc4;
       
    71 
       
    72 // Header mask definitions.
       
    73 // Old style accessor for which headers are present or
       
    74 // should be sent by an object.  Now deprecated, use the
       
    75 // header iterator instead.
       
    76 /** @internalComponent */
       
    77 const TUint16 KObexHdrName				= 0x0001;
       
    78 /** @internalComponent */
       
    79 const TUint16 KObexHdrType				= 0x0002;
       
    80 /** @internalComponent */
       
    81 const TUint16 KObexHdrLength			= 0x0004;
       
    82 /** @internalComponent */
       
    83 const TUint16 KObexHdrTime				= 0x0008;
       
    84 /** @internalComponent */
       
    85 const TUint16 KObexHdrDescription		= 0x0010;
       
    86 /** @internalComponent */
       
    87 const TUint16 KObexHdrTarget			= 0x0020;
       
    88 /** @internalComponent */
       
    89 const TUint16 KObexHdrConnectionID		= 0x0040;
       
    90 /** @internalComponent */
       
    91 const TUint16 KObexHdrBody				= 0x0080;
       
    92 /** @internalComponent */
       
    93 const TUint16 KObexHdrEndOfBody			= 0x0100;
       
    94 /** @internalComponent */
       
    95 const TUint16 KObexHdrHttp				= 0x0200;
       
    96 /** @internalComponent */
       
    97 const TUint16 KObexHdrAppParam			= 0x0400;
       
    98 /** @internalComponent */
       
    99 const TUint16 KObexHdrUserDefined		= 0x0800;
       
   100 /** @internalComponent */
       
   101 const TUint16 KObexHdrCount				= 0x1000;
       
   102 /** @internalComponent */
       
   103 const TUint16 KObexHdrCreatorID			= 0x2000;
       
   104 /** @internalComponent */
       
   105 const TUint16 KObexHdrWanUUID			= 0x4000;
       
   106 /** @internalComponent */
       
   107 const TUint16 KObexHdrObjectClass		= 0x8000;
       
   108 
       
   109 
       
   110 /** @internalComponent */
       
   111 const TUint8  KObexUserDefinedHdrAddrMin	 = 0x30; //start of user defined header address range
       
   112 /** @internalComponent */
       
   113 const TUint8  KObexUserDefinedHdrAddrMax	 = 0x3F; //end of user defined header address range
       
   114 
       
   115 /** @internalComponent */
       
   116 const TUint8 KObexVersion           	= 0x10;		//< Version 1.0 (still correct for Obex spec v 1.2)
       
   117 
       
   118 /** @internalComponent */
       
   119 const TUint8 KObexObjectFieldSize   	= 127;
       
   120 
       
   121 // Flags used by SetPath
       
   122 /** @internalComponent */
       
   123 const TUint8 KObexSetPathParent	= 0x01;
       
   124 
       
   125 #endif // __OBEXCONSTANTSINTERNAL_H