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