Nokia N97 SDK
Example Applications Guide

CLmUiRefAppUi Class Reference

#include <LmUiRefAppUi.h>

Inheritance diagram for CLmUiRefAppUi:

List of all members.

Detailed Description

Application UI class. Provides support for the following features:

Definition at line 46 of file LmUiRefAppUi.h.


Public Member Functions

void  ConstructL ()
  ~CLmUiRefAppUi ()
CLmUiRefAppDocument &  Document () const

Private Member Functions

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


Constructor & Destructor Documentation

CLmUiRefAppUi::~CLmUiRefAppUi (   ) 
 

Destructor.

Definition at line 50 of file LmUiRefAppUi.cpp.

00051    {
00052 
00053    }


Member Function Documentation

void CLmUiRefAppUi::ConstructL (   ) 
 

EPOC default constructor.

Definition at line 36 of file LmUiRefAppUi.cpp.

References CLmUiRefAppView::NewLC().

00037     {
00038     BaseConstructL( EAknEnableSkin | EAknEnableMSK);
00039     CLmUiRefAppView* lmView =   CLmUiRefAppView::NewLC();
00040     AddViewL(lmView); // Transfer Ownership
00041     CleanupStack::Pop();
00042     SetDefaultViewL(*lmView);
00043     }

CLmUiRefAppDocument & CLmUiRefAppUi::Document (   )  const
 

Return reference to document

Returns:
reference to CLmkDocument

Definition at line 85 of file LmUiRefAppUi.cpp.

Referenced by CLmUiRefAppView::IsLmDbEmptyL(), and CLmUiRefAppView::NewLmCmdL().

00086     {
00087     // Explicit cast: the document must always be of type CLmkDocument
00088     CLmUiRefAppDocument* document =
00089         static_cast<CLmUiRefAppDocument*>( CEikAppUi::Document() );
00090     
00091     return *document;
00092     }

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

From CEikAppUi, takes care of command handling.

Parameters:
aCommand  command to be handled

Definition at line 100 of file LmUiRefAppUi.cpp.

00101     {
00102     switch ( aCommand )
00103         {
00104         // these all are same: exit
00105         case EAknSoftkeyBack:
00106         case EAknSoftkeyExit:
00107         case EEikCmdExit:
00108             {
00109                 Exit();
00110                 break;
00111             }
00112         default:
00113             break;      
00114         }
00115     }

TKeyResponse CLmUiRefAppUi::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 75 of file LmUiRefAppUi.cpp.

00077     {
00078     return EKeyWasNotConsumed;
00079     }


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

© Nokia 2009

Back to top