phoneapp/phoneuiutils/src/cphonetimer.cpp
branchRCL_3
changeset 24 41a7f70b3818
parent 5 2a26698d78ba
child 25 5266b1f337bd
--- a/phoneapp/phoneuiutils/src/cphonetimer.cpp	Thu Aug 19 09:54:27 2010 +0300
+++ b/phoneapp/phoneuiutils/src/cphonetimer.cpp	Tue Aug 31 15:14:29 2010 +0300
@@ -20,6 +20,7 @@
 // INCLUDE FILES
 #include "cphonetimer.h"
 #include "phoneui.pan"
+#include "phonelogger.h"
 
 // ================= MEMBER FUNCTIONS =======================
 
@@ -30,6 +31,7 @@
 CPhoneTimer::CPhoneTimer( TInt aPriority ) :
     CTimer( aPriority)
     {
+    __LOGMETHODSTARTEND(EPhoneUIUtils, "CPhoneTimer::CPhoneTimer() ");
     CActiveScheduler::Add( this );
     }
 
@@ -39,6 +41,7 @@
 //
 void CPhoneTimer::ConstructL()
     {
+    __LOGMETHODSTARTEND(EPhoneUIUtils, "CPhoneTimer::ConstructL() ");
     CTimer::ConstructL();
     }
 
@@ -48,6 +51,7 @@
 //
 EXPORT_C CPhoneTimer* CPhoneTimer::NewL( TInt aPriority )
     {
+    __LOGMETHODSTARTEND(EPhoneUIUtils, "CPhoneTimer::NewL() ");
     CPhoneTimer* self = new (ELeave) CPhoneTimer( aPriority );
     
     CleanupStack::PushL( self );
@@ -63,6 +67,7 @@
 //
 EXPORT_C CPhoneTimer::~CPhoneTimer()
     {
+    __LOGMETHODSTARTEND(EPhoneUIUtils, "CPhoneTimer::~CPhoneTimer() ");
     Cancel();    
     }
 
@@ -72,6 +77,10 @@
 //
 void CPhoneTimer::RunL()
     {
+    __PHONELOG1( EBasic, EPhoneUIUtils, 
+        "CPhoneTimer::RunL iStatus(%d)", 
+        iStatus.Int() );
+    
     if ( iStatus != KErrNone )
         {
         //error code is ignored, as CPeriodic. 
@@ -80,10 +89,14 @@
    
     if ( !iTimerObserver )
         {
+        __PHONELOG( EBasic, EPhoneUIUtils, 
+            "CPhoneTimer::RunL CallBack" );
         iCallBack.CallBack();
         }
     else
         {
+        __PHONELOG( EBasic, EPhoneUIUtils, 
+            "CPhoneTimer::RunL HandleTimeOutL" );
         iTimerObserver->HandleTimeOutL();
         }
     }
@@ -96,6 +109,7 @@
     TTimeIntervalMicroSeconds32 anInterval, 
     TCallBack aCallBack )
     {
+    __LOGMETHODSTARTEND(EPhoneUIUtils, "CPhoneTimer::After() ");
     
     if ( IsActive() )
         {
@@ -115,6 +129,7 @@
     TTimeIntervalMicroSeconds32 anInterval, 
     MPhoneTimer* aObserver )
     {
+    __LOGMETHODSTARTEND(EPhoneUIUtils, "CPhoneTimer::After() ");
     
     __ASSERT_DEBUG( aObserver, Panic( EPhoneUtilsParameterNotInitialized ) );
     
@@ -132,6 +147,7 @@
 //
 EXPORT_C void CPhoneTimer::CancelTimer()
     {
+    __LOGMETHODSTARTEND(EPhoneUIUtils, "CPhoneTimer::CancelTimer() ");
     Cancel();
     }
 
@@ -141,6 +157,7 @@
 //
 void CPhoneTimer::DoCancel()
     {
+    __LOGMETHODSTARTEND(EPhoneUIUtils, "CPhoneTimer::DoCancel() ");
     iTimerObserver = NULL;
     CTimer::DoCancel();
     }