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

Definition at line 30 of file datamobilityappmenuview.h.
Public Member Functions |
|
| ~CDataMobilityAppMenuView () | |
| TUid | Id () const |
| void | HandleCommandL (TInt aCommand) |
Static Public Member Functions |
|
| static CDataMobilityAppMenuView * | NewL () |
Private Member Functions |
|
| void | ConstructL () |
| void | DoActivateL (const TVwsViewId &aPrevViewId, TUid aCustomMessageId, const TDesC8 &aCustomMessage) |
| void | DoDeactivate () |
Private Attributes |
|
| CDataMobilityAppMenuContainer * | iContainer |
| CAknNavigationDecorator * | iNaviDecorator |
|
|
Destructor. Definition at line 59 of file datamobilityappmenuview.cpp. References iContainer, and iNaviDecorator. 00060 { 00061 if ( iContainer ) 00062 { 00063 AppUi()->RemoveFromViewStack( *this, iContainer ); 00064 delete iContainer; 00065 } 00066 00067 delete iNaviDecorator; 00068 }
|
|
|
NewL is first phase of two-phased constructor. Definition at line 32 of file datamobilityappmenuview.cpp. Referenced by CDataMobilityAppUi::ConstructL(). 00033 { 00034 CDataMobilityAppMenuView* self = 00035 new ( ELeave ) CDataMobilityAppMenuView(); 00036 CleanupStack::PushL( self ); 00037 self->ConstructL(); 00038 CleanupStack::Pop( self ); 00039 return self; 00040 }
|
|
|
Returns view´s id.
Definition at line 76 of file datamobilityappmenuview.cpp.
|
|
|
Handles a command.
Definition at line 87 of file datamobilityappmenuview.cpp. References CDataMobilityAppMenuContainer::GetActiveLine(), CDataMobilityAppMenuContainer::HandleSelectedListItemL(), and iContainer. 00088 { 00089 switch ( aCommand ) 00090 { 00091 case EAknSoftkeyBack: 00092 { 00093 AppUi()->HandleCommandL( EEikCmdExit ); 00094 break; 00095 } 00096 case EAknCmdOpen: 00097 { 00098 TInt activeLine = iContainer->GetActiveLine(); 00099 iContainer->HandleSelectedListItemL( activeLine ); 00100 } 00101 break; 00102 default: 00103 { 00104 AppUi()->HandleCommandL( aCommand ); 00105 break; 00106 } 00107 } 00108 }
|
|
|
Symbian OS default constructor. Definition at line 48 of file datamobilityappmenuview.cpp.
|
|
||||||||||||||||
|
Initializes view when activated.
Definition at line 116 of file datamobilityappmenuview.cpp. References CDataMobilityAppMenuContainer::ConstructL(), iContainer, and iNaviDecorator. 00119 { 00120 if ( !iContainer ) 00121 { 00122 iContainer = new ( ELeave ) CDataMobilityAppMenuContainer; 00123 iContainer->SetMopParent( this ); 00124 iContainer->ConstructL( ClientRect() ); 00125 AppUi()->AddToStackL( *this, iContainer ); 00126 } 00127 00128 CEikStatusPane* statusPane = iEikonEnv->AppUiFactory()->StatusPane(); 00129 CAknNavigationControlContainer* navigation = 00130 static_cast<CAknNavigationControlContainer*> 00131 ( statusPane->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) ) ); 00132 00133 TResourceReader reader; 00134 iCoeEnv->CreateResourceReaderLC( reader, R_NAVITITLE_MENUVIEW ); 00135 iNaviDecorator = navigation->CreateNavigationLabelL( reader ); 00136 CleanupStack::PopAndDestroy(); // resource reader 00137 00138 navigation->PushL( *iNaviDecorator ); 00139 }
|
|
|
Deactivates view. Definition at line 147 of file datamobilityappmenuview.cpp. References iContainer, and iNaviDecorator. 00148 { 00149 if ( iContainer ) 00150 { 00151 AppUi()->RemoveFromViewStack( *this, iContainer ); 00152 delete iContainer; 00153 iContainer = NULL; 00154 } 00155 delete iNaviDecorator; 00156 iNaviDecorator = NULL; 00157 }
|
|
© Nokia 2009 |