mtpdataproviders/mtpimagedp/src/mtpimagedpgetformatcapabilities.cpp
branchRCL_3
changeset 11 4843bb5893b6
parent 0 d0791faffa3f
child 12 8b094906a049
--- a/mtpdataproviders/mtpimagedp/src/mtpimagedpgetformatcapabilities.cpp	Fri Feb 19 23:40:44 2010 +0200
+++ b/mtpdataproviders/mtpimagedp/src/mtpimagedpgetformatcapabilities.cpp	Fri Mar 12 15:46:41 2010 +0200
@@ -169,6 +169,14 @@
     CleanupStack::Pop(1, desc);
     CleanupStack::PopAndDestroy(expectedForm);
     
+    const TUint32 KMaxLength = 0x0000FFFF;
+    TMTPTypeUint32 maxLengthForm(KMaxLength);
+    info.iDataType     = EMTPTypeAUINT8;
+    info.iFormFlag     = CMTPTypeObjectPropDesc::EByteArrayForm;       
+    desc = CMTPTypeObjectPropDesc::NewLC(EMTPObjectPropCodeRepresentativeSampleData, info, &maxLengthForm);
+    frmCap->AppendL(desc);
+    CleanupStack::Pop(1, desc);
+    
     info.iDataType = EMTPTypeUINT16;
     info.iFormFlag = CMTPTypeObjectPropDesc::EEnumerationForm;
     CMTPTypeObjectPropDescEnumerationForm* expectedEnumForm = CMTPTypeObjectPropDescEnumerationForm::NewL(EMTPTypeUINT16);