Nokia N97 SDK
Example Applications Guide

CSatelliteReferenceAppUi Class Reference

#include <SatelliteReferenceAppUi.h>

Inheritance diagram for CSatelliteReferenceAppUi:

List of all members.

Detailed Description

Application UI class. Provides support for the following features:

Definition at line 40 of file SatelliteReferenceAppUi.h.


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.


Constructor & Destructor Documentation

CSatelliteReferenceAppUi::~CSatelliteReferenceAppUi (   ) 
 

Destructor.

Definition at line 47 of file SatelliteReferenceAppUi.cpp.

References iAppContainer.

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


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 96 of file SatelliteReferenceAppUi.cpp.

References iSatelliteInfo.

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

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 74 of file SatelliteReferenceAppUi.cpp.

00076     {
00077     return EKeyWasNotConsumed;
00078     }

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

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

Definition at line 84 of file SatelliteReferenceAppUi.cpp.

References iSatelliteInfo.

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


The documentation for this class was generated from the following files:

© Nokia 2009

Back to top