59 iTimer( NULL ), |
59 iTimer( NULL ), |
60 iTimerTable( NULL ), |
60 iTimerTable( NULL ), |
61 iEnvelopeTable( NULL ) |
61 iEnvelopeTable( NULL ) |
62 |
62 |
63 { |
63 { |
64 OstTrace0( TRACE_DETAILED, CSATTIMER_CSATTIMER, "CSatTimer::CSatTimer" ); |
64 OstTrace0( TRACE_INTERNALS, CSATTIMER_CSATTIMER_TD, "CSatTimer::CSatTimer" ); |
65 } |
65 } |
66 |
66 |
67 |
67 |
68 // ----------------------------------------------------------------------------- |
68 // ----------------------------------------------------------------------------- |
69 // CSatTimer::ConstructL |
69 // CSatTimer::ConstructL |
70 // Symbian 2nd phase constructor can leave. |
70 // Symbian 2nd phase constructor can leave. |
71 // ----------------------------------------------------------------------------- |
71 // ----------------------------------------------------------------------------- |
72 // |
72 // |
73 void CSatTimer::ConstructL() |
73 void CSatTimer::ConstructL() |
74 { |
74 { |
75 OstTrace0( TRACE_DETAILED, CSATTIMER_CONSTRUCTL, "CSatTimer::ConstructL" ); |
75 OstTrace0( TRACE_INTERNALS, CSATTIMER_CONSTRUCTL_TD, "CSatTimer::ConstructL" ); |
76 TFLOGSTRING("TSY: CSatTimer::ConstructL"); |
76 TFLOGSTRING("TSY: CSatTimer::ConstructL"); |
77 |
77 |
78 iTimerTable = new ( ELeave ) RArray<TTimer>( 8 ); |
78 iTimerTable = new ( ELeave ) RArray<TTimer>( 8 ); |
79 iEnvelopeTable = new ( ELeave ) RArray<TSatEnvelope>( 1 ); |
79 iEnvelopeTable = new ( ELeave ) RArray<TSatEnvelope>( 1 ); |
80 |
80 |
92 ( |
92 ( |
93 CSatMessHandler* aSatMessHandler, |
93 CSatMessHandler* aSatMessHandler, |
94 CTsySatMessaging* aSatMessaging |
94 CTsySatMessaging* aSatMessaging |
95 ) |
95 ) |
96 { |
96 { |
97 OstTrace0( TRACE_DETAILED, CSATTIMER_NEWL, "CSatTimer::NewL" ); |
97 OstTrace0( TRACE_INTERNALS, CSATTIMER_NEWL_TD, "CSatTimer::NewL" ); |
98 TFLOGSTRING("TSY: CSatTimer::NewL"); |
98 TFLOGSTRING("TSY: CSatTimer::NewL"); |
99 |
99 |
100 CSatTimer* self = new( ELeave ) CSatTimer( aSatMessHandler, aSatMessaging ); |
100 CSatTimer* self = new( ELeave ) CSatTimer( aSatMessHandler, aSatMessaging ); |
101 |
101 |
102 CleanupStack::PushL( self ); |
102 CleanupStack::PushL( self ); |
112 // Destructor |
112 // Destructor |
113 // ----------------------------------------------------------------------------- |
113 // ----------------------------------------------------------------------------- |
114 // |
114 // |
115 CSatTimer::~CSatTimer() |
115 CSatTimer::~CSatTimer() |
116 { |
116 { |
117 OstTrace0( TRACE_DETAILED, DUP1_CSATTIMER_CSATTIMER, "CSatTimer::~CSatTimer" ); |
117 OstTrace0( TRACE_INTERNALS, DUP1_CSATTIMER_CSATTIMER_TD, "CSatTimer::~CSatTimer" ); |
118 TFLOGSTRING("TSY: CSatTimer::~CSatTimer"); |
118 TFLOGSTRING("TSY: CSatTimer::~CSatTimer"); |
119 |
119 |
120 if ( iTimer ) |
120 if ( iTimer ) |
121 { |
121 { |
122 iTimer->Cancel(); |
122 iTimer->Cancel(); |
143 // (other items were commented in a header). |
143 // (other items were commented in a header). |
144 // ----------------------------------------------------------------------------- |
144 // ----------------------------------------------------------------------------- |
145 // |
145 // |
146 void CSatTimer::Start() |
146 void CSatTimer::Start() |
147 { |
147 { |
148 OstTrace0( TRACE_DETAILED, CSATTIMER_START, "CSatTimer::Start" ); |
148 OstTrace0( TRACE_INTERNALS, CSATTIMER_START_TD, "CSatTimer::Start" ); |
149 //Check if timer is active just in case |
149 //Check if timer is active just in case |
150 if ( !iTimer->IsActive() ) |
150 if ( !iTimer->IsActive() ) |
151 { |
151 { |
152 TFLOGSTRING("TSY: CSatTimer::Start: Timer started"); |
152 TFLOGSTRING("TSY: CSatTimer::Start: Timer started"); |
153 OstTrace0( TRACE_DETAILED, DUP1_CSATTIMER_START, "CSatTimer::Start: Timer started" ); |
153 OstTrace0( TRACE_INTERNALS, DUP1_CSATTIMER_START_TD, "CSatTimer::Start: Timer started" ); |
154 //Timer will tick every half second |
154 //Timer will tick every half second |
155 TCallBack callback( Tick, this ); |
155 TCallBack callback( Tick, this ); |
156 iTimer->Start( KTick, KTick, callback ); |
156 iTimer->Start( KTick, KTick, callback ); |
157 } |
157 } |
158 } |
158 } |
167 ( |
167 ( |
168 TInt aTimerId, |
168 TInt aTimerId, |
169 TUint32 aTimerValue |
169 TUint32 aTimerValue |
170 ) |
170 ) |
171 { |
171 { |
172 OstTrace0( TRACE_DETAILED, CSATTIMER_STARTTIMER, "CSatTimer::StartTimer" ); |
172 OstTrace0( TRACE_INTERNALS, CSATTIMER_STARTTIMER_TD, "CSatTimer::StartTimer" ); |
173 TFLOGSTRING("TSY: CSatTimer::StartTimer"); |
173 TFLOGSTRING("TSY: CSatTimer::StartTimer"); |
174 TInt ret( KErrNone ); |
174 TInt ret( KErrNone ); |
175 // Check if the entry is already in the table and delete if found. |
175 // Check if the entry is already in the table and delete if found. |
176 if ( CheckTimerTable( aTimerId ) ) |
176 if ( CheckTimerTable( aTimerId ) ) |
177 { |
177 { |
204 TInt CSatTimer::RestartTimer |
204 TInt CSatTimer::RestartTimer |
205 ( |
205 ( |
206 TInt aTimerId |
206 TInt aTimerId |
207 ) |
207 ) |
208 { |
208 { |
209 OstTrace0( TRACE_DETAILED, CSATTIMER_RESTARTTIMER, "CSatTimer::RestartTimer" ); |
209 OstTrace0( TRACE_INTERNALS, CSATTIMER_RESTARTTIMER_TD, "CSatTimer::RestartTimer" ); |
210 TFLOGSTRING("TSY: CSatTimer::RestartTimer"); |
210 TFLOGSTRING("TSY: CSatTimer::RestartTimer"); |
211 TInt ret( KErrNone ); |
211 TInt ret( KErrNone ); |
212 |
212 |
213 // Find timer from TimerTable |
213 // Find timer from TimerTable |
214 TTimer helper( aTimerId, 0, 0 ); |
214 TTimer helper( aTimerId, 0, 0 ); |
249 // (other items were commented in a header). |
249 // (other items were commented in a header). |
250 // ----------------------------------------------------------------------------- |
250 // ----------------------------------------------------------------------------- |
251 // |
251 // |
252 void CSatTimer::Stop() |
252 void CSatTimer::Stop() |
253 { |
253 { |
254 OstTrace0( TRACE_DETAILED, CSATTIMER_STOP, "CSatTimer::Stop" ); |
254 OstTrace0( TRACE_INTERNALS, CSATTIMER_STOP_TD, "CSatTimer::Stop" ); |
255 // If both timer and envelope arrays are empty, stop the timer. |
255 // If both timer and envelope arrays are empty, stop the timer. |
256 // Also if timer table is empty, clear the second counter. |
256 // Also if timer table is empty, clear the second counter. |
257 if ( iTimer->IsActive () ) |
257 if ( iTimer->IsActive () ) |
258 { |
258 { |
259 if ( !iEnvelopeTable->Count() |
259 if ( !iEnvelopeTable->Count() |
260 && !iTimerTable->Count() ) |
260 && !iTimerTable->Count() ) |
261 { |
261 { |
262 TFLOGSTRING("TSY: CSatTimer::Stop: Timer stopped"); |
262 TFLOGSTRING("TSY: CSatTimer::Stop: Timer stopped"); |
263 OstTrace0( TRACE_DETAILED, DUP1_CSATTIMER_STOP, "CSatTimer::Stop: Timer stopped" ); |
263 OstTrace0( TRACE_INTERNALS, DUP1_CSATTIMER_STOP_TD, "CSatTimer::Stop: Timer stopped" ); |
264 iTimer->Cancel(); |
264 iTimer->Cancel(); |
265 } |
265 } |
266 if ( !iTimerTable->Count() ) |
266 if ( !iTimerTable->Count() ) |
267 { |
267 { |
268 TFLOGSTRING("TSY: CSatTimer::Stop: Second counters cleared"); |
268 TFLOGSTRING("TSY: CSatTimer::Stop: Second counters cleared"); |
269 OstTrace0( TRACE_DETAILED, DUP2_CSATTIMER_STOP, "CSatTimer::Stop: Second counters cleared" ); |
269 OstTrace0( TRACE_INTERNALS, DUP2_CSATTIMER_STOP_TD, "CSatTimer::Stop: Second counters cleared" ); |
270 iSecondsPassed = 0; |
270 iSecondsPassed = 0; |
271 iHalfSecondTick = EFalse; |
271 iHalfSecondTick = EFalse; |
272 } |
272 } |
273 } |
273 } |
274 } |
274 } |
300 { |
300 { |
301 satTimer->iSecondsPassed++; |
301 satTimer->iSecondsPassed++; |
302 |
302 |
303 TFLOGSTRING2("TSY: CSatTimer::Tick, seconds %d", |
303 TFLOGSTRING2("TSY: CSatTimer::Tick, seconds %d", |
304 satTimer->iSecondsPassed ); |
304 satTimer->iSecondsPassed ); |
305 OstTrace1( TRACE_DETAILED, CSATTIMER_TICK, "CSatTimer::Tick, seconds %u", satTimer->iSecondsPassed ); |
305 OstTrace1( TRACE_INTERNALS, CSATTIMER_TICK_TD, "CSatTimer::Tick, seconds %u", satTimer->iSecondsPassed ); |
306 |
306 |
307 for( TInt i = tableSize - 1; KZero <= i; i-- ) |
307 for( TInt i = tableSize - 1; KZero <= i; i-- ) |
308 { |
308 { |
309 // Get reference to a timer in TimerTable |
309 // Get reference to a timer in TimerTable |
310 TTimer& timer = ( *satTimer->iTimerTable )[i]; |
310 TTimer& timer = ( *satTimer->iTimerTable )[i]; |
347 |
347 |
348 if ( KZero >= current.iDelay ) |
348 if ( KZero >= current.iDelay ) |
349 { |
349 { |
350 TFLOGSTRING2("TSY: CSatTimer::Tick: \ |
350 TFLOGSTRING2("TSY: CSatTimer::Tick: \ |
351 Resending type %x envelope", current.iType ); |
351 Resending type %x envelope", current.iType ); |
352 OstTraceExt1( TRACE_DETAILED, DUP1_CSATTIMER_TICK, "CSatTimer::Tick Resending type %hhu envelope", current.iType ); |
352 OstTraceExt1( TRACE_INTERNALS, DUP1_CSATTIMER_TICK_TD, "CSatTimer::Tick Resending type %hhu envelope", current.iType ); |
353 |
353 |
354 // Deactivate envelope just in case. Get new transaction |
354 // Deactivate envelope just in case. Get new transaction |
355 // if for envelope and resend it. Finally remove the |
355 // if for envelope and resend it. Finally remove the |
356 // envelope from table. |
356 // envelope from table. |
357 current.iActive = EFalse; |
357 current.iActive = EFalse; |
381 TBool CSatTimer::CheckTimerTable |
381 TBool CSatTimer::CheckTimerTable |
382 ( |
382 ( |
383 TInt aTimerId |
383 TInt aTimerId |
384 ) |
384 ) |
385 { |
385 { |
386 OstTrace0( TRACE_DETAILED, CSATTIMER_CHECKTIMERTABLE, "CSatTimer::CheckTimerTable" ); |
386 OstTrace0( TRACE_INTERNALS, CSATTIMER_CHECKTIMERTABLE_TD, "CSatTimer::CheckTimerTable" ); |
387 TFLOGSTRING("TSY: CSatTimer::CheckTimerTable"); |
387 TFLOGSTRING("TSY: CSatTimer::CheckTimerTable"); |
388 |
388 |
389 TBool ret( EFalse ); |
389 TBool ret( EFalse ); |
390 |
390 |
391 // Create the helper entry with meaningful values only |
391 // Create the helper entry with meaningful values only |
409 TInt CSatTimer::DeleteTimerById |
409 TInt CSatTimer::DeleteTimerById |
410 ( |
410 ( |
411 TInt aTimerId // Timer identifier |
411 TInt aTimerId // Timer identifier |
412 ) |
412 ) |
413 { |
413 { |
414 OstTrace0( TRACE_DETAILED, CSATTIMER_DELETETIMERBYID, "CSatTimer::DeleteTimerById" ); |
414 OstTrace0( TRACE_INTERNALS, CSATTIMER_DELETETIMERBYID_TD, "CSatTimer::DeleteTimerById" ); |
415 TFLOGSTRING("TSY: CSatTimer::DeleteTimerById"); |
415 TFLOGSTRING("TSY: CSatTimer::DeleteTimerById"); |
416 |
416 |
417 TInt ret( KErrNotFound ); |
417 TInt ret( KErrNotFound ); |
418 |
418 |
419 // Create the entry with meaningful values only |
419 // Create the entry with meaningful values only |
447 TUint32 CSatTimer::GetCurrentValueOfTimerById |
447 TUint32 CSatTimer::GetCurrentValueOfTimerById |
448 ( |
448 ( |
449 TInt aTimerId // Timer identifier |
449 TInt aTimerId // Timer identifier |
450 ) |
450 ) |
451 { |
451 { |
452 OstTrace0( TRACE_DETAILED, CSATTIMER_GETCURRENTVALUEOFTIMERBYID, "CSatTimer::GetCurrentValueOfTimerById" ); |
452 OstTrace0( TRACE_INTERNALS, CSATTIMER_GETCURRENTVALUEOFTIMERBYID_TD, "CSatTimer::GetCurrentValueOfTimerById" ); |
453 TFLOGSTRING("TSY: CSatTimer::GetCurrentValueOfTimerById"); |
453 TFLOGSTRING("TSY: CSatTimer::GetCurrentValueOfTimerById"); |
454 |
454 |
455 TInt ret( KErrNotFound ); |
455 TInt ret( KErrNotFound ); |
456 |
456 |
457 // Create the entry with meaningful values only |
457 // Create the entry with meaningful values only |
490 ( |
490 ( |
491 const TUint8 aTId, |
491 const TUint8 aTId, |
492 const TDesC8& aEnvelope |
492 const TDesC8& aEnvelope |
493 ) |
493 ) |
494 { |
494 { |
495 OstTrace0( TRACE_DETAILED, CSATTIMER_STOREENVELOPE, "CSatTimer::StoreEnvelope" ); |
495 OstTrace0( TRACE_INTERNALS, CSATTIMER_STOREENVELOPE_TD, "CSatTimer::StoreEnvelope" ); |
496 TFLOGSTRING("TSY: CSatTimer::StoreEnvelope"); |
496 TFLOGSTRING("TSY: CSatTimer::StoreEnvelope"); |
497 |
497 |
498 TInt ret( KErrNone ); |
498 TInt ret( KErrNone ); |
499 |
499 |
500 // Add envelope to array only if it is not already there, |
500 // Add envelope to array only if it is not already there, |
523 |
523 |
524 iEnvelopeTable->Append( envelope ); |
524 iEnvelopeTable->Append( envelope ); |
525 |
525 |
526 TFLOGSTRING2("CSatTimer::StoreEnvelope \ |
526 TFLOGSTRING2("CSatTimer::StoreEnvelope \ |
527 Stored envelopes: % d", iEnvelopeTable->Count() ); |
527 Stored envelopes: % d", iEnvelopeTable->Count() ); |
528 OstTrace1( TRACE_DETAILED, DUP1_CSATTIMER_STOREENVELOPE, "CSatTimer::StoreEnvelope Stored envelopes: %d", iEnvelopeTable->Count() ); |
528 OstTrace1( TRACE_INTERNALS, DUP1_CSATTIMER_STOREENVELOPE_TD, "CSatTimer::StoreEnvelope Stored envelopes: %d", iEnvelopeTable->Count() ); |
529 |
529 |
530 } |
530 } |
531 else |
531 else |
532 { |
532 { |
533 TFLOGSTRING2("CSatTimer::StoreEnvelope \ |
533 TFLOGSTRING2("CSatTimer::StoreEnvelope \ |
534 Storing failed, not an envelope! %x", aEnvelope[KZero] ); |
534 Storing failed, not an envelope! %x", aEnvelope[KZero] ); |
535 OstTraceExt1( TRACE_DETAILED, DUP2_CSATTIMER_STOREENVELOPE, "CSatTimer::StoreEnvelope Storing failed, not an envelope! %s", aEnvelope[KZero] ); |
535 OstTraceExt1( TRACE_INTERNALS, DUP2_CSATTIMER_STOREENVELOPE_TD, "CSatTimer::StoreEnvelope Storing failed, not an envelope! %s", aEnvelope[KZero] ); |
536 ret = KErrArgument; |
536 ret = KErrArgument; |
537 } |
537 } |
538 |
538 |
539 } |
539 } |
540 else |
540 else |
541 { |
541 { |
542 TFLOGSTRING2(" CSatTimer::StoreEnvelope \ |
542 TFLOGSTRING2(" CSatTimer::StoreEnvelope \ |
543 Envelope with requested ID %d already exist!", aTId ); |
543 Envelope with requested ID %d already exist!", aTId ); |
544 OstTraceExt1( TRACE_DETAILED, DUP3_CSATTIMER_STOREENVELOPE, "CSatTimer::StoreEnvelope Envelope with requested ID %hhd already exists!", aTId ); |
544 OstTraceExt1( TRACE_INTERNALS, DUP3_CSATTIMER_STOREENVELOPE_TD, "CSatTimer::StoreEnvelope Envelope with requested ID %hhd already exists!", aTId ); |
545 ret = KErrAlreadyExists; |
545 ret = KErrAlreadyExists; |
546 } |
546 } |
547 |
547 |
548 return ret; |
548 return ret; |
549 } |
549 } |
559 ( |
559 ( |
560 const TUint8 aTId, |
560 const TUint8 aTId, |
561 const TUint8 aCause |
561 const TUint8 aCause |
562 ) |
562 ) |
563 { |
563 { |
564 OstTrace0( TRACE_DETAILED, CSATTIMER_ACTIVATEENVELOPERESEND, "CSatTimer::ActivateEnvelopeResend" ); |
564 OstTrace0( TRACE_INTERNALS, CSATTIMER_ACTIVATEENVELOPERESEND_TD, "CSatTimer::ActivateEnvelopeResend" ); |
565 TFLOGSTRING("TSY: CSatTimer::ActivateEnvelopeResend"); |
565 TFLOGSTRING("TSY: CSatTimer::ActivateEnvelopeResend"); |
566 |
566 |
567 TInt ret( LocateEnvelope( aTId ) ); |
567 TInt ret( LocateEnvelope( aTId ) ); |
568 |
568 |
569 if ( KErrNotFound != ret ) |
569 if ( KErrNotFound != ret ) |
624 |
624 |
625 if ( KErrNone == ret ) |
625 if ( KErrNone == ret ) |
626 { |
626 { |
627 TFLOGSTRING("TSY: CSatTimer::ActivateEnvelopeResend \ |
627 TFLOGSTRING("TSY: CSatTimer::ActivateEnvelopeResend \ |
628 Resending activated"); |
628 Resending activated"); |
629 OstTrace0( TRACE_DETAILED, DUP1_CSATTIMER_ACTIVATEENVELOPERESEND, "CSatTimer::ActivateEnvelopeResend Resending activated" ); |
629 OstTrace0( TRACE_INTERNALS, DUP1_CSATTIMER_ACTIVATEENVELOPERESEND_TD, "CSatTimer::ActivateEnvelopeResend Resending activated" ); |
630 // (Re)start the timer if needed |
630 // (Re)start the timer if needed |
631 Start(); |
631 Start(); |
632 } |
632 } |
633 else |
633 else |
634 { |
634 { |
635 TFLOGSTRING2("TSY: CSatTimer::ActivateEnvelopeResend \ |
635 TFLOGSTRING2("TSY: CSatTimer::ActivateEnvelopeResend \ |
636 Resending NOT activated. Cause: %x", aCause ); |
636 Resending NOT activated. Cause: %x", aCause ); |
637 OstTraceExt1( TRACE_DETAILED, DUP2_CSATTIMER_ACTIVATEENVELOPERESEND, "CSatTimer::ActivateEnvelopeResend Resending NOT activated. Cause: %hhu", aCause ); |
637 OstTraceExt1( TRACE_INTERNALS, DUP2_CSATTIMER_ACTIVATEENVELOPERESEND_TD, "CSatTimer::ActivateEnvelopeResend Resending NOT activated. Cause: %hhu", aCause ); |
638 RemoveEnvelope( aTId ); |
638 RemoveEnvelope( aTId ); |
639 } |
639 } |
640 } |
640 } |
641 |
641 |
642 return ret; |
642 return ret; |
654 ( |
654 ( |
655 const TUint8 aTId, |
655 const TUint8 aTId, |
656 TBool aRemoveTimer |
656 TBool aRemoveTimer |
657 ) |
657 ) |
658 { |
658 { |
659 OstTrace0( TRACE_DETAILED, CSATTIMER_REMOVEENVELOPE, "CSatTimer::RemoveEnvelope" ); |
659 OstTrace0( TRACE_INTERNALS, CSATTIMER_REMOVEENVELOPE_TD, "CSatTimer::RemoveEnvelope" ); |
660 TFLOGSTRING("TSY: CSatTimer::RemoveEnvelope"); |
660 TFLOGSTRING("TSY: CSatTimer::RemoveEnvelope"); |
661 |
661 |
662 TInt ret( LocateEnvelope( aTId ) ); |
662 TInt ret( LocateEnvelope( aTId ) ); |
663 |
663 |
664 if ( KErrNotFound != ret ) |
664 if ( KErrNotFound != ret ) |
695 TInt CSatTimer::LocateEnvelope |
695 TInt CSatTimer::LocateEnvelope |
696 ( |
696 ( |
697 const TUint8 aTId |
697 const TUint8 aTId |
698 ) |
698 ) |
699 { |
699 { |
700 OstTrace0( TRACE_DETAILED, CSATTIMER_LOCATEENVELOPE, "CSatTimer::LocateEnvelope" ); |
700 OstTrace0( TRACE_INTERNALS, CSATTIMER_LOCATEENVELOPE_TD, "CSatTimer::LocateEnvelope" ); |
701 TFLOGSTRING("TSY: CSatTimer::LocateEnvelope"); |
701 TFLOGSTRING("TSY: CSatTimer::LocateEnvelope"); |
702 |
702 |
703 TInt ret( KErrNotFound ); |
703 TInt ret( KErrNotFound ); |
704 TInt numEnvelopes( iEnvelopeTable->Count() ); |
704 TInt numEnvelopes( iEnvelopeTable->Count() ); |
705 |
705 |
707 { |
707 { |
708 if ( ( *iEnvelopeTable )[i].iTId == aTId ) |
708 if ( ( *iEnvelopeTable )[i].iTId == aTId ) |
709 { |
709 { |
710 TFLOGSTRING2("TSY: CSatTimer::LocateEnvelope \ |
710 TFLOGSTRING2("TSY: CSatTimer::LocateEnvelope \ |
711 Requested envelope was found at index %d", i ); |
711 Requested envelope was found at index %d", i ); |
712 OstTrace1( TRACE_DETAILED, DUP1_CSATTIMER_LOCATEENVELOPE, "CSatTimer::LocateEnvelope Requested envelope was found at index %d", i ); |
712 OstTrace1( TRACE_INTERNALS, DUP1_CSATTIMER_LOCATEENVELOPE_TD, "CSatTimer::LocateEnvelope Requested envelope was found at index %d", i ); |
713 ret = i; |
713 ret = i; |
714 } |
714 } |
715 } |
715 } |
716 |
716 |
717 return ret; |
717 return ret; |
727 void CSatTimer::SetProactiveCommandOnGoingStatus |
727 void CSatTimer::SetProactiveCommandOnGoingStatus |
728 ( |
728 ( |
729 TBool aStatus |
729 TBool aStatus |
730 ) |
730 ) |
731 { |
731 { |
732 OstTrace0( TRACE_DETAILED, CSATTIMER_SETPROACTIVECOMMANDONGOINGSTATUS, "CSatTimer::SetProactiveCommandOnGoingStatus" ); |
732 OstTrace0( TRACE_INTERNALS, CSATTIMER_SETPROACTIVECOMMANDONGOINGSTATUS_TD, "CSatTimer::SetProactiveCommandOnGoingStatus" ); |
733 iProactiveCommandOnGoing = aStatus; |
733 iProactiveCommandOnGoing = aStatus; |
734 |
734 |
735 TInt tableSize( iTimerTable->Count() ); |
735 TInt tableSize( iTimerTable->Count() ); |
736 |
736 |
737 if ( !iProactiveCommandOnGoing && tableSize ) |
737 if ( !iProactiveCommandOnGoing && tableSize ) |
758 // (other items were commented in a header). |
758 // (other items were commented in a header). |
759 // ----------------------------------------------------------------------------- |
759 // ----------------------------------------------------------------------------- |
760 // |
760 // |
761 void CSatTimer::ClearTimerTable() |
761 void CSatTimer::ClearTimerTable() |
762 { |
762 { |
763 OstTrace0( TRACE_DETAILED, CSATTIMER_CLEARTIMERTABLE, "CSatTimer::ClearTimerTable" ); |
763 OstTrace0( TRACE_INTERNALS, CSATTIMER_CLEARTIMERTABLE_TD, "CSatTimer::ClearTimerTable" ); |
764 |
764 |
765 if ( KZero != iTimerTable->Count() ) |
765 if ( KZero != iTimerTable->Count() ) |
766 { |
766 { |
767 // Clear the array |
767 // Clear the array |
768 iTimerTable->Reset(); |
768 iTimerTable->Reset(); |