156 EXPORT_C CScriptBase* LibEntryL( |
153 EXPORT_C CScriptBase* LibEntryL( |
157 CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework |
154 CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework |
158 { |
155 { |
159 return ( CScriptBase* ) CTestDomCdl::NewL( aTestModuleIf ); |
156 return ( CScriptBase* ) CTestDomCdl::NewL( aTestModuleIf ); |
160 } |
157 } |
161 |
|
162 // ----------------------------------------------------------------------------- |
|
163 // Turn off ScreenSaver |
|
164 // ----------------------------------------------------------------------------- |
|
165 // |
|
166 void CTestDomCdl::TurnOffScreenSaver() |
|
167 { |
|
168 TInt err1 = RProperty::Get( KPSUidScreenSaver, KScreenSaverAllowScreenSaver, |
|
169 iOldScreenSaverProperty ); |
|
170 TInt err2 = RProperty::Set( KPSUidScreenSaver, KScreenSaverAllowScreenSaver, |
|
171 KScreenSaverAllowScreenSaver ); |
|
172 RDebug::Printf( "screensaver property=%d err1=%d err2=%d\n", |
|
173 iOldScreenSaverProperty, err1, err2 ); |
|
174 } |
|
175 |
|
176 // ----------------------------------------------------------------------------- |
|
177 // Restore ScreenSaver |
|
178 // ----------------------------------------------------------------------------- |
|
179 // |
|
180 void CTestDomCdl::RestoreScreenSaver() |
|
181 { |
|
182 RProperty::Set( KPSUidScreenSaver, KScreenSaverAllowScreenSaver, |
|
183 iOldScreenSaverProperty ); |
|
184 User::ResetInactivityTime(); |
|
185 } |
|
186 |
|
187 |
|
188 // End of File |
158 // End of File |
189 |
159 |
190 |
160 |