mmswadaptation/videorenderer/inc/renderertimer.h
changeset 0 40261b775718
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef RENDERERTIMER_H
       
    22 #define RENDERERTIMER_H
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 class CRendererRelay;
       
    27 
       
    28 /** Renderer timer for timed mode */
       
    29 NONSHARABLE_CLASS(CRendererTimer) : public CTimer
       
    30 	{
       
    31 public:
       
    32 	~CRendererTimer();
       
    33 	static CRendererTimer* NewL(CRendererRelay& aRenderer);
       
    34 	void Start(TTimeIntervalMicroSeconds32 aDelay);
       
    35 
       
    36 private:
       
    37 	CRendererTimer(CRendererRelay& aRenderer);
       
    38 	void RunL();
       
    39 
       
    40 private:
       
    41 	CRendererRelay& iRenderer;
       
    42 	};
       
    43 
       
    44 /** This class monitor the renderer sub thread for panics */
       
    45 NONSHARABLE_CLASS(CThreadUndertaker) : public CActive
       
    46 	{
       
    47 public:
       
    48 	static CThreadUndertaker* NewL(RThread& aSubThread);
       
    49 	~CThreadUndertaker();
       
    50 
       
    51 private:
       
    52 	CThreadUndertaker(RThread& aSubThread);
       
    53 	void RunL();
       
    54 	void DoCancel();
       
    55 
       
    56 private:
       
    57 	RThread& iSubThread;
       
    58 	};
       
    59 
       
    60 #endif // RENDERERTIMER_H