mtpdataproviders/mtpimagedp/src/cmtpimagedpgetobjectpropvalue.cpp
changeset 49 c20dd21d1eb4
parent 29 3ae5cb0b4c02
--- a/mtpdataproviders/mtpimagedp/src/cmtpimagedpgetobjectpropvalue.cpp	Fri Aug 20 17:43:33 2010 +0800
+++ b/mtpdataproviders/mtpimagedp/src/cmtpimagedpgetobjectpropvalue.cpp	Fri Sep 03 18:38:04 2010 +0800
@@ -37,9 +37,12 @@
 #include "mtpimagedppanic.h"
 #include "cmtpimagedp.h"
 #include "mtpimagedputilits.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "cmtpimagedpgetobjectpropvalueTraces.h"
+#endif
 
 
-__FLOG_STMT(_LIT8(KComponent,"GetObjectPropValue");)
 
 /**
 Two-phase construction method
@@ -67,7 +70,6 @@
     delete iMTPTypeString;	
     delete iMTPTypeArray;
     delete iObjectMeta;
-    __FLOG_CLOSE;
     }
 
 /**
@@ -79,7 +81,6 @@
     :CMTPRequestProcessor(aFramework, aConnection,0, NULL),
     iObjectPropertyMgr(aDataProvider.PropertyMgr())
     {
-    __FLOG_OPEN(KMTPSubsystem, KComponent);	
     }
 
 /**
@@ -189,8 +190,12 @@
             break;
         case EMTPObjectPropCodeNonConsumable:
             ServiceNonConsumableL();
-            break;            
+            break;
+        case EMTPObjectPropCodeHidden:
+            ServiceHiddenL();
+            break;
         default:
+            OstTrace1( TRACE_ERROR, CMTPIMAGEDPGETOBJECTPROPVALUE_SERVICEL, "Invalid property code %d", propCode);
             User::Leave(KErrGeneral);
         }	
     }	
@@ -353,3 +358,11 @@
     iMTPTypeUint8.Set(nonConsumable);
     SendDataL(iMTPTypeUint8);
     }
+
+void CMTPImageDpGetObjectPropValue::ServiceHiddenL()
+    {
+    TUint16 hiddenStatus;
+    iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeHidden, hiddenStatus);
+    iMTPTypeUint16.Set(hiddenStatus);
+    SendDataL(iMTPTypeUint16);
+    }