services/terminalmodeservice/tsrc/upnptmservertest/inc/testtimer.h
branchRCL_3
changeset 30 594d15129e2c
parent 29 5c72fd91570d
equal deleted inserted replaced
29:5c72fd91570d 30:594d15129e2c
     1 /**
       
     2 * Copyright (c) 2010 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: CTestTimer class declaration
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TESTTIMER_H_
       
    19 #define TESTTIMER_H_
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <e32std.h>
       
    23 
       
    24 class CTmServerTest;
       
    25 
       
    26 class CTestTimer:public CActive
       
    27     {
       
    28 public:
       
    29     static CTestTimer* NewL(CTmServerTest& aTmServerTest);
       
    30     ~CTestTimer();
       
    31     void After(const TInt aDuration);
       
    32     
       
    33 private:
       
    34     CTestTimer(CTmServerTest& aTmServerTest);
       
    35     
       
    36 private: // From CActive
       
    37     void RunL();
       
    38     void DoCancel();
       
    39 
       
    40 private:
       
    41     RTimer iTimer;
       
    42     CTmServerTest& iTmServerTest;
       
    43     };
       
    44 
       
    45 #endif //TESTTIMER_H_