diff -r 51a74ef9ed63 -r ae94777fff8f Symbian3/SDK/Source/GUID-868C1A38-3CD0-4082-8106-DC3EE1F815D8.dita --- a/Symbian3/SDK/Source/GUID-868C1A38-3CD0-4082-8106-DC3EE1F815D8.dita Wed Mar 31 11:11:55 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-868C1A38-3CD0-4082-8106-DC3EE1F815D8.dita Fri Jun 11 12:39:03 2010 +0100 @@ -1,54 +1,59 @@ - - - - - -System -events -

System events are enumerated in TApaSystemEvent, -which is defined in the apgtask.h. You must override CCoeAppUI::HandleSystemEventL() to -handle these events, which should be done in the UI controller. The default -implementation is empty. The possible events are as follows:

-enum TApaSystemEvent - { - EApaSystemEventShutdown = 1, - EApaSystemEventBackupStarting, - EApaSystemEventBackupComplete, - EApaSystemEventBroughtToForeground - }; - -

The following is a code example of system event handling:

-void CExampleAppUI::HandleSystemEvent( const TWsEvent& aEvent ) - { - switch( *( TApaSystemEvent* )( aEvent.EventData() ) ) - { - case EApaSystemEventBackupStarting: - { - // Handle backup starting - //... - break; - } - case EApaSystemEventBackupComplete: - { - // Handle backup complete - //... - break; - } - case EApaSystemEventShutdown: - { - // Handle shutdown - //... - break; - } - } - // Call the base class implementation - CAknAppUi::HandleSystemEvent( aEvent ); - } - + + + + + +System +events +

System events are enumerated in TApaSystemEvent, +which is defined in the apgtask.h. You must override CCoeAppUI::HandleSystemEventL() to +handle these events, which should be done in the UI controller. The default +implementation is empty. The possible events are as follows:

+enum TApaSystemEvent + { + EApaSystemEventShutdown = 1, + EApaSystemEventBackupStarting, + EApaSystemEventBackupComplete, + EApaSystemEventBroughtToForeground + }; + +

The following is a code example of system event handling:

+void CExampleAppUI::HandleSystemEvent( const TWsEvent& aEvent ) + { + switch( *( TApaSystemEvent* )( aEvent.EventData() ) ) + { + case EApaSystemEventBackupStarting: + { + // Handle backup starting + //... + break; + } + case EApaSystemEventBackupComplete: + { + // Handle backup complete + //... + break; + } + case EApaSystemEventShutdown: + { + // Handle shutdown + //... + break; + } + default: + { + break; + } + + } + // Call the base class implementation + CAknAppUi::HandleSystemEvent( aEvent ); + } +
\ No newline at end of file