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

Definition at line 28 of file datamobilityappui.h.
Public Member Functions |
|
| void | ConstructL () |
| CDataMobilityAppUi () | |
| virtual | ~CDataMobilityAppUi () |
Private Member Functions |
|
| void | HandleCommandL (TInt aCommand) |
|
|
CDataMobilityAppUi. C++ default constructor. This needs to be public due to the way the framework constructs the AppUi Definition at line 59 of file datamobilityappui.cpp.
|
|
|
~CDataMobilityAppUi. Virtual Destructor. Definition at line 69 of file datamobilityappui.cpp.
|
|
|
ConstructL. 2nd phase constructor. Definition at line 35 of file datamobilityappui.cpp. References CDataMobilityAppOutputView::NewL(), and CDataMobilityAppMenuView::NewL(). 00036 { 00037 // Initialise app UI with standard value. 00038 BaseConstructL(); 00039 00040 // Create view objects 00041 CDataMobilityAppMenuView* menuView = CDataMobilityAppMenuView::NewL(); 00042 CleanupStack::PushL( menuView ); 00043 AddViewL( menuView ); // transfer ownership to CAknViewAppUi 00044 CleanupStack::Pop( menuView ); 00045 00046 CDataMobilityAppOutputView* outputView = CDataMobilityAppOutputView::NewL(); 00047 CleanupStack::PushL( outputView ); 00048 AddViewL( outputView ); // transfer ownership to CAknViewAppUi 00049 CleanupStack::Pop( outputView ); 00050 00051 SetDefaultViewL( *menuView ); 00052 }
|
|
|
From CEikAppUi, HandleCommandL. Takes care of command handling.
Definition at line 78 of file datamobilityappui.cpp. 00079 { 00080 TInt currentView( 0 ); 00081 TInt newView( 0 ); 00082 00083 currentView = ( iView->Id() ).iUid; 00084 00085 switch( aCommand ) 00086 { 00087 case EEikCmdExit: 00088 case EAknSoftkeyExit: 00089 { 00090 Exit(); 00091 break; 00092 } 00093 case EAppUIGoBack: 00094 case EAppUIGoToMenu: 00095 { 00096 newView = EMenuViewId; 00097 break; 00098 } 00099 case EAppUIGoToStandardApplication: 00100 case EAppUIGoToApplicationUsingSnap: 00101 case EAppUIGoToTriggeringConnectionDialog: 00102 case EAppUIGoToALRApplication: 00103 case EAppUIGoToALRApplicationUsingDefaultConnection: 00104 case EAppUIGoToUsingConnectionSetting: 00105 { 00106 newView = EOutputViewId; 00107 break; 00108 } 00109 default: 00110 // let the framework handle it 00111 return; 00112 } 00113 00114 if( newView != currentView ) 00115 { 00116 TBufC8<1> aBuf; 00117 ActivateLocalViewL( TUid::Uid( newView ), TUid::Uid( aCommand ), aBuf ); 00118 } 00119 }
|
|
© Nokia 2009 |