sl@0: /* sl@0: * Copyright (c) 2008-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: * @file sl@0: * sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: #ifndef __SCREEN_SELECT__ sl@0: #define __SCREEN_SELECT__ sl@0: sl@0: #include sl@0: sl@0: /** sl@0: Test step to set a static screen number selection, which can be used to run the sl@0: same test code on an alternate screen by simply adding this step and repeating sl@0: the test. sl@0: sl@0: Test steps which support this must use the static CSelectScreen::Number() sl@0: function to get the currently selected screen number, and pass this to the sl@0: Construct() call for a CWsScreenDevice. sl@0: */ sl@0: sl@0: class CScreenSelect : public CTestStep sl@0: { sl@0: public: sl@0: CScreenSelect(TInt aScreenNumber, const TDesC& aStepName); sl@0: ~CScreenSelect(); sl@0: sl@0: static TInt Number(); sl@0: sl@0: virtual TVerdict doTestStepL(); sl@0: sl@0: private: sl@0: TInt iScreenNumber; sl@0: }; sl@0: sl@0: #endif // __SCREEN_SELECT__ sl@0: