--- a/mtpdataproviders/mtpimagedp/src/cmtpimagedpgetobjectpropdesc.cpp Fri Feb 19 23:40:44 2010 +0200
+++ b/mtpdataproviders/mtpimagedp/src/cmtpimagedpgetobjectpropdesc.cpp Fri Mar 12 15:46:41 2010 +0200
@@ -170,6 +170,9 @@
case EMTPObjectPropCodeRepresentativeSampleWidth:
ServiceRepresentativeSampleWidthL();
break;
+ case EMTPObjectPropCodeRepresentativeSampleData:
+ ServiceRepresentativeSampleDataL();
+ break;
case EMTPObjectPropCodeNonConsumable:
ServiceNonConsumableL();
break;
@@ -404,6 +407,19 @@
CleanupStack::PopAndDestroy(expectedForm);
}
+void CMTPImageDpGetObjectPropDesc::ServiceRepresentativeSampleDataL()
+ {
+ CMTPTypeObjectPropDesc::TPropertyInfo info;
+ info.iDataType = EMTPTypeAUINT8;
+ info.iFormFlag = CMTPTypeObjectPropDesc::EByteArrayForm;
+ info.iGetSet = CMTPTypeObjectPropDesc::EReadOnly;
+
+ const TUint32 KMaxLength = 0x0000FFFF;
+ TMTPTypeUint32 expectedForm(KMaxLength);
+
+ iObjectProperty = CMTPTypeObjectPropDesc::NewL(EMTPObjectPropCodeRepresentativeSampleData, info, &expectedForm);
+ }
+
void CMTPImageDpGetObjectPropDesc::ServiceNonConsumableL()
{
CMTPTypeObjectPropDescEnumerationForm* expectedForm = CMTPTypeObjectPropDescEnumerationForm::NewL(EMTPTypeUINT8);