S60 3rd Edition SDK for Symbian OS
Example Applications Guide

SIPExTimeOutTimer.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : SIPExTimeOutTimer.h
00004 *  Part of     : SIPExSocketEngine
00005 *  Interface   : 
00006 *  Description : 
00007 *  Version     : 
00008 *
00009 *  Copyright (c) 2004-2006 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 #ifndef CSIPEXTIMEOUTIMER_H
00017 #define CSIPEXTIMEOUTIMER_H
00018 
00019 // INCLUDES
00020 #include    <e32base.h>
00021 
00022 // CONSTANTS
00023 const TInt KTimeOutInSeconds( 30 );
00024 const TInt KTimeOut( KTimeOutInSeconds * 1000000 );
00025 
00026 // FORWARD DECLARATIONS
00027 class MSIPExTimeOutNotify;
00028 
00029 // CLASS DECLARATIONS
00030 /**
00031 * Implements timeout timer.
00032 */
00033 class CSIPExTimeOutTimer: public CTimer
00034         {
00035     public:
00036         
00037         /**
00038         * Static constructor
00039         * @param aTimeOutNotify The reference to the timeout notifier.
00040         * @return A new instance of CSIPExTimeOutTimer
00041         */
00042         static CSIPExTimeOutTimer* NewL( MSIPExTimeOutNotify& aTimeOutNotify );
00043 
00044         /**
00045         * Destructor.
00046         */
00047         ~CSIPExTimeOutTimer();
00048 
00049     protected:
00050 
00051         /**
00052         * C++ default constructor.
00053         * @param aTimeOutNotify The reference to the timeout notifier.
00054         */
00055         CSIPExTimeOutTimer( MSIPExTimeOutNotify& aTimeOutNotify );
00056 
00057         /**
00058         * Symbian 2nd phase constructor that might leave.
00059         */
00060         void ConstructL( );
00061 
00062     private: // From base classes
00063         /**
00064         * From CActive
00065         */
00066         virtual void RunL();
00067 
00068     private: // Member variables
00069 
00070         // The reference to the notifier
00071         MSIPExTimeOutNotify& iNotifier;
00072         };
00073 
00074 #endif // CSIPEXTIMEOUTIMER_H
00075 
00076 // End of file

© Nokia 2006

Back to top