Nokia N97 SDK
Example Applications Guide

CMessagingContainer Class Reference

#include <MessagingContainer.h>

Inheritance diagram for CMessagingContainer:

List of all members.

Detailed Description

CMessagingContainer container control class.

Definition at line 30 of file MessagingContainer.h.


Public Member Functions

  ~CMessagingContainer ()

Static Public Member Functions

static CMessagingContainer *  NewL (const TRect &aRect)
static CMessagingContainer *  NewLC (const TRect &aRect)

Private Member Functions

void  ConstructL (const TRect &aRect)
void  SizeChanged ()
TInt  CountComponentControls () const
CCoeControl *  ComponentControl (TInt aIndex) const
void  Draw (const TRect &aRect) const
void  HandleControlEventL (CCoeControl *aControl, TCoeEvent aEventType)


Constructor & Destructor Documentation

CMessagingContainer::~CMessagingContainer (   ) 
 

Destructor.

Definition at line 66 of file MessagingContainer.cpp.

00067     {
00068     // no implementation needed here
00069     }


Member Function Documentation

CMessagingContainer * CMessagingContainer::NewL (  const TRect &  aRect  )  [static]
 

NewL. Two-phased constructor. Construct a CMessagingContainer using two phase construction, and return a pointer to the created object

Returns:
A pointer to the created instance of CMessagingContainer

Definition at line 27 of file MessagingContainer.cpp.

References NewLC().

Referenced by CMessagingAppUi::ConstructL().

00028     {
00029     CMessagingContainer* self = CMessagingContainer::NewLC( aRect );
00030     CleanupStack::Pop( self );
00031     return self;
00032     }

CMessagingContainer * CMessagingContainer::NewLC (  const TRect &  aRect  )  [static]
 

NewLC. Two-phased constructor. Construct a CMessagingContainer using two phase construction, and return a pointer to the created object

Returns:
A pointer to the created instance of CMessagingContainer

Definition at line 39 of file MessagingContainer.cpp.

Referenced by NewL().

00040     {
00041     CMessagingContainer* self = new ( ELeave ) CMessagingContainer();
00042     CleanupStack::PushL( self );
00043     self->ConstructL( aRect );
00044     return self;
00045     }

void CMessagingContainer::ConstructL (  const TRect &  aRect  )  [private]
 

Symbian default constructor.

Parameters:
aRect  Frame rectangle for container.

Definition at line 52 of file MessagingContainer.cpp.

00053     {
00054     CreateWindowL();        
00055     // Set the windows size
00056     SetRect( aRect );
00057     // Activate the window, which makes it ready to be drawn
00058     ActivateL();
00059     }

void CMessagingContainer::SizeChanged (   )  [private]
 

From CoeControl,SizeChanged.

Definition at line 76 of file MessagingContainer.cpp.

00077     {
00078     // no implementation needed here
00079     }

TInt CMessagingContainer::CountComponentControls (   )  const [private]
 

From CoeControl,CountComponentControls.

Definition at line 87 of file MessagingContainer.cpp.

00088     {
00089     return 0; // there are no components
00090     }

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

From CCoeControl,ComponentControl.

Definition at line 99 of file MessagingContainer.cpp.

00100     {
00101     switch ( aIndex )
00102         {
00103         default:
00104             return NULL; // there are no components
00105         }
00106     }

void CMessagingContainer::Draw (  const TRect &  aRect  )  const [private]
 

From CCoeControl,Draw.

Definition at line 113 of file MessagingContainer.cpp.

00114     {
00115     CWindowGc& gc = SystemGc();
00116     gc.SetPenStyle( CGraphicsContext::ENullPen );
00117     gc.SetBrushColor( KRgbWhite );
00118     gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
00119     gc.DrawRect( aRect );
00120     }

void CMessagingContainer::HandleControlEventL (  CCoeControl *  aControl,
TCoeEvent  aEventType
)  [private]
 

From MCoeControlObserver Acts upon changes in the hosted control's state.

Parameters:
aControl  The control changing its state
aEventType  The type of control event

Definition at line 127 of file MessagingContainer.cpp.

00129     {
00130     // no implementation needed here
00131     }


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

© Nokia 2009

Back to top