ipsservices/ipssosaoplugin/src/IpsSosAOPluginTimer.cpp
changeset 23 2dc6caa42ec3
parent 0 8466d47a6819
child 57 ae34e1715e21
equal deleted inserted replaced
20:ecc8def7944a 23:2dc6caa42ec3
    18 
    18 
    19 
    19 
    20 #include "emailtrace.h"
    20 #include "emailtrace.h"
    21 #include "IpsSosAOPluginTimer.h"
    21 #include "IpsSosAOPluginTimer.h"
    22 
    22 
    23 //<cmail> //internal dependency removed
       
    24 /*#ifdef _DEBUG
       
    25 #include "../../internal/IpsSosAOPluginTester/inc/IpsSosAOPluginTester.hrh"
       
    26 #endif // _DEBUG*/
       
    27 //</cmail>
       
    28 
    23 
    29 // ----------------------------------------------------------------------------
    24 // ----------------------------------------------------------------------------
    30 // ----------------------------------------------------------------------------
    25 // ----------------------------------------------------------------------------
    31 CIpsSosAOPluginTimer* CIpsSosAOPluginTimer::NewL( 
    26 CIpsSosAOPluginTimer* CIpsSosAOPluginTimer::NewL( 
    32     TInt aPriority, 
    27     TInt aPriority, 
    82     TTime time;
    77     TTime time;
    83     time.HomeTime();
    78     time.HomeTime();
    84     time = time + aSeconds;
    79     time = time + aSeconds;
    85     iTimer.At( iStatus, time );
    80     iTimer.At( iStatus, time );
    86     SetActive();
    81     SetActive();
    87     
       
    88 //<cmail> removing flags
       
    89 /*#ifdef IPSAOPLUGINTESTER_MBOXLOGICTEST   
       
    90     iTestActivationTime = time;
       
    91 #endif // IPSAOPLUGINTESTER_MBOXLOGICTEST*/
       
    92 //</cmail>    
       
    93     }
    82     }
    94     
    83     
    95 // ----------------------------------------------------------------------------
    84 // ----------------------------------------------------------------------------
    96 // ----------------------------------------------------------------------------
    85 // ----------------------------------------------------------------------------
    97 void CIpsSosAOPluginTimer::DoCancel()
    86 void CIpsSosAOPluginTimer::DoCancel()
   118     // Just ignore any error and continue without
   107     // Just ignore any error and continue without
   119     // any handling to allow smooth execution. 
   108     // any handling to allow smooth execution. 
   120     return KErrNone;            
   109     return KErrNone;            
   121     }
   110     }
   122 
   111 
   123 //<cmail> removing flags
       
   124 /*#ifdef IPSAOPLUGINTESTER_MBOXLOGICTEST
       
   125 // ----------------------------------------------------------------------------
       
   126 // TEST USAGE
       
   127 // ----------------------------------------------------------------------------
       
   128 //
       
   129 TInt CIpsSosAOPluginTimer::GetSecondsToTrick()
       
   130     {
       
   131     if ( !IsActive() )
       
   132         {
       
   133         return KErrNotFound;
       
   134         }
       
   135     
       
   136     TTime now;
       
   137     now.HomeTime();
       
   138     TTimeIntervalSeconds secs;
       
   139     iTestActivationTime.SecondsFrom( now, secs );
       
   140     return secs.Int();
       
   141     }
       
   142 #endif // IPSAOPLUGINTESTER_MBOXLOGICTEST*/
       
   143 //</cmail>    
       
   144 
   112 
   145 //EOF
   113 //EOF
   146 
   114