diff -r 000000000000 -r 89d6a7a84779 Symbian3/SDK/Source/GUID-868C1A38-3CD0-4082-8106-DC3EE1F815D8.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-868C1A38-3CD0-4082-8106-DC3EE1F815D8.dita Thu Jan 21 18:18:20 2010 +0000 @@ -0,0 +1,54 @@ + + + + + +System +events +

System events are enumerated in TApaSystemEvent, which is defined in the apgtask.h header. +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 ); + } + +
\ No newline at end of file