ipsservices/ipssosaoplugin/inc/IpsSosAOPluginTimer.h
changeset 0 8466d47a6819
child 18 578830873419
child 63 d189ee25cf9d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ipsservices/ipssosaoplugin/inc/IpsSosAOPluginTimer.h	Thu Dec 17 08:39:21 2009 +0200
@@ -0,0 +1,139 @@
+/*
+* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*     Main smpt plugin class
+*
+*/
+
+
+#ifndef __CIPSSOSSMTPPLUGINTIMER_H__
+#define __CIPSSOSSMTPPLUGINTIMER_H__
+
+
+#include <e32base.h>    // CBase
+
+//<cmail> //internal dependency removed
+/*#ifdef _DEBUG
+#include "../../internal/IpsSosAOPluginTester/inc/IpsSosAOPluginTester.hrh"
+#endif // _DEBUG*/
+//</cmail>
+
+/**
+* class MIpsSosAOPluginTimerCallBack
+* interface to timer call backs
+*/
+class MIpsSosAOPluginTimerCallBack
+    {
+public:
+    
+    virtual void TimerFiredL() = 0;
+    
+    };
+
+/**
+* class CIpsSosAOPluginTimer
+*
+* Ips sos ao plugin timer class, used by mbox logic class
+* 
+* @lib ipssosaoplugin.lib
+*/
+class CIpsSosAOPluginTimer : 
+    public CActive
+    {
+    
+public:
+    
+        /**
+        * Symbian OS NewL function
+        * @return CIpsSosAOPluginTimer*, self pointer
+        */
+        static CIpsSosAOPluginTimer* NewL( 
+            TInt aPriority,
+            MIpsSosAOPluginTimerCallBack& aCallBack );
+
+
+        /**
+        * destructor
+        */
+        virtual ~CIpsSosAOPluginTimer();
+
+private:
+    
+        /**
+        * Constructor
+        * @param aPriority active object priority
+        */
+        CIpsSosAOPluginTimer( 
+            TInt aPriority,
+            MIpsSosAOPluginTimerCallBack& aCallBack );
+
+        /**
+        * ConstructL
+        * Symbian OS second phase constructor.
+        */
+		void ConstructL();
+
+public:
+
+        /**
+        * Set timer active
+        * @param const TTimeIntervalSeconds&, seconds to trick 
+        */
+		void After( const TTimeIntervalSeconds& aSeconds );
+
+//<cmail> //internal dependency removed
+/*#ifdef _DEBUG		
+#ifdef IPSAOPLUGINTESTER_MBOXLOGICTEST
+        // test usage
+        TInt GetSecondsToTrick();
+#endif // IPSAOPLUGINTESTER_MBOXLOGICTEST*/
+//</cmail>
+
+protected:
+
+        /**
+        * DoCancel
+        * From CActive
+        */
+		virtual void DoCancel();
+
+        /**
+        * RunL
+        * From CActive
+        */
+		virtual void RunL();
+		
+		/**
+		* Function to handle error during running the operation
+		* @return KErrNone, when error has been handled
+		*/
+		virtual TInt RunError( TInt aError );
+
+protected: // Data
+	
+		RTimer                        iTimer;
+		MIpsSosAOPluginTimerCallBack& iCallBack;
+
+//<cmail> //internal dependency removed
+/*#ifdef _DEBUG				
+#ifdef IPSAOPLUGINTESTER_MBOXLOGICTEST
+        // test usage
+        TTime                          iTestActivationTime;
+#endif // IPSAOPLUGINTESTER_MBOXLOGICTEST*/
+//</cmail>
+    };
+    
+#endif /* __CIPSSOSSMTPPLUGINTIMER_H__ */
+
+//EOF