mtpdataproviders/mtpimagedp/src/cmtpimagedp.cpp
changeset 37 d9d8313203af
parent 31 a26669f87b46
child 41 2c19c7cf5550
equal deleted inserted replaced
35:c4c427c00f31 37:d9d8313203af
   118         {
   118         {
   119         iMimeMappings.Insert(KMTPExtensionMimeTypeMappings[i].iExtension, KMTPExtensionMimeTypeMappings[i].iMimeType);
   119         iMimeMappings.Insert(KMTPExtensionMimeTypeMappings[i].iExtension, KMTPExtensionMimeTypeMappings[i].iMimeType);
   120         }     
   120         }     
   121     
   121     
   122     //Define RProperty of new pictures for status data provider
   122     //Define RProperty of new pictures for status data provider
       
   123 	RProcess process;
       
   124 	TUid tSid = process.SecureId();
   123     _LIT_SECURITY_POLICY_PASS(KAllowReadAll);
   125     _LIT_SECURITY_POLICY_PASS(KAllowReadAll);
   124     TInt error = RProperty::Define(TUid::Uid(KMTPServerUID), KMTPNewPicKey, RProperty::EInt, KAllowReadAll, KAllowReadAll);
   126     TInt error = RProperty::Define(tSid, KMTPNewPicKey, RProperty::EInt, KAllowReadAll, KAllowReadAll);
   125     if (error != KErrNone && error != KErrAlreadyExists)
   127     if (error != KErrNone && error != KErrAlreadyExists)
   126         {
   128         {
   127         __FLOG_1(_L8("CMTPImageDataProvider::ConstructL - RProperty define error:%d"), error);
   129         __FLOG_1(_L8("CMTPImageDataProvider::ConstructL - RProperty define error:%d"), error);
   128         User::LeaveIfError(error);
   130         User::LeaveIfError(error);
   129         }    
   131         }