|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
#include <RegistrationAppui.h>
Public Member Functions | |
| void | ConstructL () |
| ~CRegistrationAppUi () | |
Private Member Functions | |
| void | DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane) |
| void | HandleCommandL (TInt aCommand) |
| virtual void | HandleResourceChangeL (TInt aType) |
| TKeyResponse | HandleKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
Private Attributes | |
| CRegistrationView * | iAppView |
| TBuf< KMaxNoteLength > | iNote |
Definition at line 40 of file RegistrationAppui.h.
|
|
Destructor. Definition at line 44 of file RegistrationAppui.cpp.
|
|
|
Symbian default constructor. Definition at line 27 of file RegistrationAppui.cpp. References iAppView, CRegistrationView::Id(), and CRegistrationView::NewL(). 00028 { 00029 BaseConstructL( CAknAppUi::EAknEnableSkin ); 00030 00031 iAppView = CRegistrationView::NewL(); 00032 CleanupStack::PushL( iAppView ); 00033 AddViewL( iAppView ); 00034 CleanupStack::Pop( iAppView ); 00035 ActivateLocalViewL( iAppView->Id() ); 00036 }
|
|
||||||||||||
|
This function is called by the EIKON framework just before it displays a menu pane. Definition at line 57 of file RegistrationAppui.cpp.
|
|
|
Takes care of command handling.
Definition at line 80 of file RegistrationAppui.cpp. References iAppView, iNote, and CRegistrationView::ValidateInput(). 00081 { 00082 switch ( aCommand ) 00083 { 00084 case EAknSoftkeyExit: 00085 case EEikCmdExit: 00086 { 00087 Exit(); 00088 break; 00089 } 00090 case ERegistrationCmdAppRegister: 00091 { 00092 if ( iAppView->ValidateInput() ) 00093 { 00094 // Add here your own code to handle registration data. 00095 // 00096 iCoeEnv->ReadResourceL( iNote, R_REGISTRATION_INFO_TEXT ); 00097 CAknInformationNote* dlg = new ( ELeave ) CAknInformationNote; 00098 dlg->ExecuteLD( iNote ); 00099 } 00100 else 00101 { 00102 iCoeEnv->ReadResourceL( iNote, R_REGISTRATION_ERR_TEXT ); 00103 CAknErrorNote* dlg = new ( ELeave ) CAknErrorNote; 00104 dlg->ExecuteLD( iNote ); 00105 } 00106 break; 00107 } 00108 00109 default: 00110 break; 00111 } 00112 }
|
|
|
Called by framework when layout is changed.
Definition at line 119 of file RegistrationAppui.cpp. References iAppView, and CRegistrationView::SizeChanged(). 00120 { 00121 CAknAppUi::HandleResourceChangeL( aType ); 00122 if ( aType == KEikDynamicLayoutVariantSwitch ) 00123 { 00124 iAppView->SizeChanged(); 00125 } 00126 }
|
|
||||||||||||
|
Handles key events.
Definition at line 69 of file RegistrationAppui.cpp.
|
|
© Nokia 2006 |