mtpfws/mtpfw/dataproviders/devdp/src/cmtpgetdevicepropdesc.cpp
branchRCL_3
changeset 14 60a94a45d437
parent 0 d0791faffa3f
child 29 3ae5cb0b4c02
equal deleted inserted replaced
12:8b094906a049 14:60a94a45d437
   468     return formatOrdered;
   468     return formatOrdered;
   469     }
   469     }
   470 
   470 
   471 TMTPTypeGuid* CMTPGetDevicePropDesc::GetGUIDL(const TUint aKey)
   471 TMTPTypeGuid* CMTPGetDevicePropDesc::GetGUIDL(const TUint aKey)
   472     {
   472     {
   473     
   473     TBuf<KGUIDFormatStringLength> buf;
   474     TBuf8<KMTPTypeUINT128Size> ptr;
   474     
   475     
   475     User::LeaveIfError(iRepository->Get(aKey,buf));
   476     iRepository->Get(aKey,ptr);
   476 
   477     
   477     TMTPTypeGuid* ret = new (ELeave) TMTPTypeGuid( buf );
   478     TMTPTypeGuid* ret = new (ELeave) TMTPTypeGuid( ptr );
       
   479     
   478     
   480     return ret;
   479     return ret;
   481     }
   480     }
   482 
   481 
   483 void CMTPGetDevicePropDesc::SaveGUID( const TUint aKey,  TMTPTypeGuid& aValue )
   482 void CMTPGetDevicePropDesc::SaveGUID( const TUint aKey,  TMTPTypeGuid& aValue )
   484     {
   483     {
   485     TPtrC8 ptr;
   484 	TBuf<KGUIDFormatStringLength> buf;
   486     if ( KMTPChunkSequenceCompletion == aValue.FirstReadChunk(ptr) )
   485 	if(aValue.ToString(buf) == KErrNone)
   487     	{
   486 		{
   488     	iRepository->Set(aKey,ptr);
   487 		iRepository->Set(aKey,buf);
   489     	}
   488 		}
   490     }
   489     }
   491 
   490