Nokia N97 SDK
Example Applications Guide

CSimpleCubePbufferAppUi Class Reference

#include <SimpleCubePbufferAppUi.h>

Inheritance diagram for CSimpleCubePbufferAppUi:

List of all members.

Detailed Description

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

Definition at line 33 of file SimpleCubePbufferAppUi.h.


Public Member Functions

void  ConstructL ()
virtual  ~CSimpleCubePbufferAppUi ()

Private Member Functions

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

Private Attributes

CSimpleCubePbufferContainer *  iAppContainer


Constructor & Destructor Documentation

CSimpleCubePbufferAppUi::~CSimpleCubePbufferAppUi (   )  [virtual]
 

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

Definition at line 45 of file SimpleCubePbufferAppUi.cpp.

References iAppContainer.

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


Member Function Documentation

void CSimpleCubePbufferAppUi::ConstructL (   ) 
 

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

Definition at line 29 of file SimpleCubePbufferAppUi.cpp.

References CSimpleCubePbufferContainer::ConstructL(), and iAppContainer.

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

void CSimpleCubePbufferAppUi::DynInitMenuPaneL (  TInt  aResourceId,
CEikMenuPane *  aMenuPane
)  [private]
 

This method is called by the EIKON framework just before it displays a menu pane. Does nothing in this implemenation.

Definition at line 62 of file SimpleCubePbufferAppUi.cpp.

00064     {
00065     }

void CSimpleCubePbufferAppUi::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 83 of file SimpleCubePbufferAppUi.cpp.

References CSimpleCubePbuffer::FlatShading(), iAppContainer, CSimpleCubePbufferContainer::iSimpleCubePbuffer, and CSimpleCubePbuffer::SmoothShading().

00084     {
00085     switch ( aCommand )
00086         {
00087         case EAknSoftkeyBack:
00088         case EEikCmdExit:
00089             {
00090             Exit();
00091             break;
00092             }
00093         case ESimpleCubeFlat:
00094                 iAppContainer->iSimpleCubePbuffer->FlatShading();
00095                 break;
00096         case ESimpleCubeSmooth:
00097                 iAppContainer->iSimpleCubePbuffer->SmoothShading();
00098                 break;
00099         default:
00100             break;
00101         }
00102     }

TKeyResponse CSimpleCubePbufferAppUi::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 SimpleCubePbufferAppUi.cpp.

00074     {
00075     return EKeyWasNotConsumed;
00076     }


Member Data Documentation

CSimpleCubePbufferContainer* CSimpleCubePbufferAppUi::iAppContainer [private]
 

GUI container that resides in this application UI.

Definition at line 79 of file SimpleCubePbufferAppUi.h.

Referenced by ConstructL(), HandleCommandL(), and ~CSimpleCubePbufferAppUi().


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

© Nokia 2009

Back to top