multimediacommscontroller/mmccMsrppayloadformat/inc/buffertimer.h
branchrcs
changeset 49 64c62431ac08
child 50 1d8943dd8be6
equal deleted inserted replaced
44:fb024d5e35fa 49:64c62431ac08
       
     1 /*
       
     2 * Copyright (c) 2004-2006 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:    Provides a comfort noise generator class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include <e32base.h>
       
    21 
       
    22 class MBufferTimerNotify
       
    23 	{
       
    24 	public:
       
    25 		virtual TInt TimerExpired() = 0;
       
    26 		
       
    27 };
       
    28  
       
    29  
       
    30 	class CBufferTimer: public CActive
       
    31 		{
       
    32 	public:
       
    33 		
       
    34 		static CBufferTimer* NewL(MBufferTimerNotify& aNotify);
       
    35 		~CBufferTimer();
       
    36 		
       
    37 	public:
       
    38 		
       
    39 		void After(TTimeIntervalMicroSeconds32 aInterval);
       
    40 
       
    41 	protected:
       
    42 		
       
    43 		void RunL();
       
    44 		void DoCancel();
       
    45 		
       
    46 	private:
       
    47 		
       
    48 		CBufferTimer(MBufferTimerNotify& aNotify);
       
    49 		void ConstructL(void);
       
    50 		void Call(void);
       
    51 		
       
    52 	private:
       
    53 		RTimer					iTimer;
       
    54 		MBufferTimerNotify&	iNotify;
       
    55 		TTimeIntervalMicroSeconds32 iInterval;
       
    56 		
       
    57 		};