windowing/windowserver/tdynamicres/inc/globalsettings.h
changeset 110 7f25ef56562d
parent 98 bf7481649c98
child 111 29ddb8a72f0e
equal deleted inserted replaced
98:bf7481649c98 110:7f25ef56562d
     1 // Copyright (c) 2007-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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Test class that allows a script to set global values 
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __GLOBALSETTINGS_H__
       
    19 #define __GLOBALSETTINGS_H__
       
    20 
       
    21 #include <test/tefunit.h>
       
    22 #include <w32std.h>
       
    23 #include <pixelformats.h>
       
    24 class CTestExecuteLogger;
       
    25 
       
    26 class TGlobalSettings
       
    27 	{
       
    28 public:
       
    29 	static const TGlobalSettings& Instance();
       
    30 	
       
    31 public:
       
    32 	TInt			iScreen;
       
    33 	TBool			iDisconnected;  //This value might be changed from CWsDynamicResWinBase::SetupL
       
    34 	};								//once the screen has been connected.
       
    35 
       
    36 class CGlobalSettings : public CTestFixture 
       
    37 	{
       
    38 public:
       
    39 	static const TGlobalSettings& Instance();
       
    40 
       
    41 	// SetUp and TearDown code 
       
    42 
       
    43 	// Create a suite of all the tests
       
    44 	static CTestSuite* CreateSuiteL(const TDesC& aName);
       
    45 	
       
    46 	//these tests are public to allow the old CScreenSelect to get to them!
       
    47 	void SetScreenNoL(TInt aScreenNo);
       
    48 	void ExpectDisconnectedScreenL(TBool aValue);
       
    49 	};
       
    50 
       
    51 
       
    52 #endif	//__GLOBALSETTINGS_H__