sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @test sl@0: @internalComponent sl@0: */ sl@0: sl@0: #ifndef __T_PSEUDOAPPSCREEN_H__ sl@0: #define __T_PSEUDOAPPSCREEN_H__ sl@0: sl@0: #include sl@0: #include //Display modes sl@0: #include sl@0: sl@0: #include "t_pseudoappsurfacedwindow.h" sl@0: #include "t_pseudoapptestresults.h" sl@0: #include "t_pseudoappshared.h" sl@0: sl@0: _LIT(KScreenWindowPopupApp, "z:\\sys\\bin\\t_pseudoapppopupwindow.exe"); sl@0: _LIT(KScreenRotationApp, "z:\\sys\\bin\\t_screenrotationpapp.exe"); sl@0: sl@0: _LIT(KScreenWindow, "screen%d_window_"); sl@0: _LIT(KScreenWindowNumber, "screen%d_window%d_"); sl@0: _LIT(KScreen, "screen%d_"); sl@0: sl@0: class CTestScreen : public CBase sl@0: { sl@0: public: sl@0: static CTestScreen* NewL(TInt aScreenNo, TDisplayMode aMode, TInt aFrameDuration, const TSize& aScreenSize, TGceTestResults* aGceTestResults, sl@0: const TDesC& aConfigFileName, CTPseudoAppShared& aPseudoAppShared); sl@0: IMPORT_C void UpdateL(SurfaceDetails& aSurfDetails); sl@0: IMPORT_C TBool Rotation(); sl@0: IMPORT_C void RotateL(TInt aScreenNo, TInt aFrameNumber); sl@0: ~CTestScreen(); sl@0: sl@0: private: sl@0: CTestScreen(CTPseudoAppShared& aPseudoAppShared); sl@0: void ConstructL(TInt aScreenNo, TDisplayMode aMode, TInt aFrameDuration, const TSize& aScreenSize, TGceTestResults* aGceTestResults,const TDesC& aConfigFileName); sl@0: void ImportScreenConfigL(TInt aScreenNo, TDisplayMode aMode, TInt aFrameDuration, const TSize& aScreenSize, TGceTestResults* aGceTestResults, const TDesC& aConfigFileName); sl@0: void CreatePopupWindow(); sl@0: void DestroyPopupWindow(); sl@0: void LaunchRotationApp(); sl@0: void DestroyRotationApp(); sl@0: sl@0: private: sl@0: CArrayPtrFlat* iWindAndSurf; sl@0: sl@0: TInt iPopupOccurances; sl@0: TInt iFrameDuration; sl@0: TInt iFrameCounter; sl@0: TInt iRotation; sl@0: TSize iScreenSize; sl@0: sl@0: RProcess iPopupProcess; sl@0: RProcess iRotationProcess; sl@0: CIniData* iUtils; sl@0: CTPseudoAppShared& iPseudoAppShared; sl@0: }; sl@0: sl@0: #endif //__T_PSEUDOAPPSCREEN_H__