mmserv/tms/tmscallserver/inc/delaytimer.h
changeset 14 80975da52420
parent 12 5a06f39ad45b
child 16 43d09473c595
child 19 4a629bc82c5e
equal deleted inserted replaced
12:5a06f39ad45b 14:80975da52420
     1 /*
       
     2  * Copyright (c) 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: Telephony Multimedia Service
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef DELAYTIMER_H
       
    19 #define DELAYTIMER_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 namespace TMS {
       
    24 
       
    25 /**
       
    26  * A Timer utility class used by the Server for shutdown purpose.
       
    27  */
       
    28 class TMSCallDelayTimer : public CActive
       
    29     {
       
    30 public:
       
    31     // Construct/destruct
       
    32     static TMSCallDelayTimer* NewL();
       
    33     ~TMSCallDelayTimer();
       
    34 
       
    35 public:
       
    36     // Request a timeout after aDelay
       
    37     void SetDelay(TTimeIntervalMicroSeconds32 aDelay);
       
    38 
       
    39 protected:
       
    40     // From CActive
       
    41     void RunL();
       
    42     void DoCancel();
       
    43 
       
    44 private:
       
    45     // Construct/destruct
       
    46     TMSCallDelayTimer();
       
    47     void ConstructL();
       
    48 
       
    49 private:
       
    50     RTimer iShutDownTimer; // Has
       
    51     };
       
    52 
       
    53 } //namespace TMS
       
    54 
       
    55 #endif //DELAYTIMER_H
       
    56 
       
    57 // End of File