S60 3rd Edition SDK for Symbian OS
Example Applications Guide

CLmUiRefAppContainer Class Reference

#include <LmUiRefAppContainer.h>

List of all members.

Public Member Functions

 ~CLmUiRefAppContainer ()
void Draw (const TRect &) const

Static Public Member Functions

static CLmUiRefAppContainer * NewL (MObjectProvider *aParent, const TRect &aRect)

Private Member Functions

void SizeChanged ()
TInt CountComponentControls () const
CCoeControl * ComponentControl (TInt aIndex) const
 CLmUiRefAppContainer ()
void ConstructL (const TRect &aRect)

Private Attributes

CEikLabel * iLabel
CEikLabel * iToDoLabel


Detailed Description

CLmUiRefAppContainer container control class.

Definition at line 31 of file LmUiRefAppContainer.h.


Constructor & Destructor Documentation

CLmUiRefAppContainer::~CLmUiRefAppContainer (   ) 
 

Destructor.

Definition at line 80 of file LmUiRefAppContainer.cpp.

References iLabel, and iToDoLabel.

00081     {
00082     delete iLabel;
00083     delete iToDoLabel;
00084     }

CLmUiRefAppContainer::CLmUiRefAppContainer (   )  [private]
 

C++ default constructor.

Parameters:
aKeyProcessor 
Returns:
newly instantiated object

Definition at line 73 of file LmUiRefAppContainer.cpp.

00074     {
00075     }


Member Function Documentation

void CLmUiRefAppContainer::SizeChanged (   )  [private]
 

From CoeControl,SizeChanged.

Definition at line 91 of file LmUiRefAppContainer.cpp.

References iLabel, and iToDoLabel.

00092     {
00093     // TODO: Add here control resize code etc.    
00094     iLabel->SetExtent(TPoint(KLable1X, KLable1Y), iLabel->MinimumSize());
00095     iToDoLabel->SetExtent(TPoint(KLable2X, KLable2Y), iToDoLabel->MinimumSize());     
00096     }

TInt CLmUiRefAppContainer::CountComponentControls (   )  const [private]
 

From CoeControl,CountComponentControls.

Definition at line 103 of file LmUiRefAppContainer.cpp.

00104     {
00105     return 2; // return nbr of controls inside this container
00106     }

CCoeControl * CLmUiRefAppContainer::ComponentControl (  TInt  aIndex  )  const [private]
 

From CCoeControl,ComponentControl.

Definition at line 113 of file LmUiRefAppContainer.cpp.

References iLabel, and iToDoLabel.

00114     {
00115     switch ( aIndex )
00116         {
00117         case 0:
00118             return iLabel;
00119         case 1:
00120             return iToDoLabel;
00121         default:
00122             return NULL;
00123         }
00124     }


© Nokia 2006

Back to top