equal
deleted
inserted
replaced
289 { |
289 { |
290 SCRLOGGER_WRITEF( _L("SCR: Host: Suspend(%d)"), aTime ); |
290 SCRLOGGER_WRITEF( _L("SCR: Host: Suspend(%d)"), aTime ); |
291 |
291 |
292 View()->SetDisplayObject( Model().SharedDataInterface()->DefaultScreensaverType() ); |
292 View()->SetDisplayObject( Model().SharedDataInterface()->DefaultScreensaverType() ); |
293 |
293 |
|
294 CScreensaverEngine& model = MUTABLE_CAST( CScreensaverEngine&, Model() ); |
|
295 model.SetExpiryTimerTimeout( KDefaultScreenSaverTimeout ); |
|
296 |
294 View()->ShowDisplayObject(); |
297 View()->ShowDisplayObject(); |
295 |
298 |
296 if ( aTime >= 0 ) |
299 if ( aTime >= 0 ) |
297 { |
300 { |
298 CScreensaverEngine& model = MUTABLE_CAST( CScreensaverEngine&, Model() ); |
|
299 |
|
300 model.StartSuspendTimer( aTime ); |
301 model.StartSuspendTimer( aTime ); |
301 } |
302 } |
302 } |
303 } |
303 |
304 |
304 // ----------------------------------------------------------------------------- |
305 // ----------------------------------------------------------------------------- |
383 // CScreensaverCtrlPlugin::RequestTimeout |
384 // CScreensaverCtrlPlugin::RequestTimeout |
384 // ----------------------------------------------------------------------------- |
385 // ----------------------------------------------------------------------------- |
385 // |
386 // |
386 void CScreensaverCtrlPlugin::RequestTimeout( TInt aSecs ) |
387 void CScreensaverCtrlPlugin::RequestTimeout( TInt aSecs ) |
387 { |
388 { |
|
389 CScreensaverEngine& model = MUTABLE_CAST( CScreensaverEngine&, Model() ); |
|
390 model.SetExpiryTimerTimeout( 0 ); |
388 StartPluginTimeoutTimer( aSecs ); |
391 StartPluginTimeoutTimer( aSecs ); |
389 } |
392 } |
390 |
393 |
391 // ----------------------------------------------------------------------------- |
394 // ----------------------------------------------------------------------------- |
392 // CScreensaverCtrlPlugin::RevertToDefaultSaver |
395 // CScreensaverCtrlPlugin::RevertToDefaultSaver |