equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * @file |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 #ifndef __SCREEN_SELECT__ |
|
23 #define __SCREEN_SELECT__ |
|
24 |
|
25 #include <test/tefunit.h> |
|
26 |
|
27 /** |
|
28 Test step to set a static screen number selection, which can be used to run the |
|
29 same test code on an alternate screen by simply adding this step and repeating |
|
30 the test. |
|
31 |
|
32 Test steps which support this must use the static CSelectScreen::Number() |
|
33 function to get the currently selected screen number, and pass this to the |
|
34 Construct() call for a CWsScreenDevice. |
|
35 */ |
|
36 |
|
37 class CScreenSelect : public CTestStep |
|
38 { |
|
39 public: |
|
40 CScreenSelect(TInt aScreenNumber, const TDesC& aStepName); |
|
41 ~CScreenSelect(); |
|
42 |
|
43 static TInt Number(); |
|
44 |
|
45 virtual TVerdict doTestStepL(); |
|
46 |
|
47 private: |
|
48 TInt iScreenNumber; |
|
49 }; |
|
50 |
|
51 #endif // __SCREEN_SELECT__ |
|
52 |