mmserv/tms/tmsserver/src/tmsrtplayer.cpp
changeset 21 2ed61feeead6
parent 20 b67dd1fc57c5
child 33 5e8b14bae8c3
child 42 1fa3fb47b1e3
--- a/mmserv/tms/tmsserver/src/tmsrtplayer.cpp	Fri May 14 18:19:45 2010 -0500
+++ b/mmserv/tms/tmsserver/src/tmsrtplayer.cpp	Fri May 28 19:26:28 2010 -0500
@@ -594,18 +594,18 @@
         if (!iAudioPlayer)
             {
             CreateAudioPlayerL();
-            if (!iTimer->IsActive())
+            if (!iTimer->IsRunning())
                 {
                 // If InitComplete event doesn't occur within permittable time,
                 // this will trigger fallback routine.
-                iTimer->After(KTMSMaxRingingWaiting, this);
+                iTimer->NotifyAfter(KTMSMaxRingingWaiting, *this);
                 }
             }
 
         // Start playing.
         if (!iAudioPlayer)
             {
-            iTimer->Cancel();
+            iTimer->CancelNotify();
             PlayDefaultToneL();
             }
         else
@@ -739,9 +739,9 @@
         iTtsDelaysCount = KTMSTtsDelaysCount;
 
         // Start TTS timer just before RT
-        if (!iTtsDelayTimer->IsActive())
+        if (!iTtsDelayTimer->IsRunning())
             {
-            iTtsDelayTimer->After(KTMSTtsDelays[iTtsDelayIndex],
+            iTtsDelayTimer->NotifyAfter(KTMSTtsDelays[iTtsDelayIndex],
                     TCallBack(HandleTtsDelayTimeout, this));
             }
         iTtsVolume = iRtParam.iVolume;
@@ -771,7 +771,7 @@
         iTonePlayingStatus = EBackupTonePlaying;
         iTtsToneToBePlayed = EFalse;
         iTTsTimeOutCounter = 0;
-        iTtsDelayTimer->Cancel();
+        iTtsDelayTimer->CancelNotify();
         if (iTtsPlayer)
             {
             iTtsPlayer->StopPlaying();
@@ -809,11 +809,11 @@
     if (!iDefaultPlayer)
         {
         CreateDefaultRtPlayerL();
-        if (!iTimer->IsActive())
+        if (!iTimer->IsRunning())
             {
             // If InitComplete event doesn't occur within permittable time,
             // this will trigger fallback routine.
-            iTimer->After(KTMSMaxRingingWaiting, this);
+            iTimer->NotifyAfter(KTMSMaxRingingWaiting, *this);
             }
         }
 
@@ -821,7 +821,7 @@
     if (!iDefaultPlayer)
         {
         // Default player not ready, play backup.
-        iTimer->Cancel();
+        iTimer->CancelNotify();
         PlayBackupToneL();
         }
     else
@@ -844,14 +844,14 @@
 
     iTtsToneToBePlayed = EFalse;
     iTTsTimeOutCounter = 0;
-    iTtsDelayTimer->Cancel();
+    iTtsDelayTimer->CancelNotify();
     if (iTtsPlayer)
         {
         iTtsPlayer->StopPlaying();
         delete iTtsPlayer;
         iTtsPlayer = NULL;
         }
-    iTimer->Cancel();
+    iTimer->CancelNotify();
 
     switch (iTonePlayingStatus)
         {
@@ -1240,7 +1240,7 @@
         if (ignore) ;
         }
 
-    iTimer->Cancel();
+    iTimer->CancelNotify();
     DoHandlePlayerError(!deleteAll, EFalse);
     iRtObserver.RtPlayerEvent(aEvent, aError);
     }
@@ -1256,7 +1256,7 @@
             (iTonePlayingStatus == EDefaultTonePlaying &&
             aPlayer == EPlayerDefault))
         {
-        iTimer->Cancel();
+        iTimer->CancelNotify();
         }
     else
         {
@@ -1302,10 +1302,10 @@
             // Need to restart TTS sequence TTS has completed its iterations,
             // set index to zero.
             iTtsDelayIndex = 0;
-            if (!iTtsDelayTimer->IsActive())
+            if (!iTtsDelayTimer->IsRunning())
                 {
                 // Restart TTS sequence
-                iTtsDelayTimer->After(KTMSTtsDelays[iTtsDelayIndex],
+                iTtsDelayTimer->NotifyAfter(KTMSTtsDelays[iTtsDelayIndex],
                         TCallBack(HandleTtsDelayTimeout, this));
                 }
             }
@@ -1332,10 +1332,10 @@
         // Caller name is said once. Increase tone player volume.
         SolveNewVolumeAndRamptime(ESaidOnce);
 
-        if (!iTtsDelayTimer->IsActive())
+        if (!iTtsDelayTimer->IsRunning())
             {
             // There are more TTS iterations to be played.
-            iTtsDelayTimer->After(KTMSTtsDelays[iTtsDelayIndex],
+            iTtsDelayTimer->NotifyAfter(KTMSTtsDelays[iTtsDelayIndex],
                     TCallBack(HandleTtsDelayTimeout, this));
             }
         }
@@ -1347,10 +1347,10 @@
     }
 
 // -----------------------------------------------------------------------------
-// TMSRingTonePlayer::HandleTimeOutL
+// TMSRingTonePlayer::TimerEvent
 // -----------------------------------------------------------------------------
 //
-void TMSRingTonePlayer::HandleTimeOutL()
+void TMSRingTonePlayer::TimerEvent()
     {
     DoHandlePlayerError(ETrue, ETrue);
     }