mtptransports/mtpusbtransport/usbdatatypes/inc/tmtpusbcontrolrequestcanceldata.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  @file
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef TMTPUSBCONTROLREQUESTCANCELDATA_H
       
    22 #define TMTPUSBCONTROLREQUESTCANCELDATA_H
       
    23 
       
    24 #include <mtp/tmtptypeflatbase.h>
       
    25 
       
    26 /**
       
    27 Defines the MTP USB device class cancel control request dataset.
       
    28 @internalComponent
       
    29  
       
    30 */
       
    31 class TMTPUsbControlRequestCancelData : public TMTPTypeFlatBase 
       
    32     {
       
    33     
       
    34 public:
       
    35 
       
    36     /**
       
    37     MTP USB cance request dataset element identifiers.
       
    38     */
       
    39     enum TElements
       
    40         {
       
    41         ECancellationCode,
       
    42         ETransactionID,
       
    43         ENumElements
       
    44         };
       
    45         
       
    46 public:
       
    47 
       
    48     IMPORT_C TMTPUsbControlRequestCancelData();
       
    49      
       
    50 public: // From TMTPTypeFlatBase
       
    51 
       
    52     IMPORT_C TUint Type() const;
       
    53     
       
    54 private: // From TMTPTypeFlatBase
       
    55 
       
    56     IMPORT_C const TMTPTypeFlatBase::TElementInfo& ElementInfo(TInt aElementId) const;
       
    57 
       
    58 private:
       
    59    
       
    60     /**
       
    61     The dataset size in bytes.
       
    62     */
       
    63     static const TInt                               KSize = 6;
       
    64     
       
    65     /**
       
    66     The dataset element metadata table content.
       
    67     */
       
    68     static const TMTPTypeFlatBase::TElementInfo     iElementMetaData[];
       
    69     
       
    70     /**
       
    71     The dataset element metadata table.
       
    72     */
       
    73     const TFixedArray<TElementInfo, ENumElements>   iElementInfo;
       
    74     
       
    75     /**
       
    76     The data buffer.
       
    77     */
       
    78     TBuf8<KSize>                                    iBuffer; 
       
    79     };
       
    80     
       
    81 #endif // TMTPUSBCONTROLREQUESTCANCELDATA_H