equal
deleted
inserted
replaced
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 |