S60 3rd Edition SDK for Symbian OS
Example Applications Guide

CRainAppUi Class Reference

#include <RainAppUi.h>

List of all members.

Public Member Functions

void ConstructL ()
virtual ~CRainAppUi ()

Private Member Functions

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

Private Attributes

CRainContainer * iAppContainer


Detailed Description

Application UI class that contains the CRainContainer (as required by the Symbian UI application architecture).

Definition at line 34 of file RainAppUi.h.


Constructor & Destructor Documentation

CRainAppUi::~CRainAppUi (   )  [virtual]
 

Destructor. Removes CRainContainer from the control stack and destroys it.

Definition at line 46 of file RainAppUi.cpp.

References iAppContainer.

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


Member Function Documentation

void CRainAppUi::ConstructL (   ) 
 

Second phase constructor. Creates the CRainContainer and adds it to the control stack.

Definition at line 31 of file RainAppUi.cpp.

References CRainContainer::ConstructL(), and iAppContainer.

00032     {
00033     BaseConstructL();
00034     iAppContainer = new (ELeave) CRainContainer;
00035     iAppContainer->SetMopParent(this);
00036     iAppContainer->ConstructL( ClientRect() );
00037     AddToStackL( iAppContainer );
00038     }

void CRainAppUi::DynInitMenuPaneL (  TInt  aResourceId,
CEikMenuPane *  aMenuPane
)  [private]
 

This method is called by the EIKON framework just before it displays a menu pane. Builds the dynamic menuitems for toggling the various options in the example.

Definition at line 63 of file RainAppUi.cpp.

00065     {
00066     }

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

CEikAppUi method that is used to handle user commands. Handles menu commands and application exit request.

Parameters:
aCommand Command to be handled.

Definition at line 85 of file RainAppUi.cpp.

00086     {
00087     switch ( aCommand )
00088         {
00089         case EAknSoftkeyBack:
00090         case EEikCmdExit:
00091             {
00092             Exit();
00093             break;
00094             }
00095         default:
00096             break;      
00097         }
00098     }

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

CEikAppUi method that is used to handle key events. Does nothing in this implemenation.

Parameters:
aKeyEvent Event to handled (ignored by this implementation).
aType Type of the key event (ignored by this implementation).
Returns:
Response code. Always EKeyWasNotConsumed in this implementation.

Definition at line 74 of file RainAppUi.cpp.

00076     {
00077     return EKeyWasNotConsumed;
00078     }


Member Data Documentation

CRainContainer* CRainAppUi::iAppContainer [private]
 

GUI container that resides in this application UI.

Definition at line 81 of file RainAppUi.h.


© Nokia 2006

Back to top