javaextensions/sensor/src.s60/csensorbase.cpp
branchRCL_3
changeset 71 d5e927d5853b
parent 66 2455ef1f5bbc
child 83 26b2b12093af
equal deleted inserted replaced
66:2455ef1f5bbc 71:d5e927d5853b
   247         if (iConditions[ i ]->Evaluate(currentValue, aChannelId))
   247         if (iConditions[ i ]->Evaluate(currentValue, aChannelId))
   248         {
   248         {
   249             matched = ETrue;
   249             matched = ETrue;
   250             CSensorConditionBase *condition = iConditions[i];
   250             CSensorConditionBase *condition = iConditions[i];
   251             iConditions.Remove(i);
   251             iConditions.Remove(i);
   252             if (iSensorListener)
   252 
   253             {
   253             iSensorListener->ConditionMet(
   254                 iSensorListener->ConditionMet(
   254                 condition,
   255                     condition,
   255                 condition->GetChannelId(),
   256                     condition->GetChannelId(),
   256                 currentValue,
   257                     currentValue,
   257                 javaTime);
   258                     javaTime);
   258           
   259             }
       
   260             delete condition;
   259             delete condition;
   261         }
   260         }
   262     }
   261     }
   263 
   262 
   264     // Also send all values separately if we have java side custom conditions
   263     // Also send all values separately if we have java side custom conditions
   265     if (iJavaConditionEval)
   264     if (iJavaConditionEval)
   266     {
   265     {
       
   266         if (iSensorListener != NULL)
   267         iSensorListener->ConditionMet(0, aChannelId, currentValue, javaTime);
   267         iSensorListener->ConditionMet(0, aChannelId, currentValue, javaTime);
   268     }
   268     }
   269     return matched;
   269     return matched;
   270 }
   270 }
   271 
   271