mtpfws/mtpfw/dataproviders/proxydp/src/cmtpgetobjectproplist.cpp
changeset 20 6e82ae192c3a
parent 17 aabe5387f5ce
child 47 63cf70d3ecd8
--- a/mtpfws/mtpfw/dataproviders/proxydp/src/cmtpgetobjectproplist.cpp	Fri Apr 16 15:51:48 2010 +0300
+++ b/mtpfws/mtpfw/dataproviders/proxydp/src/cmtpgetobjectproplist.cpp	Mon May 03 13:19:02 2010 +0300
@@ -77,6 +77,19 @@
 */	
 void CMTPGetObjectPropList::ServiceL()
     {
+    if(iSingletons.DpController().EnumerateState() != CMTPDataProviderController::EEnumeratedFulllyCompleted)
+        {
+        TUint32 handle = Request().Uint32( TMTPTypeRequest::ERequestParameter1 );
+        TUint32 depth = Request().Uint32( TMTPTypeRequest::ERequestParameter5 );  
+        if (depth > 0)
+            {
+            if (handle != KMTPHandleNone || depth != 1)
+                {
+                RegisterPendingRequest();
+                return;
+                }
+            }
+        }
     iTargetDps.Reset();
     CMTPParserRouter& router(iSingletons.Router());
     CMTPParserRouter::TRoutingParameters params(Request(), iConnection);