|
Nokia N97 SDK Example Applications Guide |
#include <BrCtlSampleAppLoadEventObserver.h>
Inheritance diagram for CBrCtlSampleAppLoadEventObserver:

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 |
|
|
Destructor. Definition at line 61 of file BrCtlSampleAppLoadEventObserver.cpp.
|
|
|
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 }
|
|
||||||||||||||||
|
A load events notification
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 }
|
|
|
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 }
|
|
© Nokia 2009 |