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

Definition at line 33 of file aknexnoteview.h.
Public Member Functions |
|
| CAknExNoteView () | |
| virtual | ~CAknExNoteView () |
| void | ConstructL () |
| void | DisplayNextOutlineL () |
| TUid | Id () const |
| void | HandleCommandL (TInt aCommand) |
| void | HandleViewRectChange () |
Private Member Functions |
|
| void | IndicateTitlePaneTextL (TInt aCommand) |
| void | DoActivateL (const TVwsViewId &aPrevViewId, TUid aCustomMessageId, const TDesC8 &aCustomMessage) |
| void | DoDeactivate () |
Private Attributes |
|
| CAknExNoteContainer * | iContainer |
| TInt | iCurrentOutline |
|
|
CAknExNoteView C++ default constructor. Definition at line 39 of file aknexnoteview.cpp. 00040 : iContainer( NULL ),iCurrentOutline( EAknExNoteCmdEmptyOutline ) 00041 { 00042 // No implementation required 00043 }
|
|
|
~CAknExNoteView Virtual Destructor. Definition at line 50 of file aknexnoteview.cpp. References iContainer. 00051 { 00052 delete iContainer; 00053 }
|
|
|
ConstructL 2nd phase constructor. Definition at line 60 of file aknexnoteview.cpp.
|
|
|
DisplayNextOutlineL Display next outline. Definition at line 70 of file aknexnoteview.cpp. References HandleCommandL(), and iCurrentOutline. Referenced by HandleCommandL(), and CAknExNoteContainer::OfferKeyEventL(). 00071 { 00072 switch ( iCurrentOutline ) 00073 { 00074 case EAknExNoteCmdEmptyOutline: 00075 HandleCommandL( EAknExNoteCmdOutline01 ); 00076 break; 00077 00078 case EAknExNoteCmdOutline01: 00079 HandleCommandL( EAknExNoteCmdOutline05 ); 00080 break; 00081 00082 case EAknExNoteCmdOutline05: 00083 HandleCommandL( EAknExNoteCmdOutline08 ); 00084 break; 00085 00086 case EAknExNoteCmdOutline08: 00087 HandleCommandL( EAknExNoteCmdOutline35 ); 00088 break; 00089 00090 case EAknExNoteCmdOutline35: 00091 HandleCommandL( EAknExNoteCmdOutline53 ); 00092 break; 00093 00094 case EAknExNoteCmdOutline53: 00095 default: 00096 HandleCommandL( EAknExNoteCmdEmptyOutline ); 00097 break; 00098 } 00099 }
|
|
|
Id Returns the ID of view.
Definition at line 106 of file aknexnoteview.cpp.
|
|
|
HandleCommandL. handles the commands. if the command is command which is require to display outline-screen, the command is reported to container class.
Definition at line 116 of file aknexnoteview.cpp. References DisplayNextOutlineL(), iContainer, iCurrentOutline, IndicateTitlePaneTextL(), CAknExNoteContainer::SetTextToLabelL(), CAknExNoteContainer::ShowDynamicNumberNoteL(), CAknExNoteContainer::ShowGeneralNoteL(), CAknExNoteContainer::ShowProgressNoteUnderSingleProcessL(), CAknExNoteContainer::ShowShowNoteL(), and CAknExNoteContainer::ShowWaitNoteL(). Referenced by DisplayNextOutlineL(). 00117 { 00118 switch ( aCommand ) 00119 { 00120 // Soft Back 00121 case EAknSoftkeyBack: 00122 AppUi()->ProcessCommandL( EAknCmdExit ); 00123 break; 00124 00125 // Exit 00126 case EAknCmdExit: 00127 AppUi()->HandleCommandL( EAknCmdExit ); 00128 break; 00129 00130 case EAknExNoteCmdEmptyOutline: 00131 iCurrentOutline = aCommand; 00132 iContainer->SetTextToLabelL( R_AKNEXNOTE_TEXT_LABEL_TITLE ); 00133 IndicateTitlePaneTextL( aCommand ); 00134 break; 00135 00136 // Error Note 00137 case EAknExNoteCmdOutline01: 00138 iCurrentOutline = aCommand; 00139 iContainer->SetTextToLabelL( R_AKNEXNOTE_TEXT_LABEL_OPERATION ); 00140 IndicateTitlePaneTextL( aCommand ); 00141 iContainer->ShowGeneralNoteL( R_AKNEXNOTE_ERROR_NOTE, 00142 CAknNoteDialog::ELongTimeout, 00143 CAknNoteDialog::EErrorTone ); 00144 break; 00145 00146 // Wait Note 00147 case EAknExNoteCmdOutline05: 00148 iCurrentOutline = aCommand; 00149 iContainer->SetTextToLabelL( R_AKNEXNOTE_TEXT_LABEL_OPERATION ); 00150 IndicateTitlePaneTextL( aCommand ); 00151 iContainer->ShowWaitNoteL(R_AKNEXNOTE_WAIT_NOTE_SOFTKEY_CANCEL, 00152 EAknExNoteCtrlIdWaitNote); 00153 break; 00154 00155 // Dynamic text 00156 case EAknExNoteCmdOutline08: 00157 iCurrentOutline = aCommand; 00158 iContainer->SetTextToLabelL( R_AKNEXNOTE_TEXT_LABEL_OPERATION ); 00159 IndicateTitlePaneTextL( aCommand ); 00160 iContainer->ShowDynamicNumberNoteL(); 00161 break; 00162 00163 // Progress note 00164 case EAknExNoteCmdOutline35: 00165 iCurrentOutline = aCommand; 00166 iContainer->SetTextToLabelL( R_AKNEXNOTE_TEXT_LABEL_OPERATION ); 00167 IndicateTitlePaneTextL( aCommand ); 00168 iContainer->ShowProgressNoteUnderSingleProcessL( 00169 R_AKNEXNOTE_PROGRESS_NOTE, 00170 EAknExNoteCtrlIdProgressNote ); 00171 break; 00172 00173 // EAknGlobalConfirmationNote 00174 case EAknExNoteCmdOutline53: 00175 iCurrentOutline = aCommand; 00176 iContainer->SetTextToLabelL( R_AKNEXNOTE_TEXT_LABEL_OPERATION ); 00177 IndicateTitlePaneTextL( aCommand ); 00178 iContainer->ShowShowNoteL( 00179 EAknGlobalConfirmationNote, 00180 R_AKNEXNOTE_SHOWNOTEL_GLOBALCONFIRMATIONNOTE_TEXT ); 00181 break; 00182 00183 // Next one 00184 case EAknExNoteCbaCmdNext: 00185 DisplayNextOutlineL(); 00186 break; 00187 default: 00188 break; 00189 } 00190 }
|
|
|
From CAknView, HandleViewRectChange. Handles the size of the clientrect. Definition at line 260 of file aknexnoteview.cpp. References iContainer. 00261 { 00262 if ( iContainer ) 00263 { 00264 iContainer->SetRect( ClientRect() ); 00265 } 00266 }
|
|
|
IndicateTitlePaneTextL Set title text to status-pane
Definition at line 197 of file aknexnoteview.cpp. Referenced by HandleCommandL(). 00198 { 00199 00200 TBool useDefaultText( EFalse ); 00201 TInt resourceId( KAknExNoteInitializeResourceId ); 00202 00203 switch ( aCommand ) 00204 { 00205 case EAknExNoteCmdEmptyOutline: 00206 useDefaultText = ETrue; 00207 break; 00208 00209 case EAknExNoteCmdOutline01: 00210 resourceId = R_AKNEXNOTE_TEXT_STATUS_PANE_TITLE01; 00211 break; 00212 00213 case EAknExNoteCmdOutline05: 00214 resourceId = R_AKNEXNOTE_TEXT_STATUS_PANE_TITLE05; 00215 break; 00216 00217 case EAknExNoteCmdOutline08: 00218 resourceId = R_AKNEXNOTE_TEXT_STATUS_PANE_TITLE08; 00219 break; 00220 00221 case EAknExNoteCmdOutline35: 00222 resourceId = R_AKNEXNOTE_TEXT_STATUS_PANE_TITLE35; 00223 break; 00224 00225 case EAknExNoteCmdOutline53: 00226 resourceId = R_AKNEXNOTE_TEXT_STATUS_PANE_TITLE53; 00227 break; 00228 00229 default: 00230 break; 00231 } 00232 00233 CAknTitlePane* titlePane = static_cast<CAknTitlePane*> 00234 ( StatusPane()->ControlL( TUid::Uid 00235 ( EEikStatusPaneUidTitle ) ) ); 00236 00237 if ( useDefaultText ) 00238 { 00239 titlePane->SetTextToDefaultL(); 00240 } 00241 else 00242 { 00243 00244 //Allocate TBuf with constant length. 00245 TBuf<KAknExNoteTitleBufLength> titleText( NULL ); 00246 00247 // Reads a resource into a descriptor. 00248 iEikonEnv->ReadResource( titleText, resourceId ); 00249 00250 // Set the text for TitlePane 00251 titlePane->SetTextL( titleText ); 00252 } 00253 }
|
|
||||||||||||||||
|
DoActivateL. Creates the Container class object.
Definition at line 273 of file aknexnoteview.cpp. References CAknExNoteContainer::ConstructL(), and iContainer. 00276 { 00277 00278 // Creates container object 00279 if ( !iContainer ) 00280 { 00281 iContainer = new ( ELeave ) CAknExNoteContainer( this ); 00282 iContainer->ConstructL( ClientRect() ); 00283 iContainer->SetMopParent( this ); 00284 } 00285 00286 // Adds container to view control stack. 00287 AppUi()->AddToStackL( *this, iContainer ); 00288 iContainer->MakeVisible( ETrue ); 00289 }
|
|
|
DoDeactivate. Deletes the Container class object. Definition at line 296 of file aknexnoteview.cpp. References iContainer. 00297 { 00298 // Deletes the container class object. 00299 if ( iContainer ) 00300 { 00301 iContainer->MakeVisible( EFalse ); 00302 // Removes container from view control stack. 00303 AppUi()->RemoveFromStack( iContainer ); 00304 } 00305 }
|
|
|
iContainer Owned by CAknExNoteView object. Definition at line 124 of file aknexnoteview.h. Referenced by DoActivateL(), DoDeactivate(), HandleCommandL(), HandleViewRectChange(), and ~CAknExNoteView(). |
|
|
Integer for Current outline Definition at line 127 of file aknexnoteview.h. Referenced by DisplayNextOutlineL(), and HandleCommandL(). |
|
© Nokia 2009 |