S60 3rd Edition SDK for Symbian OS
Example Applications Guide

CSatelliteReferenceAppUi Class Reference

#include <SatelliteReferenceAppUi.h>

List of all members.

Public Member Functions

void ConstructL ()
 ~CSatelliteReferenceAppUi ()

Private Member Functions

void DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane)
void HandleCommandL (TInt aCommand)
virtual TKeyResponse HandleKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType)
void HandleForegroundEventL (TBool aForeground)

Private Attributes

CSatelliteReferenceContainer * iAppContainer
CSatelliteInfoUI * iSatelliteInfo
 Pointer to CSatelliteUI.


Detailed Description

Application UI class. Provides support for the following features:

Definition at line 40 of file SatelliteReferenceAppUi.h.


Constructor & Destructor Documentation

CSatelliteReferenceAppUi::~CSatelliteReferenceAppUi (   ) 
 

Destructor.

Definition at line 46 of file SatelliteReferenceAppUi.cpp.

References iAppContainer.

00047     {
00048     if (iAppContainer)
00049         {
00050         RemoveFromStack( iAppContainer );
00051         delete iAppContainer;
00052         }
00053    }


Member Function Documentation

void CSatelliteReferenceAppUi::HandleCommandL (  TInt  aCommand  )  [private]
 

From CEikAppUi, takes care of command handling.

Parameters:
aCommand command to be handled

Definition at line 95 of file SatelliteReferenceAppUi.cpp.

References iSatelliteInfo.

00096     {
00097     switch ( aCommand )
00098         {
00099         case EAknSoftkeyBack:
00100         case EEikCmdExit:
00101             {
00102             Exit();
00103             break;
00104             }
00105             
00106         case ESatelliteInfoCmd:
00107                 {
00108                 HBufC* srvName = StringLoader::LoadLC( 
00109                                       R_SATREF_SERVICE_RULE_NAME, 
00110                                       CEikonEnv::Static() );
00111                 // Creating instance of CSatelliteInfo
00112                 iSatelliteInfo = CSatelliteInfoUI::NewL();
00113                 
00114                 // ExecuteLD displays the satellite dialog.
00115                 // The dialog display satellite ID's along with 
00116                 // their signal strengths depicted using bar's.
00117                 iSatelliteInfo->ExecuteLD(*srvName);
00118                 
00119                 CleanupStack::PopAndDestroy(srvName); //srvName
00120                 iSatelliteInfo = NULL;
00121                 break;
00122                 }        
00123                         
00124         default:
00125                 {
00126                 break;
00127                 }            
00128         }
00129     }

TKeyResponse CSatelliteReferenceAppUi::HandleKeyEventL (  const TKeyEvent &  aKeyEvent,
TEventCode  aType
)  [private, virtual]
 

From CEikAppUi, handles key events.

Parameters:
aKeyEvent Event to handled.
aType Type of the key event.
Returns:
Response code (EKeyWasConsumed, EKeyWasNotConsumed).

Definition at line 73 of file SatelliteReferenceAppUi.cpp.

00075     {
00076     return EKeyWasNotConsumed;
00077     }

void CSatelliteReferenceAppUi::HandleForegroundEventL (  TBool  aForeground  )  [private]
 

From CEikAppUi, handles the event when the application is switch between foreground and background

Definition at line 83 of file SatelliteReferenceAppUi.cpp.

References iSatelliteInfo.

00084         {
00085         if(iSatelliteInfo)      
00086                 {
00087                 iSatelliteInfo->HandleForegroundEventL(aForeground);                    
00088                 }
00089         }


© Nokia 2006

Back to top