Nokia N97 SDK
Example Applications Guide

CMultiTexAppUi Class Reference

#include <MultiTexAppUi.h>

Inheritance diagram for CMultiTexAppUi:

List of all members.

Detailed Description

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

Definition at line 35 of file MultiTexAppUi.h.


Public Member Functions

void  ConstructL ()
virtual  ~CMultiTexAppUi ()

Private Member Functions

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

Private Attributes

CMultiTexContainer *  iAppContainer


Constructor & Destructor Documentation

CMultiTexAppUi::~CMultiTexAppUi (   )  [virtual]
 

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

Definition at line 46 of file MultiTexAppUi.cpp.

References iAppContainer.

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


Member Function Documentation

void CMultiTexAppUi::ConstructL (   ) 
 

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

Definition at line 29 of file MultiTexAppUi.cpp.

References CMultiTexContainer::ConstructL(), and iAppContainer.

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

void CMultiTexAppUi::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 MultiTexAppUi.cpp.

00065 {
00066 }

void CMultiTexAppUi::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 MultiTexAppUi.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 CMultiTexAppUi::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 MultiTexAppUi.cpp.

00076 {
00077     return EKeyWasNotConsumed;
00078 }


Member Data Documentation

CMultiTexContainer* CMultiTexAppUi::iAppContainer [private]
 

GUI container that resides in this application UI.

Definition at line 82 of file MultiTexAppUi.h.

Referenced by ConstructL(), and ~CMultiTexAppUi().


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

© Nokia 2009

Back to top