locationtriggering/ltstrategyengine/src/lbtcellsupervisor.cpp
branchRCL_3
changeset 45 6b6920c56e2f
parent 44 2b4ea9893b66
equal deleted inserted replaced
44:2b4ea9893b66 45:6b6920c56e2f
   133                 TStrategyData strategyData = conTrigger->StrategyData();
   133                 TStrategyData strategyData = conTrigger->StrategyData();
   134                 
   134                 
   135                 // If the fired time is non-zero, add it to recently fired trigger list
   135                 // If the fired time is non-zero, add it to recently fired trigger list
   136                 if( strategyData.iFireTime )
   136                 if( strategyData.iFireTime )
   137                     {
   137                     {
   138                     TInt error = iRecentlyFiredTriggerArray.Append( conTrigger );
   138                     iRecentlyFiredTriggerArray.Append( conTrigger );
   139 					if( error != KErrNone )
       
   140 						{
       
   141 						LOG1("Failed to append conTrigger into the array:%d",error);
       
   142 						}
       
   143                     }
   139                     }
   144                 }
   140                 }
   145             }
   141             }
   146         }
   142         }
   147       
   143       
   527     // Set trigger to inactive state
   523     // Set trigger to inactive state
   528     aStrategyData.iActivityStatus = EInactive;
   524     aStrategyData.iActivityStatus = EInactive;
   529     ClearVisitedCellInfo( aStrategyData );
   525     ClearVisitedCellInfo( aStrategyData );
   530     
   526     
   531     // Append this trigger to recently fired trigger
   527     // Append this trigger to recently fired trigger
   532     TInt error = iRecentlyFiredTriggerArray.Append( aTrigger );
   528     iRecentlyFiredTriggerArray.Append( aTrigger );
   533 	if( error != KErrNone )
       
   534 		{
       
   535 	    LOG1("Failed to append trigger to the array:%d",error);		
       
   536 		}
       
   537 	}
   529 	}
   538 
   530 
   539 
   531 
   540 
   532 
   541 // ----------------------------------------------------------------------------
   533 // ----------------------------------------------------------------------------
   616             
   608             
   617             if( remRearmTime <= 0 )
   609             if( remRearmTime <= 0 )
   618                 {
   610                 {
   619                 strategyData.iFireTime = 0;
   611                 strategyData.iFireTime = 0;
   620                 iRecentlyFiredTriggerArray[i]->SetStrategyData( strategyData );
   612                 iRecentlyFiredTriggerArray[i]->SetStrategyData( strategyData );
   621                 TInt error = activatedTriggers.Append( iRecentlyFiredTriggerArray[i] );
   613                 activatedTriggers.Append( iRecentlyFiredTriggerArray[i] );
   622                 if( error != KErrNone )
       
   623                     {
       
   624                     LOG1("Failed to append to fired triggers to the array:%d",error);
       
   625                     }
       
   626                 iRecentlyFiredTriggerArray.Remove(i);
   614                 iRecentlyFiredTriggerArray.Remove(i);
   627                 }
   615                 }
   628             }
   616             }
   629             
   617             
   630         }
   618         }