messagingapp/msgutils/convergedmessageutils/tsrc/mmstestbed/inc/mmstestuitimer.h
changeset 52 12db4185673b
parent 44 36f374c67aa8
child 61 8ba0afbb4637
equal deleted inserted replaced
44:36f374c67aa8 52:12db4185673b
     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:
       
    15  */
       
    16 
       
    17 #ifndef C_TESTUITIMER_H
       
    18 #define C_TESTUITIMER_H
       
    19 
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 #define KPeriod 10000 // period of timer
       
    24 
       
    25 /**
       
    26  *  timer for test programs
       
    27  */
       
    28 NONSHARABLE_CLASS( CTestUiTimer ): public CTimer
       
    29     {
       
    30 public:
       
    31 
       
    32     static CTestUiTimer* NewL();
       
    33     virtual  ~CTestUiTimer();
       
    34 
       
    35     void RunL();
       
    36     void DoCancel();
       
    37     void ConstructL();
       
    38     void IssueRequest();
       
    39     void TimeoutOperation(CActive* aObject, TTimeIntervalSeconds aTimeoutInSeconds);
       
    40 
       
    41 private:
       
    42     CTestUiTimer();
       
    43 
       
    44 public:
       
    45     TTimeIntervalMicroSeconds32 period;
       
    46 
       
    47 private: // data
       
    48     CActive* iObject;
       
    49     };
       
    50 
       
    51 #endif // C_TESTUITIMER_H