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: // Test class that allows a script to set global values sl@0: // sl@0: // sl@0: sl@0: #ifndef __GLOBALSETTINGS_H__ sl@0: #define __GLOBALSETTINGS_H__ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: class CTestExecuteLogger; sl@0: sl@0: class TGlobalSettings sl@0: { sl@0: public: sl@0: static const TGlobalSettings& Instance(); sl@0: sl@0: public: sl@0: TInt iScreen; sl@0: TBool iDisconnected; //This value might be changed from CWsDynamicResWinBase::SetupL sl@0: }; //once the screen has been connected. sl@0: sl@0: class CGlobalSettings : public CTestFixture sl@0: { sl@0: public: sl@0: static const TGlobalSettings& Instance(); sl@0: sl@0: // SetUp and TearDown code sl@0: sl@0: // Create a suite of all the tests sl@0: static CTestSuite* CreateSuiteL(const TDesC& aName); sl@0: sl@0: //these tests are public to allow the old CScreenSelect to get to them! sl@0: void SetScreenNoL(TInt aScreenNo); sl@0: void ExpectDisconnectedScreenL(TBool aValue); sl@0: }; sl@0: sl@0: sl@0: #endif //__GLOBALSETTINGS_H__