equal
deleted
inserted
replaced
91 { |
91 { |
92 __FLOG_OPEN(KMTPSubsystem, KComponent); |
92 __FLOG_OPEN(KMTPSubsystem, KComponent); |
93 __FLOG(_L8(">> CMTPImageDpGetObject::ConstructL")); |
93 __FLOG(_L8(">> CMTPImageDpGetObject::ConstructL")); |
94 __FLOG(_L8("<< CMTPImageDpGetObject::ConstructL")); |
94 __FLOG(_L8("<< CMTPImageDpGetObject::ConstructL")); |
95 } |
95 } |
96 |
96 TMTPResponseCode CMTPImageDpGetObject::CheckRequestL() |
|
97 { |
|
98 __FLOG(_L8(">> CMTPImageDpGetObject::CheckRequestL")); |
|
99 TMTPResponseCode responseCode = CMTPRequestProcessor::CheckRequestL(); |
|
100 |
|
101 TUint32 handle(Request().Uint32(TMTPTypeRequest::ERequestParameter1)); |
|
102 if ( handle != KMTPHandleAll ) |
|
103 { |
|
104 CMTPObjectMetaData* ObjectMeta = CMTPObjectMetaData::NewL(); |
|
105 responseCode = MTPImageDpUtilits::VerifyObjectHandleL( |
|
106 iFramework, handle, *ObjectMeta); |
|
107 delete ObjectMeta; |
|
108 } |
|
109 __FLOG(_L8("<< CMTPImageDpGetObject::CheckRequestL")); |
|
110 return responseCode; |
|
111 } |
97 /** |
112 /** |
98 GetObject request handler |
113 GetObject request handler |
99 */ |
114 */ |
100 void CMTPImageDpGetObject::ServiceL() |
115 void CMTPImageDpGetObject::ServiceL() |
101 { |
116 { |
138 CMTPObjectMetaData* objectInfo = iRequestChecker->GetObjectInfo(objectHandle); |
153 CMTPObjectMetaData* objectInfo = iRequestChecker->GetObjectInfo(objectHandle); |
139 if (MTPImageDpUtilits::IsNewPicture(*objectInfo)) |
154 if (MTPImageDpUtilits::IsNewPicture(*objectInfo)) |
140 { |
155 { |
141 //update new picture status |
156 //update new picture status |
142 MTPImageDpUtilits::UpdateObjectStatusToOldL(iFramework, *objectInfo); |
157 MTPImageDpUtilits::UpdateObjectStatusToOldL(iFramework, *objectInfo); |
143 iDataProvider.DecreaseNewPictures(1); |
158 iDataProvider.ResetNewPictures(); |
144 } |
159 } |
145 } |
160 } |
146 |
161 |
147 __FLOG(_L8("CMTPImageDpGetObject::DoHandleResponsePhaseL - Exit")); |
162 __FLOG(_L8("CMTPImageDpGetObject::DoHandleResponsePhaseL - Exit")); |
148 return CMTPRequestProcessor::DoHandleCompletingPhaseL(); |
163 return CMTPRequestProcessor::DoHandleCompletingPhaseL(); |