mtpdataproviders/mtpimagedp/src/cmtpimagedpgetobjectpropdesc.cpp
branchRCL_3
changeset 2 4843bb5893b6
parent 0 d0791faffa3f
equal deleted inserted replaced
1:f8e15b44d440 2:4843bb5893b6
   168             ServiceRepresentativeSampleHeightL();
   168             ServiceRepresentativeSampleHeightL();
   169             break;
   169             break;
   170         case EMTPObjectPropCodeRepresentativeSampleWidth:
   170         case EMTPObjectPropCodeRepresentativeSampleWidth:
   171             ServiceRepresentativeSampleWidthL();
   171             ServiceRepresentativeSampleWidthL();
   172             break;
   172             break;
       
   173         case EMTPObjectPropCodeRepresentativeSampleData:
       
   174             ServiceRepresentativeSampleDataL();
       
   175             break;
   173         case EMTPObjectPropCodeNonConsumable:
   176         case EMTPObjectPropCodeNonConsumable:
   174             ServiceNonConsumableL();
   177             ServiceNonConsumableL();
   175             break;            
   178             break;            
   176         default:
   179         default:
   177             {
   180             {
   402     iObjectProperty = CMTPTypeObjectPropDesc::NewL(EMTPObjectPropCodeRepresentativeSampleWidth, info, expectedForm);
   405     iObjectProperty = CMTPTypeObjectPropDesc::NewL(EMTPObjectPropCodeRepresentativeSampleWidth, info, expectedForm);
   403     
   406     
   404     CleanupStack::PopAndDestroy(expectedForm);
   407     CleanupStack::PopAndDestroy(expectedForm);
   405     }
   408     }
   406 
   409 
       
   410 void CMTPImageDpGetObjectPropDesc::ServiceRepresentativeSampleDataL()
       
   411     {
       
   412     CMTPTypeObjectPropDesc::TPropertyInfo info;
       
   413     info.iDataType     = EMTPTypeAUINT8;
       
   414     info.iFormFlag     = CMTPTypeObjectPropDesc::EByteArrayForm;
       
   415     info.iGetSet       = CMTPTypeObjectPropDesc::EReadOnly;
       
   416     
       
   417     const TUint32 KMaxLength = 0x0000FFFF;
       
   418     TMTPTypeUint32 expectedForm(KMaxLength);
       
   419     
       
   420     iObjectProperty = CMTPTypeObjectPropDesc::NewL(EMTPObjectPropCodeRepresentativeSampleData, info, &expectedForm);
       
   421     }
       
   422 
   407 void CMTPImageDpGetObjectPropDesc::ServiceNonConsumableL()
   423 void CMTPImageDpGetObjectPropDesc::ServiceNonConsumableL()
   408     {
   424     {
   409     CMTPTypeObjectPropDescEnumerationForm* expectedForm = CMTPTypeObjectPropDescEnumerationForm::NewL(EMTPTypeUINT8);
   425     CMTPTypeObjectPropDescEnumerationForm* expectedForm = CMTPTypeObjectPropDescEnumerationForm::NewL(EMTPTypeUINT8);
   410     CleanupStack::PushL(expectedForm);
   426     CleanupStack::PushL(expectedForm);
   411     TUint8 values[] = {0,1};
   427     TUint8 values[] = {0,1};