mtpdataproviders/mtpimagedp/src/cmtpimagedpgetobjectpropdesc.cpp
branchRCL_3
changeset 11 4843bb5893b6
parent 0 d0791faffa3f
child 47 63cf70d3ecd8
child 48 debf68073f2f
--- 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);