--- a/mtpdataproviders/mtpimagedp/src/cmtpimagedpgetobjectproplist.cpp Tue Sep 14 22:52:29 2010 +0300
+++ b/mtpdataproviders/mtpimagedp/src/cmtpimagedpgetobjectproplist.cpp Wed Sep 15 13:07:27 2010 +0300
@@ -424,7 +424,24 @@
propElem.SetUint8L(CMTPTypeObjectPropListElement::EValue, value);
iPropertyList->CommitPropElemL(propElem);
}
- break;
+ break;
+ case EMTPObjectPropCodeHidden:
+ {
+ TEntry FileEntry;
+ User::LeaveIfError(iFramework.Fs().Entry(iObjectMeta->DesC(CMTPObjectMetaData::ESuid), FileEntry));
+ CMTPTypeObjectPropListElement& propElem = iPropertyList->ReservePropElemL(aHandle, aPropCode);
+ TBool isHidden = FileEntry.IsHidden();
+ if ( isHidden )
+ {
+ propElem.SetUint16L(CMTPTypeObjectPropListElement::EValue,EMTPHidden );
+ }
+ else
+ {
+ propElem.SetUint16L(CMTPTypeObjectPropListElement::EValue,EMTPVisible );
+ }
+ iPropertyList->CommitPropElemL(propElem);
+ }
+ break;
default:
//Leave
{