diff -r 8b094906a049 -r 60a94a45d437 mtpfws/mtpfw/datatypes/interface/tmtptypeguid.h --- a/mtpfws/mtpfw/datatypes/interface/tmtptypeguid.h Mon Mar 15 12:43:12 2010 +0200 +++ b/mtpfws/mtpfw/datatypes/interface/tmtptypeguid.h Wed Mar 31 22:58:56 2010 +0300 @@ -28,6 +28,7 @@ #include #include + /** Defines the MTP Guid data type. @publishedPartner @@ -39,13 +40,12 @@ public: IMPORT_C TMTPTypeGuid(); - IMPORT_C TMTPTypeGuid(const TPtrC8& aData); + IMPORT_C TMTPTypeGuid(const TDesC& aData); IMPORT_C TMTPTypeGuid(const TUint64 aData1,const TUint64 aData2); IMPORT_C void Set(const TUint64 aData1,const TUint64 aData2); - IMPORT_C TInt SetL(const TDesC& aData); - -private: - TInt IsGuidFormat(const TDesC& aData); + IMPORT_C void SetL(const TDesC& aData); + IMPORT_C TInt ToString( TDes& aRetDes ) const; + IMPORT_C static TBool IsGuidFormat(const TDesC& aData); private: /* @@ -69,21 +69,7 @@ } TGUID; private: - - /** - Least significant 64-bit buffer offset. - */ - //static const TInt KMTPTypeUint128OffsetLS = 0; - - /** - Most significant 64-bit buffer offset. - */ - //static const TInt KMTPTypeUint128OffsetMS = 8; - - /** - The data buffer. - */ - //TBuf8 iData; + TInt StrToGUID(const TDesC& aData, TGUID& aGUID) const; }; #endif // TMTPTYPEGUID_H