ipsservices/ipssosaoplugin/src/IpsSosAOPluginTimer.cpp
branchRCL_3
changeset 24 d189ee25cf9d
parent 0 8466d47a6819
child 25 3533d4323edc
equal deleted inserted replaced
23:dcf0eedfc1a3 24:d189ee25cf9d
    14 * Description: 
    14 * Description: 
    15 *     Timer for AO Plugin
    15 *     Timer for AO Plugin
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 
    19 #include "ipssosaopluginheaders.h"
    20 #include "emailtrace.h"
       
    21 #include "IpsSosAOPluginTimer.h"
       
    22 
       
    23 //<cmail> //internal dependency removed
       
    24 /*#ifdef _DEBUG
       
    25 #include "../../internal/IpsSosAOPluginTester/inc/IpsSosAOPluginTester.hrh"
       
    26 #endif // _DEBUG*/
       
    27 //</cmail>
       
    28 
    20 
    29 // ----------------------------------------------------------------------------
    21 // ----------------------------------------------------------------------------
    30 // ----------------------------------------------------------------------------
    22 // ----------------------------------------------------------------------------
    31 CIpsSosAOPluginTimer* CIpsSosAOPluginTimer::NewL( 
    23 CIpsSosAOPluginTimer* CIpsSosAOPluginTimer::NewL( 
    32     TInt aPriority, 
    24     TInt aPriority, 
    82     TTime time;
    74     TTime time;
    83     time.HomeTime();
    75     time.HomeTime();
    84     time = time + aSeconds;
    76     time = time + aSeconds;
    85     iTimer.At( iStatus, time );
    77     iTimer.At( iStatus, time );
    86     SetActive();
    78     SetActive();
    87     
       
    88 //<cmail> removing flags
       
    89 /*#ifdef IPSAOPLUGINTESTER_MBOXLOGICTEST   
       
    90     iTestActivationTime = time;
       
    91 #endif // IPSAOPLUGINTESTER_MBOXLOGICTEST*/
       
    92 //</cmail>    
       
    93     }
    79     }
    94     
    80     
    95 // ----------------------------------------------------------------------------
    81 // ----------------------------------------------------------------------------
    96 // ----------------------------------------------------------------------------
    82 // ----------------------------------------------------------------------------
    97 void CIpsSosAOPluginTimer::DoCancel()
    83 void CIpsSosAOPluginTimer::DoCancel()
   118     // Just ignore any error and continue without
   104     // Just ignore any error and continue without
   119     // any handling to allow smooth execution. 
   105     // any handling to allow smooth execution. 
   120     return KErrNone;            
   106     return KErrNone;            
   121     }
   107     }
   122 
   108 
   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 
   109 
   145 //EOF
   110 //EOF
   146 
   111