S60 3rd Edition SDK for Symbian OS
Example Applications Guide

CMultiTexAppUi Class Reference

#include <MultiTexAppUi.h>

List of all members.

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


Detailed Description

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

Definition at line 39 of file MultiTexAppUi.h.


Constructor & Destructor Documentation

CMultiTexAppUi::~CMultiTexAppUi (   )  [virtual]
 

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

Definition at line 49 of file MultiTexAppUi.cpp.

References iAppContainer.

00050 {
00051     if ( iAppContainer )
00052     {
00053         RemoveFromStack( iAppContainer );
00054         delete iAppContainer;
00055     }
00056 }


Member Function Documentation

void CMultiTexAppUi::ConstructL (   ) 
 

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

Definition at line 32 of file MultiTexAppUi.cpp.

References CMultiTexContainer::ConstructL(), and iAppContainer.

00033 {
00034     BaseConstructL();
00035 
00036     iAppContainer = new (ELeave) CMultiTexContainer;
00037     iAppContainer->SetMopParent(this);
00038 
00039     iAppContainer->ConstructL( ClientRect() );
00040     AddToStackL( iAppContainer );
00041 }

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 66 of file MultiTexAppUi.cpp.

00068 {
00069 }

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 88 of file MultiTexAppUi.cpp.

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

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 77 of file MultiTexAppUi.cpp.

00079 {
00080     return EKeyWasNotConsumed;
00081 }


Member Data Documentation

CMultiTexContainer* CMultiTexAppUi::iAppContainer [private]
 

GUI container that resides in this application UI.

Definition at line 86 of file MultiTexAppUi.h.


© Nokia 2006

Back to top