S60 5th Edition SDK Example Applications Guide |
#include <cssyncappui.h>
Inheritance diagram for CCSSyncAppUi:
Definition at line 33 of file cssyncappui.h.
Public Member Functions | |
CCSSyncAppUi () | |
virtual | ~CCSSyncAppUi () |
void | HandleCommandL (TInt aCommand) |
virtual void | HandleResourceChangeL (TInt aType) |
Private Member Functions | |
void | ConstructL () |
CCSSyncDocument * | SyncDocument () const |
Private Attributes | |
CCSSyncAppView * | iAppView |
|
CCSSyncAppUi. C++ default constructor. This needs to be public due to the way the framework constructs the AppUi. Definition at line 35 of file cssyncappui.cpp.
|
|
~CCSSyncAppUi. Destructor. Definition at line 59 of file cssyncappui.cpp. References iAppView. 00060 { 00061 if ( iAppView ) 00062 { 00063 iEikonEnv->RemoveFromStack( iAppView ); 00064 delete iAppView; 00065 iAppView = NULL; 00066 } 00067 }
|
|
From CAknAppUi, HandleCommandL. Handles user menu selections.
Definition at line 84 of file cssyncappui.cpp. References iAppView, SyncDocument(), and CCSSyncDocument::UpdateTime(). 00085 { 00086 switch( aCommand ) 00087 { 00088 case EEikCmdExit: 00089 case EAknSoftkeyExit: 00090 Exit(); 00091 break; 00092 00093 case EDisplayTime: 00094 // Pull the time from the server 00095 SyncDocument()->UpdateTime(); 00096 00097 // Get view to display the new time 00098 iAppView->DrawNow(); 00099 break; 00100 00101 default: 00102 break; 00103 } 00104 }
|
|
HandleResourceChangeL() Called by framework when layout is changed.
Definition at line 111 of file cssyncappui.cpp. References iAppView. 00112 { 00113 CAknAppUi::HandleResourceChangeL( aType ); 00114 00115 if ( aType==KEikDynamicLayoutVariantSwitch ) 00116 { 00117 iAppView->SetRect( ClientRect() ); 00118 } 00119 //Controls derived from CCoeControl, handled in container class 00120 iAppView->HandleResourceChange( aType ); 00121 }
|
|
ConstructL. 2nd phase constructor. Definition at line 45 of file cssyncappui.cpp. References iAppView, CCSSyncAppView::NewL(), and SyncDocument(). 00046 { 00047 BaseConstructL(); 00048 00049 iAppView = CCSSyncAppView::NewL( ClientRect(), *SyncDocument() ); 00050 00051 AddToStackL( iAppView ); 00052 }
|
|
SyncDocument. Casts iDocument member from CAknAppUi to CCSSyncDocument. Definition at line 74 of file cssyncappui.cpp. Referenced by ConstructL(), and HandleCommandL().
|
|
iAppView, the application view. Owned by CCSSyncAppUi object. Definition at line 88 of file cssyncappui.h. Referenced by ConstructL(), HandleCommandL(), HandleResourceChangeL(), and ~CCSSyncAppUi(). |
© Nokia 2009 |