locationtriggering/ltstrategyengine/src/lbtcellchangehandler.cpp
branchRCL_3
changeset 44 2b4ea9893b66
parent 0 667063e416a2
child 45 6b6920c56e2f
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
   133 // -----------------------------------------------------------------------------
   133 // -----------------------------------------------------------------------------
   134 //
   134 //
   135 void CLbtCellChangeHandler::SetObserver( MCellChangeObserver* aObserver )
   135 void CLbtCellChangeHandler::SetObserver( MCellChangeObserver* aObserver )
   136     {
   136     {
   137     FUNC_ENTER("CLbtCellChangeHandler::SetObserver");
   137     FUNC_ENTER("CLbtCellChangeHandler::SetObserver");
   138     iObserverArray.Append( aObserver );
   138     TInt error = iObserverArray.Append( aObserver );
       
   139     if( error != KErrNone )
       
   140         {
       
   141         LOG1("Failed to append observer to the array:%d",error);
       
   142         return;
       
   143         }
   139     // If cell change handler already has cell information,update it to the observer
   144     // If cell change handler already has cell information,update it to the observer
   140     if( iLocArea.iCellId && iLastStatusInfo == KErrNone )
   145     if( iLocArea.iCellId && iLastStatusInfo == KErrNone )
   141         {
   146         {
   142         aObserver->HandleCellChangeEvent( iLastStatusInfo ,iNwInfo, iLocArea );
   147         aObserver->HandleCellChangeEvent( iLastStatusInfo ,iNwInfo, iLocArea );
   143         }
   148         }