equal
deleted
inserted
replaced
373 // folder name |
373 // folder name |
374 if( !aEntry.IsHidden() && !aEntry.IsSystem()) |
374 if( !aEntry.IsHidden() && !aEntry.IsSystem()) |
375 { |
375 { |
376 TParse fileParser; |
376 TParse fileParser; |
377 fileParser.Set( iDirscan->FullPath(), &(*iDir)[iCurrentIndex].iName, NULL ); |
377 fileParser.Set( iDirscan->FullPath(), &(*iDir)[iCurrentIndex].iName, NULL ); |
378 if(aEntry.IsDir()) |
378 if( iFilePlugin.GetHarvesterState() ) |
379 { |
379 { |
380 iFilePlugin.CreateFolderFileIndexItemL(fileParser.FullName(), ECPixAddAction); |
380 if(aEntry.IsDir()) |
|
381 { |
|
382 iFilePlugin.CreateFolderFileIndexItemL(fileParser.FullName(), ECPixAddAction); |
|
383 } |
|
384 else |
|
385 { |
|
386 iFilePlugin.CreateContentIndexItemL(fileParser.FullName(), ECPixAddAction); |
|
387 iFilePlugin.CreateFolderFileIndexItemL(fileParser.FullName(), ECPixAddAction, false); |
|
388 } |
381 } |
389 } |
382 else |
390 else |
383 { |
391 { |
384 iFilePlugin.CreateContentIndexItemL(fileParser.FullName(), ECPixAddAction); |
392 TBool isFolder = EFalse; |
385 iFilePlugin.CreateFolderFileIndexItemL(fileParser.FullName(), ECPixAddAction, false); |
393 if(aEntry.IsDir()) |
|
394 { |
|
395 isFolder = ETrue; |
|
396 } |
|
397 iFilePlugin.AddToQueueL(fileParser.FullName(), ECPixAddAction, isFolder); |
386 } |
398 } |
387 // TODO: If this is not TRAPPED, state machine breaks |
399 // TODO: If this is not TRAPPED, state machine breaks |
388 iStepNumber++; |
400 iStepNumber++; |
389 } |
401 } |
390 iCurrentIndex++; |
402 iCurrentIndex++; |
482 // |
494 // |
483 void CFileHarvester::SetNextRequest( TFileHarvesterState aState ) |
495 void CFileHarvester::SetNextRequest( TFileHarvesterState aState ) |
484 { |
496 { |
485 OstTrace0( TRACE_NORMAL, CFILEHARVESTER_SETNEXTREQUEST, "CFileHarvester::SetNextRequest" ); |
497 OstTrace0( TRACE_NORMAL, CFILEHARVESTER_SETNEXTREQUEST, "CFileHarvester::SetNextRequest" ); |
486 CPIXLOGSTRING("CFileHarvester::SetNextRequest"); |
498 CPIXLOGSTRING("CFileHarvester::SetNextRequest"); |
487 if ( !IsActive() ) |
499 if ( !IsActive() && (iFilePlugin.GetHarvesterState()) ) |
488 { |
500 { |
489 iHarvestState = aState; |
501 iHarvestState = aState; |
490 SetActive(); |
502 SetActive(); |
491 TRequestStatus* status = &iStatus; |
503 TRequestStatus* status = &iStatus; |
492 User::RequestComplete( status, KErrNone ); |
504 User::RequestComplete( status, KErrNone ); |
493 } |
505 } |
494 } |
506 else |
495 |
507 iHarvestState = aState; |
|
508 } |
|
509 |
|
510 void CFileHarvester::ResumeRequest() |
|
511 { |
|
512 OstTraceFunctionEntry0( CFILEHARVESTER_RESUMEREQUEST_ENTRY ); |
|
513 if(iHarvestState != EHarvesterIdleState) |
|
514 SetNextRequest(iHarvestState); |
|
515 OstTraceFunctionExit0( CFILEHARVESTER_RESUMEREQUEST_EXIT ); |
|
516 } |
496 |
517 |
497 // End of File |
518 // End of File |