diff -r 000000000000 -r bde4ae8d615e os/graphics/windowing/windowserver/test/t_integ/inc/t_pseudoappshared.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/graphics/windowing/windowserver/test/t_integ/inc/t_pseudoappshared.h Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,73 @@ +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + + + +/** + @file + @test + @internalComponent +*/ + +#ifndef __T_PSEUDOAPPSHARED_H__ +#define __T_PSEUDOAPPSHARED_H__ + +#include "t_pseudoapptestresults.h" +#include +#include //TSurfaceId +#include //Display modes + +class CTestScreen; +class CTestSurfacedWindow; + +class CTPseudoAppShared : public CBase + { +private: + class TSurfaceCollection + { + public: + TSurfaceCollection(); + TSurfaceCollection(TInt aScreenNo, TInt aWindowNo, const TSurfaceId& aSurfaceId); + TSurfaceCollection(TInt aScreenNo, TInt aWindowNo); + + // TIdentityRelation comparison functions + static TBool IndicesEqual(const TSurfaceCollection& aFirst, const TSurfaceCollection& aSecond); + static TBool AnotherWindowWithSameSurfaceId(const TSurfaceCollection& aFirst, const TSurfaceCollection& aSecond); + + public: + TInt iScreenNo; + TInt iWindowNo; + TSurfaceId iSurfaceId; + }; + +public: + IMPORT_C CTPseudoAppShared(); + IMPORT_C void AddTestScreenL(TInt aScreenNo, TDisplayMode aMode, TInt aFrameDuration, const TSize& aScreenSize, + TGceTestResults* aGceTestResults, const TDesC& aConfigFileName); + + ~CTPseudoAppShared(); + TSurfaceId GetSurfaceId(TInt aScreenNo, TInt aWindowNo); + void SetSurfaceIdL(TInt aScreenNo, TInt aWindowNo, const TSurfaceId& aSurfaceId); + void RemoveSurfaceIdEntry(TInt aScreenNo, TInt aWindowNo); + TBool RotationSupported(TInt aScreenNo, TInt aWindowNo, const TSurfaceId& aSurfaceId) const; + +public: + RPointerArray iTestScreens; + +private: + RArray iSurfaceCollection; + }; + +#endif //__T_PSEUDOAPPSHARED_H__