mtptransports/mtpptpiptransport/ptpipdatatypes/inc/ptpipdatatypes.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2008-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  @internalComponent
       
    18 */
       
    19 
       
    20 #ifndef CPTPIPDATATYPES_H_
       
    21 #define CPTPIPDATATYPES_H_
       
    22 
       
    23 /**
       
    24 PTPIP data types:
       
    25 1. request packet & response packet
       
    26 2. data packets: start data, data, end data
       
    27 3. cancel packet
       
    28 4. probe packet and response
       
    29 
       
    30 The structure as per the MTP type hierarchy is as follows:
       
    31 
       
    32 One ptpip container of the mtp compound type for the generic use ( it would be 
       
    33 used for everything except the data phase commands). This contains the type and 
       
    34 length as its first 8 bytes. The next part is the payload, which can be of the 
       
    35 following types:
       
    36 1. Request type 
       
    37 2. Cancel type
       
    38 3. Start data type
       
    39  
       
    40 One generic ptpip container of the Mtp compound type for the data phase. This 
       
    41 contains the len, type and transaction id as its first 12 bytes. The next part 
       
    42 is the payload which is provided by the mtp framework. 
       
    43 */
       
    44    
       
    45 #include <mtp/cmtptypecompoundbase.h>
       
    46 #include <mtp/mtpdatatypeconstants.h>
       
    47 
       
    48 /**
       
    49 PTPIP MTP device class data type identifiers. 
       
    50 */
       
    51 
       
    52 enum TMTPPTPIPTypeIds
       
    53 	{
       
    54 	EPTPIPTypeRequestPayload    = (EMTPFirstTransportDataType + 0x100),   
       
    55 	EPTPIPTypeResponsePayload   = (EMTPFirstTransportDataType + 0x101),
       
    56 	EPTPIPTypeStartDataPayload 	= (EMTPFirstTransportDataType + 0x102),
       
    57 	EPTPIPTypeGenericContainer	= (EMTPFirstTransportDataType + 0x103),
       
    58 	EPTPIPTypeDataContainer		= (EMTPFirstTransportDataType + 0x104),
       
    59 	EPTPIPTypeInitCmdRequest	= (EMTPFirstTransportDataType + 0x105),
       
    60 	EPTPIPTypeInitCmdAck		= (EMTPFirstTransportDataType + 0x106),
       
    61 	EPTPIPTypeInitEvtRequest	= (EMTPFirstTransportDataType + 0x107),
       
    62 	EPTPIPTypeInitEvtAck		= (EMTPFirstTransportDataType + 0x108),
       
    63 	EPTPIPTypeInitFail		    = (EMTPFirstTransportDataType + 0x109)
       
    64 	
       
    65 	};
       
    66 
       
    67 
       
    68 #endif /*CPTPIPDATATYPES_H_*/