First public contribution.
1 // Copyright (c) 2006-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
21 This file specifies the interface to the test of having a full
22 screen of text within a CONE control.
26 #ifndef __TFULLSCREENTEXT_H__
27 #define __TFULLSCREENTEXT_H__
30 #include "te_conestepbase.h"
37 _LIT(KFullScreenText,"tfullscreentext");
40 class CGlobalTextControl : public CCoeControl
43 static CGlobalTextControl* NewL(const CCoeControl* aParent,
44 TBool aDrawVertically, TBool aRightToLeft);
45 static CGlobalTextControl* NewLC(const CCoeControl* aParent,
46 TBool aDrawVertically, TBool aRightToLeft);
47 ~CGlobalTextControl();
50 CGlobalTextControl(TBool aDrawVertically, TBool aRightToLeft);
51 void ConstructL(const CCoeControl* aParent);
54 void Draw(const TRect& aRect) const;
55 void HandlePointerEventL(const TPointerEvent& aPointerEvent);
59 CWsScreenDevice* iScreen;
60 RSemaphore iSemaphore;
63 TBool iDrawVertically;
66 RWsSession& iWsSession;
70 class CTFullScreenText : public CTe_ConeStepBase
77 virtual TVerdict doTestStepPreambleL();
78 virtual TVerdict doTestStepL();
79 virtual TVerdict doTestStepPostambleL();
80 virtual void InitUIL(CCoeEnv* aCoeEnv);
82 void FullScreenTextL();
83 void GenerateEventL(TRawEvent::TType aEventType);
86 RSemaphore iSemaphore;
87 TBool iDrawVertically;
92 class CFullScreenTextAppUi : public CEikAppUi
95 CFullScreenTextAppUi();
96 virtual ~CFullScreenTextAppUi();
97 void ConstructL(TBool aDrawVertically, TBool aRightToLeft);
100 CGlobalTextControl* iGlobalTextControl;