williamr@2: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef __OBEXTRANSPORTCONSTANTS_H__ williamr@2: #define __OBEXTRANSPORTCONSTANTS_H__ williamr@2: williamr@2: /** williamr@2: @file williamr@2: @internalTechnology williamr@2: */ williamr@2: williamr@2: #include williamr@2: williamr@2: const TUint8 KObexConnectionIDLength = 4; williamr@2: williamr@2: typedef TUint16 TObexHeaderMask; williamr@2: typedef TUint8 TObexOpcode; williamr@2: typedef TBuf8 TConnId; williamr@2: typedef TBuf8<16> TNonce; williamr@2: typedef TBuf8<16> TRequestDigest; williamr@2: williamr@2: /** williamr@2: This enum is for INTERNAL USE ONLY. williamr@2: williamr@2: The enum values are signals sent between layers in OBEX. Some of them result williamr@2: in user-visible notifications and some don't. williamr@2: williamr@2: Their numerical values are not significant, with the exception of the fact williamr@2: that EObexFinalPacketStarted must have a lower numerical value than williamr@2: EObexFinalPacketFinished. If both of these signals are outstanding on a packet williamr@2: at once, the user will be notified in numerical-value order. The 'final packet williamr@2: observer' API requires that the signals are given to the user in the order williamr@2: 'final packet started' then 'final packet finished'. williamr@2: williamr@2: These are to be used as fields in a bitmask, so a value must always bit set. williamr@2: */ williamr@2: enum TObexPacketProcessEvent williamr@2: { williamr@2: /** The transport layer has started to write a final packet. */ williamr@2: EObexFinalPacketStarted = 0x1, williamr@2: williamr@2: /** The transport layer has finished writing a final packet. */ williamr@2: EObexFinalPacketFinished = 0x2, williamr@2: williamr@2: /** A packet has finished being written. */ williamr@2: EObexWriteCompleted = 0x4, williamr@2: williamr@2: /** A packet has finished being written. This is signalled upwards by the williamr@2: transport layer last of all because it signals the completion of the williamr@2: sending of an ACK to a disconnect command. The OBEX server uses this williamr@2: signal to progress the disconnection. */ williamr@2: EObexWriteCompletedFinal = 0x8, williamr@2: williamr@2: /** Read activity has been detected. This is signalled upwards by the williamr@2: transport layer AT LEAST when the first read of a new Obex operation williamr@2: is detected. */ williamr@2: EObexReadActivityDetected = 0x10, williamr@2: }; williamr@2: williamr@2: typedef TUint TObexPacketProcessEvents; williamr@2: williamr@2: #endif //__OBEXTRANSPORTCONSTANTS_H