equal
deleted
inserted
replaced
278 TTCEventProperty& property = static_cast<TTCEventProperty&>( *aEvent ); |
278 TTCEventProperty& property = static_cast<TTCEventProperty&>( *aEvent ); |
279 if( property.iProperty.GetPropertyId() == KSensrvPropIdDataRate ) |
279 if( property.iProperty.GetPropertyId() == KSensrvPropIdDataRate ) |
280 { |
280 { |
281 property.iProperty.GetValue( iHzSamplingRate ); |
281 property.iProperty.GetValue( iHzSamplingRate ); |
282 INFO_1( "Sampling rate changed to: %d", iHzSamplingRate ); |
282 INFO_1( "Sampling rate changed to: %d", iHzSamplingRate ); |
283 iHasChanged = ETrue; |
|
284 HandleStateEntryL(); |
283 HandleStateEntryL(); |
285 } |
284 } |
286 break; |
285 break; |
287 } |
286 } |
288 case EEventIdHandleTimerExpriredSend: |
287 case EEventIdHandleTimerExpriredSend: |
353 } |
352 } |
354 iRequestedDataCount = iTransactionHandler.DataCount(); |
353 iRequestedDataCount = iTransactionHandler.DataCount(); |
355 if( !iTimerToSend ) |
354 if( !iTimerToSend ) |
356 { |
355 { |
357 iTimerToSend = CTCSendEventTimer::NewL( iHzSamplingRate, *this ); |
356 iTimerToSend = CTCSendEventTimer::NewL( iHzSamplingRate, *this ); |
358 iTimerToSend->Start(); |
357 } |
359 } |
358 iTimerToSend->Start(iHzSamplingRate); |
360 else if( iHasChanged ) |
|
361 { |
|
362 delete iTimerToSend; |
|
363 iTimerToSend = NULL; |
|
364 iTimerToSend = CTCSendEventTimer::NewL( iHzSamplingRate, *this ); |
|
365 iHasChanged = EFalse; |
|
366 } |
|
367 else |
|
368 { |
|
369 iTimerToSend->Start(); |
|
370 } |
|
371 } |
359 } |
372 |
360 |
373 // ---------------------------------------------------------------------------------- |
361 // ---------------------------------------------------------------------------------- |
374 // CTCStateTiltListenData::HandleStateExitL |
362 // CTCStateTiltListenData::HandleStateExitL |
375 // ---------------------------------------------------------------------------------- |
363 // ---------------------------------------------------------------------------------- |
472 ResetState( ETrue ); |
460 ResetState( ETrue ); |
473 } |
461 } |
474 else |
462 else |
475 { |
463 { |
476 if( iTimerToSend ) |
464 if( iTimerToSend ) |
477 iTimerToSend->Start(); |
465 iTimerToSend->Start(iHzSamplingRate); |
478 } |
466 } |
479 } |
467 } |
480 |
468 |
481 // ---------------------------------------------------------------------------------- |
469 // ---------------------------------------------------------------------------------- |
482 // CTCStateTiltListenData::ResetState |
470 // CTCStateTiltListenData::ResetState |
510 |
498 |
511 // ----------------------------------------------------------------------------- |
499 // ----------------------------------------------------------------------------- |
512 // CTCStateTiltListenData::CenrepValueChanged |
500 // CTCStateTiltListenData::CenrepValueChanged |
513 // ----------------------------------------------------------------------------- |
501 // ----------------------------------------------------------------------------- |
514 // |
502 // |
|
503 #ifdef _DEBUG |
515 void CTCStateTiltListenData::CenrepValueChanged( TUint32 aKey, CRepository& aRepository ) |
504 void CTCStateTiltListenData::CenrepValueChanged( TUint32 aKey, CRepository& aRepository ) |
|
505 #else |
|
506 void CTCStateTiltListenData::CenrepValueChanged( TUint32 /*aKey*/, CRepository& aRepository ) |
|
507 #endif |
516 { |
508 { |
517 FUNC_LOG; |
509 FUNC_LOG; |
518 |
510 |
519 INFO_1( "CTCStateTiltListenData::CenrepValueChanged: aKey %d", aKey ); |
511 INFO_1( "CTCStateTiltListenData::CenrepValueChanged: aKey %d", aKey ); |
520 |
512 |