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

Definition at line 34 of file CCEAppUi.h.
Public Member Functions |
|
| CCEAppUi () | |
| virtual | ~CCEAppUi () |
| void | ConstructL () |
Protected Member Functions |
|
| void | HandleCommandL (TInt aCommand) |
Private Attributes |
|
| CAknView * | iAppView |
| MCLFContentListingEngine * | iEngine |
| MCLFItemListModel * | iModel |
| CCEOperationObserver * | iObserver |
|
|
C++ default constructor. Definition at line 39 of file CCEAppUi.cpp.
|
|
|
Destructor. Definition at line 87 of file CCEAppUi.cpp. References iModel. 00088 { 00089 if( iModel ) 00090 { 00091 iModel->CancelRefresh(); 00092 delete iModel; 00093 } 00094 00095 delete iEngine; 00096 delete iObserver; 00097 }
|
|
|
Symbian 2nd phase constructor. Definition at line 48 of file CCEAppUi.cpp. References iAppView, iEngine, iModel, iObserver, CCEOperationObserver::NewL(), CCEGroupView::NewLC(), and CCEMusicView::NewLC(). 00049 { 00050 BaseConstructL( CAknAppUi::EAknEnableSkin ); 00051 00052 // Create CLF Operation Observer to monitor, when 00053 // refresh operation has completed 00054 iObserver = CCEOperationObserver::NewL(); 00055 00056 // Create Content Listing Engine and a list model 00057 iEngine = ContentListingFactory::NewContentListingEngineLC(); 00058 CleanupStack::Pop(); // iEngine 00059 iModel = iEngine->CreateListModelLC( *iObserver ); 00060 CleanupStack::Pop(); // iModel 00061 00062 // Create a view for music files listing 00063 iAppView = CCEMusicView::NewLC( iEngine, iModel, iObserver ); 00064 AddViewL( iAppView ); // ownership transfers 00065 CleanupStack::Pop(); // iAppView 00066 00067 // Create a view for groups listing 00068 iAppView = CCEGroupView::NewLC( iEngine, iModel, iObserver ); 00069 AddViewL( iAppView ); // ownership transfers 00070 CleanupStack::Pop(); // iAppView 00071 SetDefaultViewL( *iAppView ); 00072 00073 // Create an array for wanted media types 00074 RArray<TInt> array; 00075 CleanupClosePushL( array ); 00076 00077 // Append music-type to wanted types array to exclude 00078 // all other files than music files from the list model 00079 array.AppendL( ECLFMediaTypeMusic ); 00080 00081 // Set wanted media types array to the model 00082 iModel->SetWantedMediaTypesL( array.Array() ); 00083 CleanupStack::PopAndDestroy( &array ); 00084 }
|
|
|
From CEikAppUi. Handle user's commands. Definition at line 104 of file CCEAppUi.cpp. 00105 { 00106 switch( aCommand ) 00107 { 00108 case EEikCmdExit: 00109 case EAknSoftkeyExit: 00110 case EAknCmdExit: 00111 case ECECmdExit: 00112 { 00113 Exit(); 00114 break; 00115 } 00116 00117 default: 00118 { 00119 break; 00120 } 00121 } 00122 }
|
|
© Nokia 2009 |