sl@0: // Copyright (c) 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: sl@0: /** sl@0: @file sl@0: @test sl@0: @internalComponent sl@0: */ sl@0: sl@0: #ifndef __T_PSEUDOAPPSHARED_H__ sl@0: #define __T_PSEUDOAPPSHARED_H__ sl@0: sl@0: #include "t_pseudoapptestresults.h" sl@0: #include sl@0: #include //TSurfaceId sl@0: #include //Display modes sl@0: sl@0: class CTestScreen; sl@0: class CTestSurfacedWindow; sl@0: sl@0: class CTPseudoAppShared : public CBase sl@0: { sl@0: private: sl@0: class TSurfaceCollection sl@0: { sl@0: public: sl@0: TSurfaceCollection(); sl@0: TSurfaceCollection(TInt aScreenNo, TInt aWindowNo, const TSurfaceId& aSurfaceId); sl@0: TSurfaceCollection(TInt aScreenNo, TInt aWindowNo); sl@0: sl@0: // TIdentityRelation comparison functions sl@0: static TBool IndicesEqual(const TSurfaceCollection& aFirst, const TSurfaceCollection& aSecond); sl@0: static TBool AnotherWindowWithSameSurfaceId(const TSurfaceCollection& aFirst, const TSurfaceCollection& aSecond); sl@0: sl@0: public: sl@0: TInt iScreenNo; sl@0: TInt iWindowNo; sl@0: TSurfaceId iSurfaceId; sl@0: }; sl@0: sl@0: public: sl@0: IMPORT_C CTPseudoAppShared(); sl@0: IMPORT_C void AddTestScreenL(TInt aScreenNo, TDisplayMode aMode, TInt aFrameDuration, const TSize& aScreenSize, sl@0: TGceTestResults* aGceTestResults, const TDesC& aConfigFileName); sl@0: sl@0: ~CTPseudoAppShared(); sl@0: TSurfaceId GetSurfaceId(TInt aScreenNo, TInt aWindowNo); sl@0: void SetSurfaceIdL(TInt aScreenNo, TInt aWindowNo, const TSurfaceId& aSurfaceId); sl@0: void RemoveSurfaceIdEntry(TInt aScreenNo, TInt aWindowNo); sl@0: TBool RotationSupported(TInt aScreenNo, TInt aWindowNo, const TSurfaceId& aSurfaceId) const; sl@0: sl@0: public: sl@0: RPointerArray iTestScreens; sl@0: sl@0: private: sl@0: RArray iSurfaceCollection; sl@0: }; sl@0: sl@0: #endif //__T_PSEUDOAPPSHARED_H__