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

Definition at line 31 of file helpexampleappui.h.
Public Member Functions |
|
| void | ConstructL () |
| CHelpExampleAppUi () | |
| virtual | ~CHelpExampleAppUi () |
| void | HandleCommandL (TInt aCommand) |
Private Member Functions |
|
| CArrayFix< TCoeHelpContext > * | HelpContextL () const |
Private Attributes |
|
| CHelpExampleAppView * | iAppView |
|
|
CHelpExampleAppUi() Perform the first phase of two phase construction. This needs to be public due to the way the framework constructs the AppUi Definition at line 48 of file helpexampleappui.cpp.
|
|
|
~CHelpExampleAppUi() Destroy the object Definition at line 58 of file helpexampleappui.cpp. References iAppView. 00059 { 00060 if ( iAppView ) 00061 { 00062 iEikonEnv->RemoveFromStack( iAppView ); 00063 delete iAppView; 00064 iAppView = NULL; 00065 } 00066 }
|
|
|
ConstructL() Perform the second phase construction of a CHelpExampleAppUi object this needs to be public due to the way the framework constructs the AppUi Definition at line 36 of file helpexampleappui.cpp. References iAppView, and CHelpExampleAppView::NewL(). 00037 { 00038 BaseConstructL( EAknEnableSkin ); 00039 00040 iAppView = CHelpExampleAppView::NewL( ClientRect() ); 00041 AddToStackL( iAppView ); 00042 }
|
|
|
HandleCommandL() Handle user menu selections
Definition at line 73 of file helpexampleappui.cpp. References CHelpfulForm::NewL(). 00074 { 00075 switch ( aCommand ) 00076 { 00077 case EEikCmdExit: 00078 case EAknSoftkeyExit: 00079 Exit(); 00080 break; 00081 00082 case EShowHelpfulDialog: 00083 { 00084 CHelpfulForm* dlg = CHelpfulForm::NewL( R_FORM_MENUBAR ); 00085 dlg->ExecuteLD( R_HELPFUL_DIALOG ); 00086 } 00087 break; 00088 00089 case ELaunchHelpForContext: 00090 { 00091 CArrayFix <TCoeHelpContext>* buf = CCoeAppUi::AppHelpContextL(); 00092 HlpLauncher::LaunchHelpApplicationL( iEikonEnv->WsSession(), buf ); 00093 } 00094 break; 00095 00096 default: 00097 break; 00098 } 00099 }
|
|
|
HelpContextL() Return the help context for this application
Definition at line 106 of file helpexampleappui.cpp. 00107 { 00108 CArrayFixFlat <TCoeHelpContext>* array = 00109 new ( ELeave )CArrayFixFlat <TCoeHelpContext> ( 1 ); 00110 CleanupStack::PushL( array ); 00111 array->AppendL( TCoeHelpContext( KUidHelpFile, KContextApplication ) ); 00112 CleanupStack::Pop( array ); 00113 return array; 00114 }
|
|
|
iAppView The application view Owned by CHelpExampleAppUi Definition at line 83 of file helpexampleappui.h. Referenced by ConstructL(), and ~CHelpExampleAppUi(). |
|
© Nokia 2009 |