mtpfws/mtpfw/datatypes/interface/tmtptypeint64.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 TMTPTYPEINT64_H
       
    23 #define TMTPTYPEINT64_H
       
    24 
       
    25 #include <e32std.h>
       
    26 #include <mtp/mmtptype.h>
       
    27 
       
    28 /**
       
    29 Defines the MTP signed 64-bit integer data type.
       
    30 @publishedPartner
       
    31 @released 
       
    32 */
       
    33 class TMTPTypeInt64 : public MMTPType
       
    34     {
       
    35 
       
    36 public:
       
    37 
       
    38 	IMPORT_C TMTPTypeInt64();	
       
    39 	IMPORT_C TMTPTypeInt64(TInt64 aData);
       
    40 	IMPORT_C virtual ~TMTPTypeInt64();
       
    41 
       
    42     IMPORT_C void Set(TInt64 aValue);
       
    43     IMPORT_C TInt64 Value() const;
       
    44     
       
    45 public: // From MMTPType
       
    46 
       
    47     IMPORT_C TInt FirstReadChunk(TPtrC8& aChunk) const;
       
    48     IMPORT_C TInt NextReadChunk(TPtrC8& aChunk) const;
       
    49     IMPORT_C TInt FirstWriteChunk(TPtr8& aChunk);
       
    50     IMPORT_C TInt NextWriteChunk(TPtr8& aChunk);
       
    51     IMPORT_C TUint64 Size() const;
       
    52     IMPORT_C TUint Type() const;
       
    53 	
       
    54 private:
       
    55 
       
    56     /**
       
    57     The data buffer.
       
    58     */
       
    59 	TInt64 iData;
       
    60     };
       
    61 
       
    62 #endif // TMTPTYPEINT64_H