webservices/wscore/inc/sencoreshutdowntimer.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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: Header declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef SEN_CORESHUTDOWNTIMER
       
    26 #define SEN_CORESHUTDOWNTIMER
       
    27 
       
    28 // INCLUDES
       
    29 #include <e32base.h>
       
    30 #include <flogger.h>
       
    31 
       
    32 // CONSTANTS
       
    33 const TInt KSenDefaultShutdownTime = 30;
       
    34 
       
    35 // CLASS DECLARATION
       
    36 class CSenCoreShutdownTimer : public CTimer
       
    37     {
       
    38     public:
       
    39         static CSenCoreShutdownTimer* NewL( TInt aShutdownTimeInSecs = KSenDefaultShutdownTime );
       
    40         static CSenCoreShutdownTimer* NewLC( TInt aShutdownTimeInSecs = KSenDefaultShutdownTime );
       
    41             
       
    42         ~CSenCoreShutdownTimer();
       
    43 
       
    44         /**
       
    45         * Calling this method will issue CActiveScheduler::Stop() [closing Ws-stack Core server thread],
       
    46         * unless a call to Cancel() was performed (by new CSenClientSession == SC, SM or HC type client)
       
    47         * Shuttime time is as defined in constuction of the timer
       
    48         */
       
    49         void ActivateShutdown();
       
    50 
       
    51         virtual void RunL();
       
    52         //virtual TInt RunError(TInt aError);
       
    53 //        virtual void DoCancel();
       
    54     
       
    55     private:
       
    56         CSenCoreShutdownTimer( TInt aShutdownTimeInSecs );
       
    57 //        void ConstructL();
       
    58         TInt iShutdownTimeInSecs;
       
    59 //        TBool iCancelled;
       
    60     };
       
    61 
       
    62 #endif // SEN_CORESHUTDOWNTIMER
       
    63 
       
    64 // End of File