--- 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);
+ }