S60 3rd Edition SDK for Symbian OS
Example Applications Guide

CBrCtlSampleAppUi Class Reference

#include <BrCtlSampleAppUi.h>

List of all members.

Public Member Functions

void ConstructL ()
 ~CBrCtlSampleAppUi ()

Private Member Functions

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

Private Attributes

CBrCtlSampleAppContainer * iAppContainer


Detailed Description

CBrCtlSampleAppUi class. Application UI class which provides support for the following features:

Definition at line 36 of file BrCtlSampleAppUi.h.


Constructor & Destructor Documentation

CBrCtlSampleAppUi::~CBrCtlSampleAppUi (   ) 
 

Destructor.

Definition at line 47 of file BrCtlSampleAppUi.cpp.

References iAppContainer.

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


Member Function Documentation

void CBrCtlSampleAppUi::ConstructL (   ) 
 

EPOC default constructor.

Definition at line 32 of file BrCtlSampleAppUi.cpp.

References CBrCtlSampleAppContainer::ConstructL(), and iAppContainer.

00033     {
00034     BaseConstructL(CAknAppUi::EAknEnableSkin);
00035     iAppContainer = new (ELeave) CBrCtlSampleAppContainer;
00036     iAppContainer->SetMopParent(this);
00037     iAppContainer->ConstructL( ClientRect() );
00038     AddToStackL( iAppContainer );
00039     }

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

From CEikAppUi, takes care of command handling.

Parameters:
aCommand Command to be handled

Definition at line 88 of file BrCtlSampleAppUi.cpp.

References CBrCtlSampleAppContainer::HandleCommandL(), and iAppContainer.

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

TKeyResponse CBrCtlSampleAppUi::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 77 of file BrCtlSampleAppUi.cpp.

References CBrCtlSampleAppContainer::HandleKeyEventL(), and iAppContainer.

00079     {
00080     return iAppContainer->HandleKeyEventL(aKeyEvent, aType);;
00081     }


© Nokia 2006

Back to top