diff -r f8e15b44d440 -r 4843bb5893b6 mtpdataproviders/mtpimagedp/src/cmtpimagedpgetobjectpropvalue.cpp --- 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 #include #include +#include #include #include #include @@ -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;