mtpfws/mtpfw/dataproviders/proxydp/src/cmtpobjectbrowser.cpp
branchRCL_3
changeset 2 4843bb5893b6
parent 1 f8e15b44d440
--- a/mtpfws/mtpfw/dataproviders/proxydp/src/cmtpobjectbrowser.cpp	Fri Feb 19 23:40:44 2010 +0200
+++ b/mtpfws/mtpfw/dataproviders/proxydp/src/cmtpobjectbrowser.cpp	Fri Mar 12 15:46:41 2010 +0200
@@ -55,15 +55,7 @@
     switch ( aHandle )
         {
         case KMTPHandleAll:
-           //for the format code of serveice dp's, need to check the format
-           if( (aFormatCode >= EMTPFormatCodeVendorExtStart)&&(aFormatCode <= EMTPFormatCodeVendorExtEnd) )
-               {
-               GetAllObjectHandlesL( aFormatCode,aBrowseCallback );
-               }
-           else
-               {
-               GetAllObjectHandlesL( KMTPFormatsAll,aBrowseCallback );
-               }
+            GetObjectHandlesL( 0, KMTPStorageAll, aFormatCode, KMaxTUint, KMTPHandleNoParent, aBrowseCallback );
            
             break;
         case KMTPHandleNone:
@@ -168,15 +160,8 @@
     
     if( aDepth > 0)
         {        
-            if (KMaxTUint == aDepth)
-                {
-                GetAllObjectHandlesL( aFormatCode,aBrowseCallback );
-                }
-            else
-                {
                 // attention: aDepth should be reduced by 1 here
                 GetObjectHandlesL( aCurDepth, KMTPStorageAll, aFormatCode, aDepth-1, KMTPHandleNoParent, aBrowseCallback );
-                }
         }
     
     // if aDepth == 0, no handles should be returned.