mtpdataproviders/mtpimagedp/src/cmtpimagedpgetobjectproplist.cpp
branchRCL_3
changeset 48 debf68073f2f
parent 32 f85613f12947
child 58 142dacf7b30e
--- 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 
             {