|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
#include <SIPExLogView.h>
Public Member Functions | |
| ~CSIPExLogView () | |
| TUid | Id () const |
| void | HandleCommandL (TInt aCommand) |
| void | HandleViewRectChange () |
| void | DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane) |
| CSIPExLogContainer * | Container () |
Static Public Member Functions | |
| static CSIPExLogView * | NewLC (CSIPExEngine &aEngine) |
Private Member Functions | |
| CSIPExLogView (CSIPExEngine &aEngine) | |
| void | ConstructL () |
| void | DoActivateL (const TVwsViewId &aPrevViewId, TUid aCustomMessageId, const TDesC8 &aCustomMessage) |
| void | DoDeactivate () |
Private Attributes | |
| CSIPExLogContainer * | iContainer |
| CSIPExEngine & | iEngine |
Definition at line 38 of file SIPExLogView.h.
|
|
Destructor. Definition at line 69 of file SIPExLogView.cpp. References iContainer. 00070 { 00071 if ( iContainer ) 00072 { 00073 AppUi()->RemoveFromViewStack( *this, iContainer ); 00074 } 00075 00076 delete iContainer; 00077 }
|
|
|
C++ default constructor
Definition at line 48 of file SIPExLogView.cpp. 00049 : iEngine( aEngine ) 00050 { 00051 // no implementation required 00052 }
|
|
|
First phase contruction Definition at line 35 of file SIPExLogView.cpp. References CSIPExLogView(). 00036 { 00037 CSIPExLogView* self = new ( ELeave ) CSIPExLogView( aEngine ); 00038 CleanupStack::PushL( self ); 00039 self->ConstructL(); 00040 return self; 00041 }
|
|
|
EPOC default constructor. Definition at line 59 of file SIPExLogView.cpp.
|
|
|
Return Uid Definition at line 84 of file SIPExLogView.cpp.
|
|
|
Handle Commands Definition at line 95 of file SIPExLogView.cpp. 00096 { 00097 switch ( aCommand ) 00098 { 00099 case EAknSoftkeyBack: 00100 { 00101 AppUi()->HandleCommandL( EEikCmdExit ); 00102 break; 00103 } 00104 default: 00105 { 00106 AppUi()->HandleCommandL( aCommand ); 00107 break; 00108 } 00109 } 00110 }
|
|
|
Handle size change Definition at line 116 of file SIPExLogView.cpp. References iContainer. 00117 { 00118 if ( iContainer ) 00119 { 00120 iContainer->SetRect( ClientRect() ); 00121 } 00122 }
|
|
||||||||||||
|
Handle menu initialization event.
Definition at line 129 of file SIPExLogView.cpp. 00130 { 00131 if ( aResourceId != R_SIP_EX_MENU ) 00132 { 00133 // Not this view's menu, ignore 00134 return; 00135 } 00136 00137 switch( static_cast< CSIPExAppUi* >( AppUi() )->EngineState() ) 00138 { 00139 case CSIPExEngine::EIdle: 00140 aMenuPane->SetItemDimmed( ECmdInviteForGame, ETrue ); 00141 aMenuPane->SetItemDimmed( ECmdEnableProfile, EFalse ); 00142 aMenuPane->SetItemDimmed( ECmdDisableProfile, ETrue ); 00143 aMenuPane->SetItemDimmed( ECmdSendIM, ETrue ); 00144 aMenuPane->SetItemDimmed( ECmdEndGame, ETrue ); 00145 break; 00146 case CSIPExEngine::EEnabled: 00147 aMenuPane->SetItemDimmed( ECmdInviteForGame, EFalse ); 00148 aMenuPane->SetItemDimmed( ECmdEnableProfile, ETrue ); 00149 aMenuPane->SetItemDimmed( ECmdDisableProfile, EFalse ); 00150 aMenuPane->SetItemDimmed( ECmdSendIM, EFalse ); 00151 aMenuPane->SetItemDimmed( ECmdEndGame, ETrue ); 00152 break; 00153 case CSIPExEngine::EActivating: 00154 aMenuPane->SetItemDimmed( ECmdInviteForGame, ETrue ); 00155 aMenuPane->SetItemDimmed( ECmdEnableProfile, ETrue ); 00156 aMenuPane->SetItemDimmed( ECmdDisableProfile, ETrue ); 00157 aMenuPane->SetItemDimmed( ECmdSendIM, EFalse ); 00158 aMenuPane->SetItemDimmed( ECmdEndGame, ETrue ); 00159 break; 00160 case CSIPExEngine::EActive: 00161 aMenuPane->SetItemDimmed( ECmdInviteForGame, ETrue ); 00162 aMenuPane->SetItemDimmed( ECmdEnableProfile, ETrue ); 00163 aMenuPane->SetItemDimmed( ECmdDisableProfile, ETrue ); 00164 aMenuPane->SetItemDimmed( ECmdSendIM, EFalse ); 00165 aMenuPane->SetItemDimmed( ECmdEndGame, EFalse ); 00166 break; 00167 default: 00168 break; 00169 } 00170 }
|
|
||||||||||||||||
|
From AknView, activates view Definition at line 178 of file SIPExLogView.cpp. References CSIPExLogContainer::ConstructL(), iContainer, and iEngine. 00181 { 00182 00183 // Create Container 00184 if (!iContainer) 00185 { 00186 iContainer = new (ELeave) CSIPExLogContainer( iEngine ); 00187 iContainer->SetMopParent( this ); 00188 iContainer->ConstructL( ClientRect() ); 00189 AppUi()->AddToStackL( *this, iContainer ); 00190 } 00191 }
|
|
|
From AknView, deactivates view Definition at line 199 of file SIPExLogView.cpp. References iContainer. 00200 { 00201 if ( iContainer ) 00202 { 00203 AppUi()->RemoveFromViewStack( *this, iContainer ); 00204 } 00205 00206 delete iContainer; 00207 iContainer = NULL; 00208 }
|
|
|
Return pointer to container, ownership is not transferred Definition at line 214 of file SIPExLogView.cpp. References iContainer. 00215 { 00216 return iContainer; 00217 }
|
|
© Nokia 2006 |