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: // sl@0: sl@0: /** sl@0: @file sl@0: */ sl@0: sl@0: #include sl@0: #include sl@0: #include "teflogextensions.h" sl@0: #include "screenselect.h" sl@0: #include "globalsettings.h" sl@0: sl@0: //Note that this class now just acts as a stub to the CGlobalSettings::SetScreenNoL() method and data, so both are equivalent. sl@0: sl@0: CScreenSelect::CScreenSelect(TInt aScreenNumber, const TDesC& aStepName) sl@0: { sl@0: SetTestStepName(aStepName); sl@0: iScreenNumber = aScreenNumber; sl@0: } sl@0: sl@0: CScreenSelect::~CScreenSelect() sl@0: { sl@0: } sl@0: sl@0: sl@0: TInt CScreenSelect::Number() sl@0: { sl@0: return TGlobalSettings::Instance().iScreen; sl@0: } sl@0: sl@0: sl@0: TVerdict CScreenSelect::doTestStepL() sl@0: { sl@0: SetTestStepError(EFail); sl@0: sl@0: CGlobalSettings* globalSettings=new (ELeave) CGlobalSettings; sl@0: sl@0: globalSettings->SetLoggerL(Logger()); sl@0: TRAPD(err,globalSettings->SetScreenNoL( iScreenNumber)); sl@0: sl@0: if (err==KErrNone) sl@0: { sl@0: SetTestStepError(EPass); sl@0: return EPass; sl@0: } sl@0: else sl@0: { sl@0: return EFail; sl@0: } sl@0: } sl@0: