--- a/mtpdataproviders/mtpimagedp/src/cmtpimagedpgetobjectpropvalue.cpp Fri Feb 19 23:40:44 2010 +0200
+++ b/mtpdataproviders/mtpimagedp/src/cmtpimagedpgetobjectpropvalue.cpp Fri Mar 12 15:46:41 2010 +0200
@@ -25,6 +25,7 @@
#include <mtp/tmtptypeuint64.h>
#include <mtp/tmtptypeuint128.h>
#include <mtp/cmtptypestring.h>
+#include <mtp/cmtptypearray.h>
#include <mtp/mmtpdataproviderframework.h>
#include <mtp/mtpprotocolconstants.h>
#include <mtp/mmtpobjectmgr.h>
@@ -64,6 +65,7 @@
CMTPImageDpGetObjectPropValue::~CMTPImageDpGetObjectPropValue()
{
delete iMTPTypeString;
+ delete iMTPTypeArray;
delete iObjectMeta;
__FLOG_CLOSE;
}
@@ -86,6 +88,7 @@
void CMTPImageDpGetObjectPropValue::ConstructL()
{
iMTPTypeString = CMTPTypeString::NewL();
+ iMTPTypeArray = CMTPTypeArray::NewL(EMTPTypeAUINT8);
iObjectMeta = CMTPObjectMetaData::NewL();
}
@@ -181,6 +184,9 @@
case EMTPObjectPropCodeRepresentativeSampleWidth:
ServiceRepresentativeSampleWidthL();
break;
+ case EMTPObjectPropCodeRepresentativeSampleData:
+ ServiceRepresentativeSampleDataL();
+ break;
case EMTPObjectPropCodeNonConsumable:
ServiceNonConsumableL();
break;
@@ -333,6 +339,13 @@
SendDataL(iMTPTypeUint32);
}
+void CMTPImageDpGetObjectPropValue::ServiceRepresentativeSampleDataL()
+ {
+ iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeRepresentativeSampleData, *iMTPTypeArray);
+
+ SendDataL(*iMTPTypeArray);
+ }
+
void CMTPImageDpGetObjectPropValue::ServiceNonConsumableL()
{
TUint8 nonConsumable;