S60 3rd Edition SDK for Symbian OS
Example Applications Guide

CSnowAppUi Class Reference

#include <SnowAppUi.h>

List of all members.

Public Member Functions

void ConstructL ()
virtual ~CSnowAppUi ()

Private Member Functions

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

Private Attributes

CSnowContainer * iAppContainer


Detailed Description

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

Definition at line 35 of file SnowAppUi.h.


Constructor & Destructor Documentation

CSnowAppUi::~CSnowAppUi (   )  [virtual]
 

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

Definition at line 45 of file SnowAppUi.cpp.

References iAppContainer.

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


Member Function Documentation

void CSnowAppUi::ConstructL (   ) 
 

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

Definition at line 30 of file SnowAppUi.cpp.

References CSnowContainer::ConstructL(), and iAppContainer.

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

void CSnowAppUi::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 62 of file SnowAppUi.cpp.

00064     {
00065     }

void CSnowAppUi::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 82 of file SnowAppUi.cpp.

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

TKeyResponse CSnowAppUi::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 72 of file SnowAppUi.cpp.

00074     {
00075     return EKeyWasNotConsumed;
00076     }


Member Data Documentation

CSnowContainer* CSnowAppUi::iAppContainer [private]
 

GUI container that resides in this application UI.

Definition at line 82 of file SnowAppUi.h.


© Nokia 2006

Back to top