obex/obexprotocol/obextransport/public/obextransportconstants.h
changeset 57 f6055a57ae18
parent 0 d0791faffa3f
equal deleted inserted replaced
54:4dc88a4ac6f4 57:f6055a57ae18
       
     1 // Copyright (c) 2005-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 __OBEXTRANSPORTCONSTANTS_H__
       
    17 #define __OBEXTRANSPORTCONSTANTS_H__
       
    18 
       
    19 /**
       
    20 @file
       
    21 @internalTechnology
       
    22 */
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 const TUint8 KObexConnectionIDLength = 4;
       
    27 
       
    28 typedef TBuf8<KObexConnectionIDLength> TConnId;
       
    29 typedef TBuf8<16> TRequestDigest;
       
    30 
       
    31 /**
       
    32 This enum is for INTERNAL USE ONLY.
       
    33 
       
    34 The enum values are signals sent between layers in OBEX. Some of them result 
       
    35 in user-visible notifications and some don't.
       
    36 
       
    37 Their numerical values are not significant, with the exception of the fact 
       
    38 that EObexFinalPacketStarted must have a lower numerical value than 
       
    39 EObexFinalPacketFinished. If both of these signals are outstanding on a packet 
       
    40 at once, the user will be notified in numerical-value order. The 'final packet 
       
    41 observer' API requires that the signals are given to the user in the order 
       
    42 'final packet started' then 'final packet finished'. 
       
    43 
       
    44 These are to be used as fields in a bitmask, so a value must always bit set.
       
    45 */
       
    46 enum TObexPacketProcessEvent
       
    47 	{
       
    48 	/** The transport layer has started to write a final packet. */
       
    49 	EObexFinalPacketStarted = 0x1,
       
    50 
       
    51 	/** The transport layer has finished writing a final packet. */
       
    52 	EObexFinalPacketFinished = 0x2,
       
    53 
       
    54 	/** A packet has finished being written. */
       
    55 	EObexWriteCompleted = 0x4,
       
    56 	
       
    57 	/** A packet has finished being written. This is signalled upwards by the 
       
    58 	transport layer last of all	because it signals the completion of the 
       
    59 	sending of an ACK to a disconnect command. The OBEX server uses this 
       
    60 	signal to progress the disconnection. */
       
    61 	EObexWriteCompletedFinal = 0x8,
       
    62 	
       
    63 	/** Read activity has been detected. This is signalled upwards by the 
       
    64 	transport layer AT LEAST when the first read of a new Obex operation 
       
    65 	is detected.	*/
       
    66 	EObexReadActivityDetected = 0x10,
       
    67 	};
       
    68 
       
    69 typedef TUint TObexPacketProcessEvents;
       
    70 
       
    71 #endif //__OBEXTRANSPORTCONSTANTS_H