mtptransports/mtpptpiptransport/ptpipdatatypes/inc/tptpipinitfailed.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2006-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 #ifndef _TPTPIPINITFAILED_H_
       
    20 #define _TPTPIPINITFAILED_H_
       
    21 
       
    22 #include <mtp/tmtptypeflatbase.h>
       
    23 
       
    24 /**
       
    25 Defines the PTP/IP InitFailed DataSet.
       
    26 @internalComponent
       
    27  
       
    28 */
       
    29 class TPTPIPInitFailed: public TMTPTypeFlatBase 
       
    30     {
       
    31     
       
    32 public:
       
    33 
       
    34     /**
       
    35     PTP/IP Init Failed packet.
       
    36     */
       
    37     enum TElements
       
    38         {
       
    39         ELength,
       
    40         EType,
       
    41 		EReason,
       
    42         ENumElements
       
    43         };
       
    44         
       
    45 public:
       
    46 
       
    47     IMPORT_C TPTPIPInitFailed();
       
    48      
       
    49 public: // From TMTPTypeFlatBase
       
    50 
       
    51     IMPORT_C TUint Type() const;
       
    52     
       
    53 private: // From TMTPTypeFlatBase
       
    54 
       
    55     IMPORT_C const TMTPTypeFlatBase::TElementInfo& ElementInfo(TInt aElementId) const;
       
    56 
       
    57 private:
       
    58    
       
    59     /**
       
    60     The dataset size in bytes.
       
    61     */
       
    62     static const TInt                               KSize = 12;
       
    63     
       
    64     /**
       
    65     The dataset element metadata table content.
       
    66     */
       
    67     static const TMTPTypeFlatBase::TElementInfo     iElementMetaData[];
       
    68     
       
    69     /**
       
    70     The dataset element metadata table.
       
    71     */
       
    72     const TFixedArray<TElementInfo, ENumElements>   iElementInfo;
       
    73     
       
    74     /**
       
    75     The data buffer.
       
    76     */
       
    77     TBuf8<KSize>                                    iBuffer;        
       
    78     };
       
    79 
       
    80 #endif // _TPTPIPINITFAILED_H_
       
    81 
       
    82