graphicsapitest/screendriverhaitest/screendriver/inc/t_cfbsdrawdevicedata.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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 #ifndef T_CFBSDRAWDEVICE_DATA_H
       
    20 #define T_CFBSDRAWDEVICE_DATA_H
       
    21 
       
    22 
       
    23 //	User Includes
       
    24 #include "datawrapperbase.h"
       
    25 #include "displayconstants.h"
       
    26 //System includes
       
    27 #include <bitdraw.h>
       
    28 #include <gdi.h>
       
    29 
       
    30 //FORWARD DECLATATION
       
    31 class CParameterAgentPlugin;
       
    32 
       
    33 /**
       
    34  * Test Active Notification class
       
    35  *
       
    36  */
       
    37 
       
    38 class CT_CFbsDrawDeviceData : public CDataWrapperBase
       
    39 	{
       
    40 public:
       
    41 	
       
    42 	~CT_CFbsDrawDeviceData();
       
    43 
       
    44 	static	CT_CFbsDrawDeviceData*	NewL();
       
    45 
       
    46 	virtual TAny*	GetObject();
       
    47 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    48 protected:	
       
    49 	CT_CFbsDrawDeviceData();
       
    50 	void ConstructL();
       
    51 	
       
    52 	void DestroyData();
       
    53 	void DoCmdNewScreenDeviceL(const TTEFSectionName& aSection);
       
    54 	void DoCmdDestructor();
       
    55 	void DoCmdInitScreen();
       
    56 	void DoCmdSetDisplayMode();
       
    57 	void DoCmdSetAutoUpdate(const TTEFSectionName& aSection);
       
    58 	void DoCmdOrientationsAvailable();
       
    59 	void DoCmdSetOrientation(const TTEFSectionName& aSection);	
       
    60 	void DoCmdWriteLineL(const TTEFSectionName& aSection);
       
    61 	void DoCmdPreWriteLine(const TTEFSectionName& aSection);	
       
    62 	void DoCmdWriteRgb(const TTEFSectionName& aSection);	
       
    63 	void DoCmdWriteRgbMulti(const TTEFSectionName& aSection);
       
    64 	void DoCmdWriteBinaryLineL(const TTEFSectionName& aSection);
       
    65 	void DoCmdReadLineL(const TTEFSectionName& aSection);	
       
    66 	void DoCmdWriteRGBAlphaLineL(const TTEFSectionName& aSection);
       
    67 	void DoCmdShadowArea(const TTEFSectionName& aSection);
       
    68 	void DoCmdSetShadowMode(const TTEFSectionName& aSection);
       
    69 	void DoCmdWriteBinaryLineVerticalL(const TTEFSectionName& aSection);
       
    70 	void DoCmdWriteBinaryL(const TTEFSectionName& aSection);
       
    71 	void Clear(TRgb aColor);
       
    72 	TInt LongWidth(TInt aWidth,TDisplayMode aDispMode);	
       
    73 	void FillBuffer(TUint8* aBuffer,TInt aByteSize,TDisplayMode aDispMode);
       
    74 	TInt ByteSize();
       
    75 	void SetShadowAndFadingMode(TInt shadowMode,TInt blackPoint, TInt whitePoint);
       
    76 	TInt ReadRect(TRect& r, const TTEFSectionName& aSection);
       
    77 	TBool InitRectangles();
       
    78 	void ReadRectL(HBufC& string, RArray<TInt>& aResult);
       
    79 	
       
    80 private:
       
    81 	CFbsDrawDevice* iDrawDevice;
       
    82 	CGraphicsContext::TDrawMode iDMode;
       
    83 	TDisplayMode iDispMode;
       
    84 	TInt iOrientation;
       
    85 	TSize iSize;
       
    86 	TPostShadowMode iPostBlendShadow;
       
    87 	RArray<TRect> iTestRect;
       
    88 	TInt iNumTestRects;
       
    89 	
       
    90 	static const TEnumEntryTable iEnumShadowModes[];
       
    91 	static const TEnumEntryTable iEnumDisplayModes[];
       
    92 	static const TEnumEntryTable iEnumDrawModes[];
       
    93 	static const TEnumEntryTable iEnumOrientationModes[];
       
    94 	};
       
    95 
       
    96 
       
    97 #endif // T_CFBSDRAWDEVICE_DATA_H