equal
deleted
inserted
replaced
26 #include <e32base.h> |
26 #include <e32base.h> |
27 #include <mtp/mmtptype.h> |
27 #include <mtp/mmtptype.h> |
28 #include <mtp/mtpdatatypeconstants.h> |
28 #include <mtp/mtpdatatypeconstants.h> |
29 #include <mtp/tmtptypeuint128.h> |
29 #include <mtp/tmtptypeuint128.h> |
30 |
30 |
|
31 |
31 /** |
32 /** |
32 Defines the MTP Guid data type. |
33 Defines the MTP Guid data type. |
33 @publishedPartner |
34 @publishedPartner |
34 @released |
35 @released |
35 */ |
36 */ |
37 { |
38 { |
38 |
39 |
39 public: |
40 public: |
40 |
41 |
41 IMPORT_C TMTPTypeGuid(); |
42 IMPORT_C TMTPTypeGuid(); |
42 IMPORT_C TMTPTypeGuid(const TPtrC8& aData); |
43 IMPORT_C TMTPTypeGuid(const TDesC& aData); |
43 IMPORT_C TMTPTypeGuid(const TUint64 aData1,const TUint64 aData2); |
44 IMPORT_C TMTPTypeGuid(const TUint64 aData1,const TUint64 aData2); |
44 IMPORT_C void Set(const TUint64 aData1,const TUint64 aData2); |
45 IMPORT_C void Set(const TUint64 aData1,const TUint64 aData2); |
45 IMPORT_C TInt SetL(const TDesC& aData); |
46 IMPORT_C void SetL(const TDesC& aData); |
46 |
47 IMPORT_C TInt ToString( TDes& aRetDes ) const; |
47 private: |
48 IMPORT_C static TBool IsGuidFormat(const TDesC& aData); |
48 TInt IsGuidFormat(const TDesC& aData); |
|
49 |
49 |
50 private: |
50 private: |
51 /* |
51 /* |
52 * The number of Uint16 elements in GUID |
52 * The number of Uint16 elements in GUID |
53 */ |
53 */ |
67 TUint16 iUint16[KMTPGUIDUint16Num]; |
67 TUint16 iUint16[KMTPGUIDUint16Num]; |
68 TUint8 iByte[KMTPGUIDUint8Num]; |
68 TUint8 iByte[KMTPGUIDUint8Num]; |
69 } TGUID; |
69 } TGUID; |
70 |
70 |
71 private: |
71 private: |
72 |
72 TInt StrToGUID(const TDesC& aData, TGUID& aGUID) const; |
73 /** |
|
74 Least significant 64-bit buffer offset. |
|
75 */ |
|
76 //static const TInt KMTPTypeUint128OffsetLS = 0; |
|
77 |
|
78 /** |
|
79 Most significant 64-bit buffer offset. |
|
80 */ |
|
81 //static const TInt KMTPTypeUint128OffsetMS = 8; |
|
82 |
|
83 /** |
|
84 The data buffer. |
|
85 */ |
|
86 //TBuf8<KMTPTypeUINT128Size> iData; |
|
87 }; |
73 }; |
88 |
74 |
89 #endif // TMTPTYPEGUID_H |
75 #endif // TMTPTYPEGUID_H |