obex/obexprotocol/obextransport/public/obexinternalconstants.h
changeset 54 4dc88a4ac6f4
parent 52 866b4af7ffbe
child 57 f6055a57ae18
equal deleted inserted replaced
52:866b4af7ffbe 54:4dc88a4ac6f4
     1 // Copyright (c) 2004-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 #ifndef __OBEXINTERNALCONSTANTS_H
       
    17 #define __OBEXINTERNALCONSTANTS_H
       
    18 
       
    19 #include <e32def.h>
       
    20 
       
    21 /**
       
    22 @internalTechnology
       
    23 @released
       
    24 */
       
    25 
       
    26 // Constants describing miniumum, maximum and default OBEX pakcet sizes
       
    27 // These are set to maintain backwards compatibility, so change with caution!
       
    28 
       
    29 const TUint16 KObexPacketMaxSize		= 0xffff;	// Maximum possible packet size (64kB)
       
    30 const TUint16 KObexPacketDefaultSize	= 4000;		// Fixed buffer size in previous implementations
       
    31 const TUint16 KObexPacketMinSize		= 255;		// Minimum legal size of a pakcet
       
    32 
       
    33 // ########## Constant Data ##########
       
    34 
       
    35 const TUint8  KObexPacketFinalBit 	= 0x80;		// Most signif. Bit is final flag.//used only by obexpacket
       
    36 const TUint16 KObexPacketHeaderSize		= 3;		// Head = Opcode (1) + Size (2) //this const is used all over
       
    37 
       
    38 #endif // __OBEXINTERNALCONSTANTS_H