locationtriggering/ltstrategyengine/src/lbttriggerview.cpp
branchRCL_3
changeset 44 2b4ea9893b66
parent 13 19bff11d6c18
child 45 6b6920c56e2f
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
   100                 LOG1("Mem Error: %d", err);
   100                 LOG1("Mem Error: %d", err);
   101                 // ToDo: Initiate termination
   101                 // ToDo: Initiate termination
   102                 return;
   102                 return;
   103                 }
   103                 }
   104 
   104 
   105             iRefRequestList.Append( req );
   105             err = iRefRequestList.Append( req );
       
   106             if( err != KErrNone )
       
   107                 {
       
   108                 LOG1("Failed to append req to the array:%d",err);
       
   109                 return;
       
   110                 }
   106             }
   111             }
   107             
   112             
   108         LOG1( "View State is %d", iState );
   113         LOG1( "View State is %d", iState );
   109         // Initiate processing of request queue only if the current state is
   114         // Initiate processing of request queue only if the current state is
   110         // idle. Processing of subsequent requests is automatically handled 
   115         // idle. Processing of subsequent requests is automatically handled 
   128     {
   133     {
   129     FUNC_ENTER("CLbtTriggerView::GetModifiedTriggers");
   134     FUNC_ENTER("CLbtTriggerView::GetModifiedTriggers");
   130     
   135     
   131     for( TInt index = 0; index < iModifiedTrgList.Count(); index++ )
   136     for( TInt index = 0; index < iModifiedTrgList.Count(); index++ )
   132         {
   137         {
   133         aList.Append( iModifiedTrgList[index] );
   138         TInt error = aList.Append( iModifiedTrgList[index] );
       
   139         if( error != KErrNone )
       
   140             {
       
   141             LOG1("Failed to append trigger id:%d",error);
       
   142             return;
       
   143             }
   134         }
   144         }
   135     
   145     
   136     // This is done here because strategy engine invokes this method and evaluates all modified triggers
   146     // This is done here because strategy engine invokes this method and evaluates all modified triggers
   137     iModifiedTrgList.Reset();
   147     iModifiedTrgList.Reset();
   138     
   148     
   233     TUpdateRequestParam reqParam;
   243     TUpdateRequestParam reqParam;
   234     reqParam.areaType = aAreaType;
   244     reqParam.areaType = aAreaType;
   235     reqParam.posInfo = aPosInfo;
   245     reqParam.posInfo = aPosInfo;
   236     reqParam.trigger = aTrigger;
   246     reqParam.trigger = aTrigger;
   237     reqParam.dataMask = aDataMask;
   247     reqParam.dataMask = aDataMask;
   238     iUpdateRequestList.Append( reqParam );
   248     TInt error = iUpdateRequestList.Append( reqParam );
       
   249     if( error != KErrNone )
       
   250         {
       
   251         LOG1("Failed to appenf reqParam:%d",error);
       
   252         }
   239     if( EIdle == iState )
   253     if( EIdle == iState )
   240         {
   254         {
   241         iState = ERefreshContainer;
   255         iState = ERefreshContainer;
   242         SetEvent();
   256         SetEvent();
   243         }
   257         }