|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
#include <BrCtlSampleAppStateChangeObserver.h>
Public Member Functions | |
| ~CBrCtlSampleAppStateChangeObserver () | |
| void | StateChanged (TBrCtlDefs::TBrCtlState aState, TInt aValue) |
Static Public Member Functions | |
| static CBrCtlSampleAppStateChangeObserver * | NewL (CBrCtlSampleAppContainer *aContainer) |
Private Member Functions | |
| void | ConstructL (CBrCtlSampleAppContainer *aContainer) |
Private Attributes | |
| CBrCtlSampleAppContainer * | iContainer |
Definition at line 33 of file BrCtlSampleAppStateChangeObserver.h.
|
|
Destructor. Definition at line 60 of file BrCtlSampleAppStateChangeObserver.cpp.
|
|
|
Two-phased constructor. Definition at line 70 of file BrCtlSampleAppStateChangeObserver.cpp. References ConstructL(). 00071 { 00072 CBrCtlSampleAppStateChangeObserver* self = new(ELeave)CBrCtlSampleAppStateChangeObserver; 00073 CleanupStack::PushL(self); 00074 self->ConstructL(aContainer); 00075 CleanupStack::Pop(); 00076 return self; 00077 }
|
|
||||||||||||
|
A state change events notification
Definition at line 27 of file BrCtlSampleAppStateChangeObserver.cpp. References iContainer, CBrCtlSampleAppContainer::SetPoint(), and CBrCtlSampleAppContainer::SetText(). 00029 { 00030 // Here we are creating a string to be displayed on the screen, but you would 00031 // implement this method to have code that would be executed when the observer 00032 // receives state changed events. 00033 TBuf16<256> tgt; 00034 TPoint point(0, 120); 00035 00036 _LIT(KHandleBrowserStateChange, "State Change event = %d, value = %d"); 00037 00038 tgt.AppendFormat(KHandleBrowserStateChange, aState, aValue); 00039 00040 iContainer->SetPoint(point); 00041 iContainer->SetText(tgt); 00042 00043 iContainer->DrawNow(); 00044 }
|
|
|
By default Symbian 2nd phase constructor is private. Definition at line 51 of file BrCtlSampleAppStateChangeObserver.cpp. References iContainer. 00052 { 00053 iContainer = aContainer; 00054 }
|
|
© Nokia 2006 |