pkiutilities/CertmanUi/SRC/CertmanuiviewPersonal.cpp
branchRCL_3
changeset 21 09b1ac925e3f
parent 5 3b17fc5c9564
child 22 03674e5abf46
equal deleted inserted replaced
20:63339781d179 21:09b1ac925e3f
     1 /*
     1 /*
     2 * Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   494 //
   494 //
   495 void CCertManUIViewPersonal::DoDeactivate()
   495 void CCertManUIViewPersonal::DoDeactivate()
   496     {
   496     {
   497     CERTMANUILOGGER_ENTERFN( "CCertManUIViewPersonal::DoDeactivate" );
   497     CERTMANUILOGGER_ENTERFN( "CCertManUIViewPersonal::DoDeactivate" );
   498 
   498 
   499     if( iContainerPersonal )
   499     iCurrentPosition = iContainerPersonal->iListBox->CurrentItemIndex();
   500         {
   500     iTopItem = iContainerPersonal->iListBox->TopItemIndex();
   501         CEikColumnListBox* listBox = iContainerPersonal->iListBox;
   501     if ( iContainerPersonal )
   502         if( listBox )
   502         {
   503             {
   503         ((CAknViewAppUi*)iAvkonAppUi)->RemoveFromViewStack(*this, iContainerPersonal);
   504             iCurrentPosition = listBox->CurrentItemIndex();
       
   505             iTopItem = listBox->TopItemIndex();
       
   506             }
       
   507 
       
   508         iAvkonAppUi->RemoveFromViewStack( *this, iContainerPersonal );
       
   509 
       
   510         delete iContainerPersonal;
   504         delete iContainerPersonal;
   511         iContainerPersonal = NULL;
   505         iContainerPersonal = NULL;
   512         }
   506         }
   513 
   507 
   514     CERTMANUILOGGER_LEAVEFN( "CCertManUIViewPersonal::DoDeactivate" );
   508     CERTMANUILOGGER_LEAVEFN( "CCertManUIViewPersonal::DoDeactivate" );