195 break; |
195 break; |
196 } |
196 } |
197 |
197 |
198 case EMTPServicePropertyFilterType: |
198 case EMTPServicePropertyFilterType: |
199 { |
199 { |
200 CMTPTypeObjectPropDescEnumerationForm* expectedForm |
200 servicePropDesc = CMTPTypeServicePropDesc::NewLC( |
201 = CMTPTypeObjectPropDescEnumerationForm::NewL(EMTPTypeUINT8); |
|
202 CleanupStack::PushL(expectedForm); |
|
203 expectedForm->AppendSupportedValueL(TMTPTypeUint8(EMTPSyncSvcFilterNone)); |
|
204 expectedForm->AppendSupportedValueL(TMTPTypeUint8(EMTPSyncSvcFilterContactsWithPhone)); |
|
205 expectedForm->AppendSupportedValueL(TMTPTypeUint8(EMTPSyncSvcFilterTaskActive)); |
|
206 expectedForm->AppendSupportedValueL(TMTPTypeUint8(EMTPSyncSvcFilterCalendarWindowWithRecurrence)); |
|
207 |
|
208 servicePropDesc = CMTPTypeServicePropDesc::NewL( |
|
209 aServicePropertyCode, |
201 aServicePropertyCode, |
210 EMTPTypeUINT8, |
202 EMTPTypeUINT8, |
211 CMTPTypeObjectPropDesc::EReadWrite, |
203 CMTPTypeObjectPropDesc::EReadWrite, |
212 CMTPTypeObjectPropDesc::EEnumerationForm, |
204 CMTPTypeObjectPropDesc::ENone, |
213 expectedForm); |
205 NULL); |
214 // Form can be NULL, so need destroy here for MTPType object here. |
|
215 CleanupStack::PopAndDestroy(expectedForm); |
|
216 CleanupStack::PushL(servicePropDesc); |
|
217 break; |
206 break; |
218 } |
207 } |
219 case EMTPServicePropertySyncObjectReferences: |
208 case EMTPServicePropertySyncObjectReferences: |
220 { |
209 { |
221 CMTPTypeObjectPropDescEnumerationForm* expectedForm |
210 CMTPTypeObjectPropDescEnumerationForm* expectedForm |