mtpfws/mtpfw/datatypes/interface/tmtptypenull.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  @publishedPartner
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef TMTPTYPENULL_H
       
    23 #define TMTPTYPENULL_H
       
    24 
       
    25 #include <e32std.h>
       
    26 #include <mtp/mmtptype.h>
       
    27 
       
    28 /**
       
    29 Defines the MTP null (zero length) data type base class. 
       
    30 @publishedPartner
       
    31 @released 
       
    32 */
       
    33 class TMTPTypeNull : public MMTPType
       
    34     {    
       
    35 public:
       
    36 
       
    37     IMPORT_C TMTPTypeNull();
       
    38 	IMPORT_C void SetBuffer(const TDes8& aBuffer);
       
    39     
       
    40 public: // From MMTPType
       
    41 
       
    42     IMPORT_C TInt FirstReadChunk(TPtrC8& aChunk) const;
       
    43     IMPORT_C TInt NextReadChunk(TPtrC8& aChunk) const;
       
    44     IMPORT_C TInt FirstWriteChunk(TPtr8& aChunk);
       
    45     IMPORT_C TInt NextWriteChunk(TPtr8& aChunk);
       
    46     IMPORT_C TUint64 Size() const;
       
    47     IMPORT_C TUint Type() const;
       
    48     
       
    49 private:
       
    50 	TPtr8 iNullBuffer;
       
    51     };
       
    52 
       
    53 #endif //TMTPTYPENULL_H