equal
deleted
inserted
replaced
26 #include "mtpdppanic.h" |
26 #include "mtpdppanic.h" |
27 #include "cmtpdataprovidercontroller.h" |
27 #include "cmtpdataprovidercontroller.h" |
28 #include "mtpframeworkconst.h" |
28 #include "mtpframeworkconst.h" |
29 #include "rmtpdpsingletons.h" |
29 #include "rmtpdpsingletons.h" |
30 #include "rmtputility.h" |
30 #include "rmtputility.h" |
|
31 #include "cmtpstoragemgr.h" |
31 |
32 |
32 /** |
33 /** |
33 Verification data for the SetObjectPropValue request |
34 Verification data for the SetObjectPropValue request |
34 */ |
35 */ |
35 const TMTPRequestElementInfo KMTPSetObjectPropValuePolicy[] = |
36 const TMTPRequestElementInfo KMTPSetObjectPropValuePolicy[] = |
106 TMTPResponseCode responseCode = CMTPRequestProcessor::CheckRequestL(); |
107 TMTPResponseCode responseCode = CMTPRequestProcessor::CheckRequestL(); |
107 |
108 |
108 TUint32 handle = Request().Uint32(TMTPTypeRequest::ERequestParameter1); |
109 TUint32 handle = Request().Uint32(TMTPTypeRequest::ERequestParameter1); |
109 CMTPObjectMetaData* meta = iRequestChecker->GetObjectInfo(handle); |
110 CMTPObjectMetaData* meta = iRequestChecker->GetObjectInfo(handle); |
110 __ASSERT_DEBUG(meta, Panic(EMTPDpObjectNull)); |
111 __ASSERT_DEBUG(meta, Panic(EMTPDpObjectNull)); |
|
112 |
|
113 if(!iSingleton.StorageMgr().IsReadWriteStorage(meta->Uint(CMTPObjectMetaData::EStorageId))) |
|
114 { |
|
115 responseCode = EMTPRespCodeAccessDenied; |
|
116 } |
111 |
117 |
112 if(responseCode == EMTPRespCodeOK) |
118 if(responseCode == EMTPRespCodeOK) |
113 { |
119 { |
114 TUint32 propCode = Request().Uint32(TMTPTypeRequest::ERequestParameter2); |
120 TUint32 propCode = Request().Uint32(TMTPTypeRequest::ERequestParameter2); |
115 |
121 |