equal
deleted
inserted
replaced
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 } |