locationtriggering/ltstrategyengine/src/lbtcellchangehandler.cpp
branchRCL_3
changeset 21 6b6920c56e2f
parent 20 2b4ea9893b66
equal deleted inserted replaced
20:2b4ea9893b66 21:6b6920c56e2f
   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     TInt error = iObserverArray.Append( aObserver );
   138     iObserverArray.Append( aObserver );
   139     if( error != KErrNone )
       
   140         {
       
   141         LOG1("Failed to append observer to the array:%d",error);
       
   142         return;
       
   143         }
       
   144     // If cell change handler already has cell information,update it to the observer
   139     // If cell change handler already has cell information,update it to the observer
   145     if( iLocArea.iCellId && iLastStatusInfo == KErrNone )
   140     if( iLocArea.iCellId && iLastStatusInfo == KErrNone )
   146         {
   141         {
   147         aObserver->HandleCellChangeEvent( iLastStatusInfo ,iNwInfo, iLocArea );
   142         aObserver->HandleCellChangeEvent( iLastStatusInfo ,iNwInfo, iLocArea );
   148         }
   143         }