Nokia N97 SDK
Example Applications Guide

CAknExNoteAppUi Class Reference

#include <aknexnoteappui.h>

Inheritance diagram for CAknExNoteAppUi:

List of all members.

Detailed Description

Application UI class. Provides support for the following features:

Definition at line 33 of file aknexnoteappui.h.


Public Member Functions

  CAknExNoteAppUi ()
void  ConstructL ()
virtual  ~CAknExNoteAppUi ()

Private Member Functions

void  HandleCommandL (TInt aCommand)
void  HandleResourceChangeL (TInt aType)


Constructor & Destructor Documentation

CAknExNoteAppUi::CAknExNoteAppUi (   ) 
 

CAknExNoteAppUi. C++ default constructor.

Definition at line 29 of file aknexnoteappui.cpp.

00030     {
00031     // No implementation required
00032     }

CAknExNoteAppUi::~CAknExNoteAppUi (   )  [virtual]
 

~CAknExNoteAppUi Virtual Destructor.

Definition at line 68 of file aknexnoteappui.cpp.

00069     {
00070     // No implementation required
00071     }


Member Function Documentation

void CAknExNoteAppUi::ConstructL (   ) 
 

ConstructL 2nd phase constructor.

Definition at line 39 of file aknexnoteappui.cpp.

00040     {
00041 
00042     // Initialise app UI with standard value.
00043     BaseConstructL( EAknEnableSkin );
00044 
00045     // Creates CAknExNoteView class object.
00046     CAknExNoteView* view = new( ELeave ) CAknExNoteView;
00047 
00048     // Push CAknExNoteView's pointer into CleanUpStack for safety object construction.
00049     CleanupStack::PushL( view );
00050 
00051     //Construct View
00052     view->ConstructL();
00053     
00054      // View is constructed correctly , Pop it's pointer from CleanUpStack
00055     CleanupStack::Pop();
00056 
00057     // Transfer ownership to CAknViewAppUi.
00058     AddViewL( view ); 
00059 
00060     ActivateLocalViewL( view->Id() );
00061     }

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

HandleCommandL Handles the commands.

Parameters:
aCommand  command to be handled

Definition at line 78 of file aknexnoteappui.cpp.

00079     {
00080     switch ( aCommand )
00081         {
00082         case EEikCmdExit:
00083             Exit();
00084             break;
00085         default:
00086             break;
00087         }
00088     }

void CAknExNoteAppUi::HandleResourceChangeL (  TInt  aType  )  [private]
 

From CEikAppUi, HandleResourceChangeL. Handles resource changes.

Parameters:
aType  Resource change type to be handled

Definition at line 95 of file aknexnoteappui.cpp.

00096     {
00097     CAknAppUi::HandleResourceChangeL( aType );
00098     if  ( aType == KEikDynamicLayoutVariantSwitch )
00099         {
00100         CAknView* view = View( KViewId );
00101         view->HandleViewRectChange();
00102         }
00103     }


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

© Nokia 2009

Back to top