graphicscomposition/surfaceupdate/tsrc/tredrawhandler.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 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 
       
    18 /**
       
    19  @file
       
    20  @test
       
    21  @internalComponent - Internal Symbian test code 
       
    22 */
       
    23 
       
    24 #ifndef __TREDRAWHANDLER_H__
       
    25 #define __TREDRAWHANDLER_H__
       
    26 
       
    27 #include <e32base.h>
       
    28 
       
    29 class RWsSession;
       
    30 
       
    31 /**
       
    32  * The class will listen all redraw commands associated with any of the test windows.
       
    33  * It will ask the windows to update themselves.
       
    34  */
       
    35 class CTRedrawHandler : public CActive
       
    36 	{
       
    37 public:
       
    38 	CTRedrawHandler(RWsSession& aWs);
       
    39 	virtual ~CTRedrawHandler();
       
    40 	void Start();
       
    41 private:
       
    42 	void RunL();
       
    43 	void DoCancel();
       
    44 	TInt RunError(TInt aError);
       
    45 private:
       
    46 	RWsSession& iWs;
       
    47 	};
       
    48 	
       
    49 #endif //__TREDRAWHANDLER_H__