equal
deleted
inserted
replaced
|
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 TMTPTYPEINTBASE_H |
|
23 #define TMTPTYPEINTBASE_H |
|
24 |
|
25 #include <e32std.h> |
|
26 #include <mtp/mmtptype.h> |
|
27 |
|
28 /** |
|
29 Defines the MTP signed integer data type base class for 8 to 32-bit integers. |
|
30 This class is intended for derivation. |
|
31 @publishedPartner |
|
32 @released |
|
33 */ |
|
34 class TMTPTypeIntBase : public MMTPType |
|
35 { |
|
36 |
|
37 public: // From MMTPType |
|
38 |
|
39 IMPORT_C TInt FirstReadChunk(TPtrC8& aChunk) const; |
|
40 IMPORT_C TInt NextReadChunk(TPtrC8& aChunk) const; |
|
41 IMPORT_C TInt FirstWriteChunk(TPtr8& aChunk); |
|
42 IMPORT_C TInt NextWriteChunk(TPtr8& aChunk); |
|
43 IMPORT_C TUint64 Size() const; |
|
44 IMPORT_C TUint Type() const; |
|
45 |
|
46 protected: |
|
47 |
|
48 IMPORT_C TMTPTypeIntBase(TInt aData, TUint aSize, TInt aType); |
|
49 |
|
50 protected: |
|
51 |
|
52 /** |
|
53 The data buffer. |
|
54 */ |
|
55 TInt iData; |
|
56 |
|
57 private: |
|
58 |
|
59 /** |
|
60 The type's size in bytes. |
|
61 */ |
|
62 TUint64 iSize; |
|
63 |
|
64 /** |
|
65 The type's MTP datatype code. |
|
66 */ |
|
67 TUint iType; |
|
68 }; |
|
69 |
|
70 #endif // TMTPTYPEINTBASE_H |