Nokia N97 SDK
Example Applications Guide

CBrCtlSampleAppLoadEventObserver Class Reference

#include <BrCtlSampleAppLoadEventObserver.h>

Inheritance diagram for CBrCtlSampleAppLoadEventObserver:

List of all members.

Detailed Description

CBrCtlSampleAppLoadEventObserver class. This class inherits from the MBrCtlLoadEventObserver interface. This class is used to receive load progress events.

Definition at line 33 of file BrCtlSampleAppLoadEventObserver.h.


Public Member Functions

  ~CBrCtlSampleAppLoadEventObserver ()
void  HandleBrowserLoadEventL (TBrCtlDefs::TBrCtlLoadEvent aLoadEvent, TUint aSize, TUint16 aTransactionId)

Static Public Member Functions

static CBrCtlSampleAppLoadEventObserver *  NewL (CBrCtlSampleAppContainer *aContainer)

Private Member Functions

void  ConstructL (CBrCtlSampleAppContainer *aContainer)

Private Attributes

CBrCtlSampleAppContainer *  iContainer


Constructor & Destructor Documentation

CBrCtlSampleAppLoadEventObserver::~CBrCtlSampleAppLoadEventObserver (   ) 
 

Destructor.

Definition at line 61 of file BrCtlSampleAppLoadEventObserver.cpp.

00062     {
00063     }


Member Function Documentation

CBrCtlSampleAppLoadEventObserver * CBrCtlSampleAppLoadEventObserver::NewL (  CBrCtlSampleAppContainer *  aContainer  )  [static]
 

Two-phased constructor.

Definition at line 71 of file BrCtlSampleAppLoadEventObserver.cpp.

References ConstructL().

Referenced by CBrCtlSampleAppContainer::ConstructL().

00072 {
00073   CBrCtlSampleAppLoadEventObserver* self = new(ELeave)CBrCtlSampleAppLoadEventObserver;
00074   CleanupStack::PushL(self);
00075   self->ConstructL(aContainer);
00076   CleanupStack::Pop();
00077   return self;
00078 }

void CBrCtlSampleAppLoadEventObserver::HandleBrowserLoadEventL (  TBrCtlDefs::TBrCtlLoadEvent  aLoadEvent,
TUint  aSize,
TUint16  aTransactionId
) 
 

A load events notification

Since:
2.8
Parameters:
aLoadEvent  The load event
aSize  Size depends on the event
aTransactionId  The transaction id of the transaction that had this event
Returns:
void

Definition at line 27 of file BrCtlSampleAppLoadEventObserver.cpp.

References iContainer, and CBrCtlSampleAppContainer::SetText().

00030     {
00031     // Here we are creating a text string to be displayed on the screen, but if 
00032     // you were implementing this method, you would most likely be displaying a
00033     // progress bar.
00034 
00035     TBuf16<256> tgt; 
00036 
00037     _LIT(KHandleBrowserLoadEvent, "Load event = %d, size = %d, trId = %d");
00038      
00039     tgt.AppendFormat(KHandleBrowserLoadEvent, aLoadEvent, aSize, aTransactionId);
00040 
00041     iContainer->SetText(tgt);
00042 
00043     iContainer->DrawNow();
00044  
00045     }

void CBrCtlSampleAppLoadEventObserver::ConstructL (  CBrCtlSampleAppContainer *  aContainer  )  [private]
 

By default Symbian 2nd phase constructor is private.

Definition at line 52 of file BrCtlSampleAppLoadEventObserver.cpp.

References iContainer.

Referenced by NewL().

00053     {
00054     iContainer = aContainer;
00055     }


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

© Nokia 2009

Back to top