networkhandling/networkhandlingengine/NetworkHandlingGsmInc/CNWNetworkMcnTimer.h
changeset 0 ff3b6d0fd310
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/networkhandling/networkhandlingengine/NetworkHandlingGsmInc/CNWNetworkMcnTimer.h	Tue Feb 02 01:11:09 2010 +0200
@@ -0,0 +1,111 @@
+/*
+* Copyright (c) 2002-2009 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:  This file contains the header file of the CNWNetworkMcnTimer class.
+*
+*/
+
+
+
+#ifndef CNWNETWORKMCNTIMER_H
+#define CNWNETWORKMCNTIMER_H
+
+//  INCLUDES
+#include <e32base.h>
+
+
+// FORWARD DECLARATIONS
+class MNWNetworkTimer;
+
+// CLASS DECLARATION
+
+/**
+*  Utility class for timer 
+*  
+*
+*  @lib euser.lib
+*  @since Series 60_2.8
+*/
+class CNWNetworkMcnTimer : public CTimer
+    {
+    public:  // Constructors and destructor
+        
+        /**
+        * Two-phased constructor.
+        */
+        static CNWNetworkMcnTimer* NewL(
+            TInt aPriority = CActive::EPriorityStandard );
+        
+        /**
+        * Destructor.
+        */
+        virtual ~CNWNetworkMcnTimer();
+
+    public: // New functions
+        
+        /**
+        * Calls the Callback function after the interval.
+        *
+        * @param    anInterval  Timer interval.
+        * @param    aCallBack   CallBack function.
+        * @return
+        */
+        void After( const TTimeIntervalMicroSeconds32& anInterval,
+                    const TCallBack& aCallBack );
+
+        /**
+        * Uses the mixin class to notify the timer expiration.
+        *
+        * @param    anInterval  Timer interval.
+        * @param    aObserver   Observer to call after timer expiration.
+        * @return
+        */
+        void After( const TTimeIntervalMicroSeconds32& anInterval, 
+                    MNWNetworkTimer* aObserver );
+
+    protected:  // Functions from CActive
+        
+        /**
+        * Informs object that asyncronous request is ready.
+        * 
+        */
+        virtual void RunL();
+
+    private:
+
+        /**
+        * C++ default constructor.
+        */
+        CNWNetworkMcnTimer( TInt aPriority );
+
+        /**
+        * By default Symbian 2nd phase constructor is private.
+        */
+        void ConstructL();
+
+        // Prohibit copy constructor if not deriving from CBase.
+        CNWNetworkMcnTimer( const CNWNetworkMcnTimer& );
+        // Prohibit assigment operator if not deriving from CBase.
+        CNWNetworkMcnTimer& operator=( const CNWNetworkMcnTimer& );
+
+    private:    // Data
+        // 
+        TCallBack iCallBack;
+        // Pointer to the MNWNetworkTimer
+        MNWNetworkTimer* iTimerObserver;
+
+    };
+
+#endif      // CNWNetworkMcnTimer_H   
+            
+// End of File