mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/ttypeflatbuf.cpp
changeset 0 a2952bb97e68
equal deleted inserted replaced
-1:000000000000 0:a2952bb97e68
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  GetParitialObject operation helper function
       
    15 *
       
    16 */
       
    17   
       
    18 
       
    19 #include <mtp/mtpdatatypeconstants.h>
       
    20 
       
    21 #include "ttypeflatbuf.h"
       
    22 
       
    23 static const TMTPTypeFlatBase::TElementInfo KMTPTypeFlatBufElementInfo = { EMTPTypeFlat, 0, -1 };
       
    24 
       
    25 // ----------------------------------------------------------------------------- 
       
    26 // TMTPTypeFlatBuf::TMTPTypeFlatBuf
       
    27 // Standard c++ constructor
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 TMTPTypeFlatBuf::TMTPTypeFlatBuf( const TDes8& aBuffer )
       
    31     : TMTPTypeFlatBase()
       
    32     {
       
    33     SetBuffer( aBuffer );
       
    34     }
       
    35 
       
    36 // ----------------------------------------------------------------------------- 
       
    37 // TMTPTypeFlatBase::TElementInfo& TMTPTypeFlatBuf::ElementInfo
       
    38 // Override to provide element info 
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 const TMTPTypeFlatBase::TElementInfo& TMTPTypeFlatBuf::ElementInfo( TInt /**aElementId*/ ) const
       
    42     {
       
    43     return KMTPTypeFlatBufElementInfo;
       
    44     }
       
    45 
       
    46 // end of file
       
    47