|
1 /* |
|
2 * Copyright (c) 2002 - 2007 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: Test EIKBTGRP.H |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_TESTSDKUIKONCC_H |
|
21 #define C_TESTSDKUIKONCC_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <stiflogger.h> |
|
25 #include <testscripterinternal.h> |
|
26 #include <stiftestmodule.h> |
|
27 #include <testclassassert.h> |
|
28 #include <eikbtgrp.h> |
|
29 #include <eikcba.h> |
|
30 #include <eikenv.h> |
|
31 #include <eikcmbut.h> |
|
32 #include <eiklbbut.h> |
|
33 #include <eikmnbut.h> |
|
34 |
|
35 #include "testsdkuikonccobserver.h" |
|
36 |
|
37 // MACROS |
|
38 #define TEST_CLASS_VERSION_MAJOR 0 |
|
39 #define TEST_CLASS_VERSION_MINOR 0 |
|
40 #define TEST_CLASS_VERSION_BUILD 0 |
|
41 |
|
42 // Logging path |
|
43 _LIT( KtestsdkuikonccLogPath, "\\logs\\testframework\\testsdkuikoncc\\" ); |
|
44 // Log file |
|
45 _LIT( KtestsdkuikonccLogFile, "testsdkuikoncc.txt" ); |
|
46 _LIT( KtestsdkuikonccLogFileWithTitle, "testsdkuikoncc_[%S].txt" ); |
|
47 |
|
48 /** |
|
49 * CTestSdkUikoncc test class for STIF Test Framework TestScripter. |
|
50 * @since S60 5.0 |
|
51 */ |
|
52 // |
|
53 NONSHARABLE_CLASS(CTestSdkUikoncc) : public CScriptBase |
|
54 { |
|
55 public: // Constructors and destructor |
|
56 |
|
57 /** |
|
58 * Two-phased constructor. |
|
59 */ |
|
60 static CTestSdkUikoncc* NewL( CTestModuleIf& aTestModuleIf ); |
|
61 |
|
62 /** |
|
63 * Destructor. |
|
64 */ |
|
65 virtual ~CTestSdkUikoncc(); |
|
66 |
|
67 public: // Functions from base classes |
|
68 |
|
69 /** |
|
70 * From CScriptBase Runs a script line. |
|
71 * @since S60 5.0 |
|
72 * @param aItem Script line containing method name and parameters |
|
73 * @return Symbian OS error code |
|
74 */ |
|
75 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
76 |
|
77 private: |
|
78 |
|
79 /** |
|
80 * C++ default constructor. |
|
81 */ |
|
82 CTestSdkUikoncc( CTestModuleIf& aTestModuleIf ); |
|
83 |
|
84 /** |
|
85 * By default Symbian 2nd phase constructor is private. |
|
86 */ |
|
87 void ConstructL(); |
|
88 |
|
89 /** |
|
90 * Frees all resources allocated from test methods. |
|
91 * @since S60 5.0 |
|
92 */ |
|
93 void Delete(); |
|
94 |
|
95 /** |
|
96 * Method used to log version of test class |
|
97 */ |
|
98 void SendTestClassVersion(); |
|
99 |
|
100 /** |
|
101 * Turn off ScreenSaver |
|
102 * @since S60 5.0 |
|
103 * @return Symbian OS error code. |
|
104 */ |
|
105 void TurnOffScreenSaver(); |
|
106 |
|
107 /** |
|
108 * Restore ScreenSaver |
|
109 * @since S60 5.0 |
|
110 * @return Symbian OS error code. |
|
111 */ |
|
112 void RestoreScreenSaver(); |
|
113 |
|
114 |
|
115 //[TestMethods] |
|
116 |
|
117 private: // EIKBTGRP.H |
|
118 /** |
|
119 * Test AnimateCommandL of MEikButtonGroup in |
|
120 * eikbtgrp.h |
|
121 * @since S60 5.0 |
|
122 * Parameter aItem is not used |
|
123 * @return Symbian OS error code. |
|
124 */ |
|
125 virtual TInt TestBGAnimateCommandL(CStifItemParser& aItem); |
|
126 |
|
127 private: // Data |
|
128 /** |
|
129 * ScreenSaver Property |
|
130 */ |
|
131 TInt iOldScreenSaverProperty; |
|
132 |
|
133 /** |
|
134 * CEikonEnv pointer |
|
135 * Not own. |
|
136 */ |
|
137 CEikonEnv* iEnv; |
|
138 |
|
139 // Resource file offset |
|
140 TInt iOffset; |
|
141 }; |
|
142 |
|
143 |
|
144 #endif // C_TESTSDKUIKONCC_H |
|
145 |
|
146 // End of File |