First public contribution.
1 // Copyright (c) 2008-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.
19 @internalComponent - Internal Symbian test code
22 #ifndef __TDIRECTA2_H__
23 #define __TDIRECTA2_H__
26 #include "TGraphicsHarness.h"
28 // This DSA test code only works when run using a screen that supports transparency.
29 class CTDirect2 : public CTWsGraphicsBase, public MDirectScreenAccess
32 CTDirect2(CTestStep* aStep);
36 static TInt Timeout(TAny* aAbortTest);
38 // from MAbortDirectScreenAccess
39 void AbortNow(RDirectScreenAccess::TTerminationReasons aReason);
40 // from MDirectScreenAccess
41 void Restart(RDirectScreenAccess::TTerminationReasons aReason);
45 void RunTestCaseL(TInt aCurTestCase);
48 void StartTranslucentWindowOverDsaL();
52 CWsScreenDevice* iScreenDevice;
53 CTWindowGroup* iWindowGroup;
54 CTBlankWindow* iUnderWindow; // window to perform DSA on
55 CTTitledWindow* iOverWindow; // translucent window to overlap DSA window
56 CDirectScreenAccess* iDsa;
58 TBool iTestCaseComplete;
62 class CTDirect2Step : public CTGraphicsStep
68 virtual CTGraphicsBase* CreateTestL();
71 _LIT(KTDirect2Step,"TDirect2");