// --------------------------------------------------------- // CSecModUIViewBase::DoActivateL(...) // // --------------------------------------------------------- // void CSecModUIViewBase::DoActivateL( const TVwsViewId& aPrevViewId,TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/) { LOG_ENTERFN("CSecModUIViewBase::DoActivateL()"); if (KNullUid == iPrevViewId.iViewUid) { iPrevViewId = aPrevViewId; } SetTitlePaneL(); AddNaviPaneLabelL(); if (!iContainer) { CreateContainerL(); iContainer->SetMopParent(this); iContainer->ConstructL(ClientRect()); iContainer->ListBox().SetListBoxObserver(this); AppUi()->AddToStackL(*this, iContainer); } iContainer->ListBox().SetTopItemIndex( iTopItem ); //the iCurrentPostion can be -1, if no keystore presents. if ( iCurrentPosition >= 0 ) { iContainer->ListBox().SetCurrentItemIndex( iCurrentPosition ); } iContainer->MakeVisible(ETrue); iContainer->SetRect(ClientRect()); iContainer->ActivateL(); LOG_LEAVEFN("CSecModUIViewBase::DoActivateL()"); }
// ---------------------------------------------------------------------------- // CAknExQueryView::HandleCommandL( TInt aCommand ) // Handles the commands. // ---------------------------------------------------------------------------- // void CAknExQueryView::HandleCommandL( TInt aCommand ) { if ( !iContainer ) { return; } iContainer->SetTextToLabelL( R_AKNEXQUERY_OPERATE_MESSAGE ); switch ( aCommand ) { case EAknExQueryNoOutline: SetTitlePaneL( aCommand ); iContainer->SetTextToLabelL( R_AKNEXQUERY_TITLE_MESSAGE ); break; case EAknExQueryOutline1: SetTitlePaneL( aCommand ); iContainer->CreateLabelL( R_AKNEXQUERY_OUTLINE1 ); iContainer->ShowDataQueryL( R_AKNEXQUERY_DATA_QUERY ); break; case EAknExQueryOutline4: SetTitlePaneL( aCommand ); iContainer->CreateLabelL( R_AKNEXQUERY_OUTLINE4 ); iContainer->ShowDataQueryL( R_AKNEXQUERY_DATA_QUERY, R_AKNEXQUERY_DATA_QUERY_INITIAL_TEXT ); break; case EAknExQueryOutline8: SetTitlePaneL( aCommand ); iContainer->CreateLabelL( R_AKNEXQUERY_OUTLINE8 ); iContainer->ShowDataQueryL( R_AKNEXQUERY_DATA_QUERY ); break; case EAknExQueryOutline10: SetTitlePaneL( aCommand ); iContainer->CreateLabelL( R_AKNEXQUERY_OUTLINE10 ); iContainer->ShowConfirmationQueryL( R_AKNEXQUERY_CONFIRMATION_QUERY ); break; case EAknExQueryOutline16: SetTitlePaneL( aCommand ); iContainer->CreateLabelL( R_AKNEXQUERY_OUTLINE16 ); iContainer->ShowConfirmationQueryL( R_AKNEXQUERY_CONFIRMATION_QUERY_OTHER_SOFTKEYS ); break; case EAknExQueryOutline44: SetTitlePaneL( aCommand ); iContainer->PopoutListBoxL(); break; case EAknExQueryOutline48: SetTitlePaneL( aCommand ); iContainer->CreateLabelL( R_AKNEXQUERY_OUTLINE48 ); iContainer->ShowListQueryL( R_AKNEXQUERY_LIST_SINGLE_PANE ); break; case EAknExQueryOutline52: SetTitlePaneL( aCommand ); iContainer->CreateLabelL( R_AKNEXQUERY_OUTLINE52 ); iContainer->ShowListQueryL( R_AKNEXQUERY_LIST_SINGLE_GRAPHIC_HEADING_PANE ); break; case EAknExQueryOutline54: SetTitlePaneL( aCommand ); iContainer->CreateLabelL( R_AKNEXQUERY_OUTLINE54 ); iContainer->ShowListQueryL( R_AKNEXQUERY_MULTI_SELECTION_QUERY ); break; case EAknExQueryOutline61: SetTitlePaneL( aCommand ); iContainer->CreateLabelL( R_AKNEXQUERY_OUTLINE61 ); iContainer->ShowGlobalListQueryL(); break; case EAknExQueryCbaCmdNext: DisplayNextOutlineL(); break; case EAknSoftkeyBack: AppUi()->ProcessCommandL( EAknCmdExit ); break; default: SetTitlePaneL( EAknExQueryNoOutline ); iContainer->SetTextToLabelL( R_AKNEXQUERY_TITLE_MESSAGE ); break; } }