Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
22 #ifndef __T_WSERVINTEGSTEPBASIC_H__
23 #define __T_WSERVINTEGSTEPBASIC_H__
26 #include <graphics/surfacemanager.h>
27 #include <graphics/surfaceupdateclient.h>
28 #include <test/testexecutestepbase.h>
30 const TInt KTempWindowHeight = 200;
31 const TInt KTempWindowWidth = 200;
32 _LIT(KT_WServIntegStepBasic,"T_WServIntegStepBasic");
35 class CT_WServIntegStepBasic : public CTestStep
38 CT_WServIntegStepBasic();
39 ~CT_WServIntegStepBasic();
41 virtual enum TVerdict doTestStepPreambleL();
42 virtual enum TVerdict doTestStepL();
43 virtual enum TVerdict doTestStepPostambleL();
46 void CreateSurfaceManager();
47 void CreateSurfaceL(TSurfaceId& aSurfaceId, TUint aColorPattern=0xFF0000FF);
48 void CreateSurfaceUpdateSessionL();
49 void DestroySurface();
50 void CreateRWindowL(RWindow& aWin, const TPoint& aPos=TPoint(0,0), const TRgb& aBkgdColor=TRgb(0x800000FF), const TSize& aWinSize=TSize(KTempWindowWidth,KTempWindowHeight) );
51 void CreateRBlankWindowL(RBlankWindow& aBlankWin);
52 void ForceWindowToRedraw(RWindowBase& aWin);
53 TVerdict SetSurfaceL(RWindow& aWin, TSurfaceId& aSurfaceId);
54 void DrawShape(RWindow& aWin, const TRgb& aColor);
57 void Graphics_Wserv_Gce_1L(RWindow& aWin);
58 void Graphics_Wserv_Gce_2L(RBlankWindow& aBlankWin);
59 void Graphics_Wserv_Gce_3L();
60 void Graphics_Wserv_Gce_4L(RWindow& aWin);
61 void Graphics_Wserv_Gce_5L(RWindow& aWin);
62 void Graphics_Wserv_Gce_6L(RWindow& aWin);
63 void Graphics_Wserv_Gce_11L(RWindow& aWin);
64 void Graphics_Wserv_Gce_13L(RWindow& aWin);
65 void Graphics_Wserv_Gce_15L(RWindow& aWin);
66 void Graphics_Wserv_Gce_17L(RWindow& aWin);
67 void Graphics_Wserv_Gce_19L(RWindow& aWin);
68 void Graphics_Wserv_Gce_21L(RWindow& aWin);
69 void Graphics_Wserv_Gce_22L(RWindow& aWin);
70 void Graphics_Wserv_Gce_31L(RBlankWindow& aBlankWin);
71 void Graphics_Wserv_Gce_32L(RWindow& aWin);
72 void Graphics_Wserv_Gce_33L(RWindow& aWin);
73 void Graphics_Wserv_Gce_34L(RWindow& aWin);
74 void Graphics_Wserv_Gce_35L(RWindow& aWin);
75 void Graphics_Wserv_Gce_36L(RWindow& aWin);
77 private: // Data members
79 // TDisplayMode iDisplayMode;
81 CWsScreenDevice* iScreen;
82 RWsSession iWsSession;
83 RSurfaceManager iSurfaceManager;
84 TSurfaceId iSurfaceId;
86 RSurfaceUpdateSession iSurfaceUpdateSession;
87 RWindowGroup iWinGroup;
90 #endif // __T_WSERVINTEGSTEPBASIC_H__