multimediacommscontroller/mmccvideosourcesink/inc/mccredrawhandler.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 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:    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 //  INCLUDES
       
    21 #ifndef MCCREDRAWHANDLER_H
       
    22 #define MCCREDRAWHANDLER_H
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class RWsSession;
       
    28 class RWindow;
       
    29 class CWindowGc;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  
       
    35 */
       
    36 class CMccRedrawHandler : public CActive
       
    37     {
       
    38 
       
    39     public: // Methods called internally or by the controller
       
    40 
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44         static CMccRedrawHandler* NewL( RWsSession& aWsSession, 
       
    45                                         RWindow& aWindow, 
       
    46                                         CWindowGc& aGc );
       
    47 
       
    48 		~CMccRedrawHandler();
       
    49 		
       
    50 		void BlackDrawingL( TBool aIsEnabled );
       
    51     
       
    52     protected: // From CActive
       
    53     
       
    54         void RunL();
       
    55         
       
    56         void DoCancel();
       
    57           
       
    58     private:
       
    59 
       
    60         void ConstructL();
       
    61         
       
    62         CMccRedrawHandler( RWsSession& aWsSession, 
       
    63                            RWindow& aWindow, 
       
    64                            CWindowGc& aGc );
       
    65     
       
    66         void Draw( const TRect& aRect );
       
    67         
       
    68         TBool DoRedrawing() const;
       
    69         
       
    70         void StartRedrawing();
       
    71         
       
    72     private:
       
    73     
       
    74         RWsSession& iWsSession;
       
    75 		RWindow& iWindow;
       
    76 		CWindowGc& iGc;
       
    77     
       
    78         TBool iDrawBlack;
       
    79         
       
    80    	#ifdef TEST_EUNIT
       
    81 		friend class UT_CMccRedrawHandler;	
       
    82    	#endif
       
    83          
       
    84 
       
    85 	};
       
    86 
       
    87 
       
    88 #endif 
       
    89 
       
    90 
       
    91 // End of file