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

Definition at line 32 of file Slideshowappui.h.
Public Member Functions |
|
| void | ConstructL () |
| virtual | ~CSlideshowAppUi () |
Private Member Functions |
|
| void | DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane) |
| void | HandleCommandL (TInt aCommand) |
| virtual TKeyResponse | HandleKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
Private Attributes |
|
| CSlideshowContainer * | iAppContainer |
|
|
Destructor. Removes CSlideshowContainer from the control stack and destroys it. Definition at line 41 of file Slideshowappui.cpp. References iAppContainer. 00042 { 00043 if ( iAppContainer ) 00044 { 00045 RemoveFromStack( iAppContainer ); 00046 delete iAppContainer; 00047 } 00048 }
|
|
|
Second phase constructor that can call methods that may leave. Creates the CSlideshowContainer and adds it to the control stack. Definition at line 27 of file Slideshowappui.cpp. References CSlideshowContainer::ConstructL(), and iAppContainer. 00028 { 00029 BaseConstructL(); 00030 iAppContainer = new (ELeave) CSlideshowContainer; 00031 iAppContainer->SetMopParent(this); 00032 iAppContainer->ConstructL( ClientRect(), this ); 00033 AddToStackL( iAppContainer ); 00034 }
|
|
||||||||||||
|
This method is called by the EIKON framework just before it displays a menu pane. Builds the dynamic menuitems for toggling the various options in the example. Definition at line 58 of file Slideshowappui.cpp.
|
|
|
CEikAppUi method that is used to handle user commands. Handles menu commands and application exit request.
Definition at line 90 of file Slideshowappui.cpp. 00091 { 00092 switch ( aCommand ) 00093 { 00094 case EAknSoftkeyBack: 00095 case EEikCmdExit: 00096 { 00097 Exit(); 00098 break; 00099 } 00100 default: 00101 break; 00102 } 00103 }
|
|
||||||||||||
|
CEikAppUi method that is used to handle key events. Does nothing in this implemenation.
Definition at line 68 of file Slideshowappui.cpp. References iAppContainer, CSlideshowContainer::iSlideshow, CSlideshow::ShowNextPicture(), and CSlideshow::ShowPreviousPicture(). 00070 { 00071 if (aType == EEventKey) 00072 { 00073 switch (aKeyEvent.iScanCode) 00074 { 00075 case EStdKeyLeftArrow: 00076 iAppContainer->iSlideshow->ShowPreviousPicture(); 00077 break; 00078 case EStdKeyRightArrow: 00079 iAppContainer->iSlideshow->ShowNextPicture(); 00080 break; 00081 } 00082 } 00083 return EKeyWasNotConsumed; 00084 }
|
|
|
GUI container that resides in this application UI. Definition at line 77 of file Slideshowappui.h. Referenced by ConstructL(), HandleKeyEventL(), and ~CSlideshowAppUi(). |
|
© Nokia 2009 |