harvester/monitorplugins/fileplugin/src/fileeventhandlerao.cpp
changeset 1 acef663c1218
parent 0 c53acadfccc6
child 3 6752808b2036
equal deleted inserted replaced
0:c53acadfccc6 1:acef663c1218
   163     	                tempItem->GetAsFspStatus( status );
   163     	                tempItem->GetAsFspStatus( status );
   164     	                if( status.iFileEventType == EMdsFileDeleted  )
   164     	                if( status.iFileEventType == EMdsFileDeleted  )
   165     	                    {
   165     	                    {
   166     	                    iQueue.Remove( 0 );
   166     	                    iQueue.Remove( 0 );
   167     	                    delete tempItem;
   167     	                    delete tempItem;
       
   168     	                    tempItem = NULL;
   168     	                    iEventArray->AppendL( status );
   169     	                    iEventArray->AppendL( status );
   169     	                    }
   170     	                    }
   170     	                else
   171     	                else
   171     	                    {
   172     	                    {
   172     	                    break;
   173     	                    break;
   809     {
   810     {
   810     WRITELOG( "CFileEventHandlerAO::SetIgnoreListL" );
   811     WRITELOG( "CFileEventHandlerAO::SetIgnoreListL" );
   811     
   812     
   812     iIgnoreList.ResetAndDestroy();
   813     iIgnoreList.ResetAndDestroy();
   813     
   814     
   814     for ( TInt i = aList.Count(); --i >= 0; )
   815     const TInt count( aList.Count() );
       
   816     for ( TInt i = count; --i >= 0; )
   815         {
   817         {
   816         TDesC* listPath = aList[i];
   818         TDesC* listPath = aList[i];
   817         
   819         
   818         HBufC* name = listPath->AllocLC();
   820         HBufC* name = listPath->AllocLC();
   819 
   821 
   841 // ---------------------------------------------------------------------------
   843 // ---------------------------------------------------------------------------
   842 //
   844 //
   843 void CFileEventHandlerAO::NotMoveEvent(RPointerArray<CHarvesterData>& aHDArray)
   845 void CFileEventHandlerAO::NotMoveEvent(RPointerArray<CHarvesterData>& aHDArray)
   844 	{
   846 	{
   845 	TInt count = aHDArray.Count();
   847 	TInt count = aHDArray.Count();
   846 	for (int i = 0; i < count; ++i)
   848 	for (TInt i = 0; i < count; ++i)
   847 		{
   849 		{
   848 		CHarvesterData* hd = aHDArray[i];
   850 		CHarvesterData* hd = aHDArray[i];
   849         iObserver->MonitorEvent( hd );
   851         iObserver->MonitorEvent( hd );
   850 		}
   852 		}
   851 	}
   853 	}