multimediacommsengine/tsrc/MMCTestDriver/MCETester/inc/CDelayedProcess.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2008 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:    See class definition below.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CDELAYEDPROCESS_H_
       
    22 #define CDELAYEDPROCESS_H_
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <e32std.h>
       
    27 
       
    28 class CMceMediaSource;
       
    29 
       
    30 class CDelayedProcess : public CActive
       
    31 {
       
    32 public:
       
    33 	// Construct / destruct
       
    34 	static CDelayedProcess* NewL(CMceMediaSource* aDtmfSource);
       
    35 	~CDelayedProcess();
       
    36 
       
    37 	// Request
       
    38 	void StartProcess(TTimeIntervalMicroSeconds32 aDelay);
       
    39 	
       
    40 private:
       
    41 	// Construct / destruct
       
    42 	CDelayedProcess(CMceMediaSource* aDtmfSource);
       
    43 	void ConstructL();
       
    44 
       
    45 	// From CActive
       
    46 	void RunL();
       
    47 	void DoCancel();
       
    48 
       
    49 private:
       
    50 	RTimer iTimer;
       
    51 	CMceMediaSource* iDtmfSrc;
       
    52 };
       
    53 
       
    54 #endif // CDELAYEDPROCESS_H_
       
    55