mtpfws/mtpfw/dataproviders/dputility/src/cmtpgetobjectpropvalue.cpp
branchRCL_3
changeset 48 debf68073f2f
parent 11 4843bb5893b6
child 58 142dacf7b30e
--- a/mtpfws/mtpfw/dataproviders/dputility/src/cmtpgetobjectpropvalue.cpp	Tue Sep 14 22:52:29 2010 +0300
+++ b/mtpfws/mtpfw/dataproviders/dputility/src/cmtpgetobjectpropvalue.cpp	Wed Sep 15 13:07:27 2010 +0300
@@ -165,6 +165,9 @@
 		case EMTPObjectPropCodeNonConsumable:
 			ServiceNonConsumableL();
 			break;
+		case EMTPObjectPropCodeHidden:
+		    ServiceHiddenL();
+		    break;
 		default:
 		    User::Leave( KErrNotSupported );
 			break;
@@ -265,6 +268,19 @@
 	SendDataL(iMTPTypeUint8);
 	}
 
+void CMTPGetObjectPropValue::ServiceHiddenL()
+    {
+    TBool isHidden = iFileEntry.IsHidden();
+    if ( isHidden )
+        {
+        iMTPTypeUint16.Set(EMTPHidden);
+        }
+    else
+        {
+        iMTPTypeUint16.Set(EMTPVisible);
+        } 
+    SendDataL(iMTPTypeUint16);
+    }