realtimenetprots/sipfw/ProfileAgent/Server/Inc/SipProfileCSServerCloseTimer.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Name        : sipprofilecsserverclosetimer.h
       
    16 * Part of     : SIP Profile Server
       
    17 * Interface   : private
       
    18 * The class for stopping server in startup
       
    19 * if server not needed
       
    20 * Version     : 1.0
       
    21 *
       
    22 */
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 /**
       
    28  @internalComponent
       
    29 */
       
    30 
       
    31 #ifndef CSIPPROFILECSSERVERCLOSETIMER_H
       
    32 #define CSIPPROFILECSSERVERCLOSETIMER_H
       
    33 
       
    34 //  INCLUDES
       
    35 
       
    36 #include <e32base.h>
       
    37 
       
    38 // FORWARD DECLARATIONS
       
    39 
       
    40 // CLASS DECLARATION
       
    41 
       
    42 /**
       
    43  * Class for stopping server in startup if server not needed.
       
    44  */
       
    45 class CSipProfileCSServerCloseTimer : public CActive
       
    46     {
       
    47 	public:
       
    48 
       
    49 	    /**
       
    50         * Two-phased constructor.
       
    51 		* @return new instance
       
    52         */
       
    53 		static CSipProfileCSServerCloseTimer* NewL();
       
    54 
       
    55 	    /**
       
    56         * Two-phased constructor.
       
    57 		* @return new instance
       
    58         */
       
    59 		static CSipProfileCSServerCloseTimer* NewLC();
       
    60 
       
    61 		/**
       
    62 		* Destructor
       
    63 		*/
       
    64 		~CSipProfileCSServerCloseTimer();
       
    65 
       
    66 	    /**
       
    67         * Start shutdown timer
       
    68 		* @param aSeconds time in seconds
       
    69         */
       
    70 		void StopActiveSchedulerAfter(TUint aSeconds);
       
    71 
       
    72 	    /**
       
    73         * Stop shutdown timer
       
    74         */
       
    75 		void DoCancel();
       
    76 
       
    77 	private:
       
    78 
       
    79 	    /**
       
    80         * Default constructor
       
    81         */
       
    82 		CSipProfileCSServerCloseTimer();
       
    83 
       
    84 	    /**
       
    85         * Symbian 2nd phase constructor
       
    86         */
       
    87 		void ConstructL ();
       
    88 
       
    89 	    /**
       
    90         * Method executed when timeout occurs
       
    91         */
       
    92 		void RunL();
       
    93 
       
    94 	private:
       
    95 
       
    96 		RTimer iTimer;
       
    97     };
       
    98 
       
    99 #endif