diff -r 0aa8cc770c8a -r 4a793f564d72 mtpfws/mtpfw/dataproviders/devdp/src/cmtpgetdeviceinfo.cpp --- a/mtpfws/mtpfw/dataproviders/devdp/src/cmtpgetdeviceinfo.cpp Tue Aug 31 16:03:15 2010 +0300 +++ b/mtpfws/mtpfw/dataproviders/devdp/src/cmtpgetdeviceinfo.cpp Wed Sep 01 12:20:56 2010 +0100 @@ -165,7 +165,7 @@ CMTPDataProviderController& dps(iSingletons.DpController()); SetSupportedOperationsL(dps); SetSupportedEventsL(dps); - SetSupportedDevicePropertiesL(dps); + SetSupportedDevicePropertiesL(); SetSupportedCaptureFormatsL(dps); SetSupportedPlaybackFormatsL(dps); @@ -243,42 +243,11 @@ /** Populates the supported device properties field in the device info data set */ -void CMTPGetDeviceInfo::SetSupportedDevicePropertiesL(CMTPDataProviderController& aDpController) +void CMTPGetDeviceInfo::SetSupportedDevicePropertiesL() { - __FLOG(_L8("SetSupportedDevicePropertiesL - Entry")); - TInt count = aDpController.Count(); - RArray supportedOperations(KMTPArrayGranularity); - CleanupClosePushL(supportedOperations); - const TInt32 KMTPImplementationUidDeviceDp(0x102827AF); - const TInt32 KMTPImplementationUidFileDp(0x102827B0); - const TInt32 KMTPImplementationUidProxyDp(0x102827B1); - const TInt32 KMTPFrameworkDpCount(3); - TBool bOnlyInternalDpLoad = count > KMTPFrameworkDpCount ? EFalse : ETrue; - while(count--) - { - TInt32 uid = aDpController.DataProviderByIndexL(count).ImplementationUid().iUid; - // The filter is added for licencee's request which will filtrate the symbian's internal - // dp's supported enhance mode operations to make licencee's dp work. - // Every new internal dp need add it's implementation id here to filtrate and increase - // the KMTPFrameworkDpCount number. - if ((uid == KMTPImplementationUidDeviceDp || - uid == KMTPImplementationUidFileDp || - uid == KMTPImplementationUidProxyDp) && !bOnlyInternalDpLoad) - { - AddToArrayWithFilterL(supportedOperations, aDpController.DataProviderByIndexL(count).SupportedCodes(EDeviceProperties)); - } - else - { - AddToArrayL(supportedOperations, aDpController.DataProviderByIndexL(count).SupportedCodes(EDeviceProperties)); - } - } - - CMTPTypeArray* mtpOperationsArray = CMTPTypeArray::NewL(EMTPTypeAUINT16, supportedOperations); - CleanupStack::PopAndDestroy(&supportedOperations); - CleanupStack::PushL(mtpOperationsArray); //unnecessary if Set operation below does not leave, - iDeviceInfo->SetL(CMTPTypeDeviceInfo::EDevicePropertiesSupported, *mtpOperationsArray); - CleanupStack::PopAndDestroy(mtpOperationsArray); - + __FLOG(_L8("SetSupportedDevicePropertiesL - Entry")); + iDeviceInfo->SetL(CMTPTypeDeviceInfo::EDevicePropertiesSupported, + iDpSingletons.DeviceDataStore().GetSupportedDeviceProperties()); __FLOG(_L8("SetSupportedDevicePropertiesL - Exit")); } @@ -416,13 +385,6 @@ TInt count(aSrcArray.Count()); for (TInt i(0); (i < count); i++) { - // Apply filter - if(aSrcArray[i] == EMTPOpCodeResetDevicePropValue) - { - __FLOG_VA((_L8("Filter ignored operation: %d"), aSrcArray[i])); - continue; - } - TInt err(aDestArray.InsertInOrder(aSrcArray[i])); if ((err != KErrNone) && (err != KErrAlreadyExists)) {