equal
deleted
inserted
replaced
53 __FLOG_VA( ( _L8("+GoL( 0x%08X, 0x%08X, %d )"), aFormatCode, aHandle, aDepth ) ); |
53 __FLOG_VA( ( _L8("+GoL( 0x%08X, 0x%08X, %d )"), aFormatCode, aHandle, aDepth ) ); |
54 |
54 |
55 switch ( aHandle ) |
55 switch ( aHandle ) |
56 { |
56 { |
57 case KMTPHandleAll: |
57 case KMTPHandleAll: |
58 //for the format code of serveice dp's, need to check the format |
58 GetObjectHandlesL( 0, KMTPStorageAll, aFormatCode, KMaxTUint, KMTPHandleNoParent, aBrowseCallback ); |
59 if( (aFormatCode >= EMTPFormatCodeVendorExtStart)&&(aFormatCode <= EMTPFormatCodeVendorExtEnd) ) |
|
60 { |
|
61 GetAllObjectHandlesL( aFormatCode,aBrowseCallback ); |
|
62 } |
|
63 else |
|
64 { |
|
65 GetAllObjectHandlesL( KMTPFormatsAll,aBrowseCallback ); |
|
66 } |
|
67 |
59 |
68 break; |
60 break; |
69 case KMTPHandleNone: |
61 case KMTPHandleNone: |
70 GetRootObjectHandlesL( 0, aFormatCode, aDepth, aBrowseCallback ); |
62 GetRootObjectHandlesL( 0, aFormatCode, aDepth, aBrowseCallback ); |
71 break; |
63 break; |
166 { |
158 { |
167 __FLOG_VA( ( _L8("+GetRootObjectHandlesL( %d, 0x%08X, %d )"), aCurDepth, aFormatCode, aDepth ) ); |
159 __FLOG_VA( ( _L8("+GetRootObjectHandlesL( %d, 0x%08X, %d )"), aCurDepth, aFormatCode, aDepth ) ); |
168 |
160 |
169 if( aDepth > 0) |
161 if( aDepth > 0) |
170 { |
162 { |
171 if (KMaxTUint == aDepth) |
|
172 { |
|
173 GetAllObjectHandlesL( aFormatCode,aBrowseCallback ); |
|
174 } |
|
175 else |
|
176 { |
|
177 // attention: aDepth should be reduced by 1 here |
163 // attention: aDepth should be reduced by 1 here |
178 GetObjectHandlesL( aCurDepth, KMTPStorageAll, aFormatCode, aDepth-1, KMTPHandleNoParent, aBrowseCallback ); |
164 GetObjectHandlesL( aCurDepth, KMTPStorageAll, aFormatCode, aDepth-1, KMTPHandleNoParent, aBrowseCallback ); |
179 } |
|
180 } |
165 } |
181 |
166 |
182 // if aDepth == 0, no handles should be returned. |
167 // if aDepth == 0, no handles should be returned. |
183 |
168 |
184 __FLOG( _L8("-GetRootObjectHandlesL") ); |
169 __FLOG( _L8("-GetRootObjectHandlesL") ); |