equal
deleted
inserted
replaced
85 |
85 |
86 void CMmcFileList::BuildFileListL( RFs& aFs, const TDesC& aDrivePath, |
86 void CMmcFileList::BuildFileListL( RFs& aFs, const TDesC& aDrivePath, |
87 RPointerArray<CPlaceholderData>& aEntryArray ) |
87 RPointerArray<CPlaceholderData>& aEntryArray ) |
88 { |
88 { |
89 WRITELOG( "CMmcFileList::BuildFileListL - start" ); |
89 WRITELOG( "CMmcFileList::BuildFileListL - start" ); |
90 CDesCArrayFlat* path = new(ELeave) CDesCArrayFlat( 8 ); |
90 CDesCArrayFlat* path = new(ELeave) CDesCArrayFlat( 10 ); |
91 CleanupStack::PushL( path ); |
91 CleanupStack::PushL( path ); |
92 TFileName firstPath; |
92 TFileName firstPath; |
93 firstPath.Copy( aDrivePath ); |
93 firstPath.Copy( aDrivePath ); |
94 firstPath.Append( KBackslash ); |
94 firstPath.Append( KBackslash ); |
95 path->AppendL( firstPath ); |
95 path->AppendL( firstPath ); |
189 TUint32 aMediaID, CHarvesterPluginFactory* aPluginFactory ) |
189 TUint32 aMediaID, CHarvesterPluginFactory* aPluginFactory ) |
190 { |
190 { |
191 WRITELOG( "CMmcFileList::HandleFileEntryL()" ); |
191 WRITELOG( "CMmcFileList::HandleFileEntryL()" ); |
192 |
192 |
193 // calculate batch size |
193 // calculate batch size |
194 TInt batchSize( 0 ); |
194 TInt batchSize( KEntryBufferSize ); |
195 if ( aEntryArray.Count() >= KEntryBufferSize ) |
195 const TInt count( aEntryArray.Count() ); |
196 { |
196 if ( count < KEntryBufferSize ) |
197 batchSize = KEntryBufferSize; |
197 { |
198 } |
198 batchSize = count; |
199 else |
|
200 { |
|
201 batchSize = aEntryArray.Count(); |
|
202 } |
199 } |
203 |
200 |
204 #ifdef _DEBUG |
201 #ifdef _DEBUG |
205 WRITELOG2( "CMmcFileList::HandleFileEntryL() batchSize = %d, aEntryArray.Count() = %d", batchSize, aEntryArray.Count() ); |
202 WRITELOG2( "CMmcFileList::HandleFileEntryL() batchSize = %d, aEntryArray.Count() = %d", batchSize, aEntryArray.Count() ); |
206 #endif |
203 #endif |