pkiutilities/CertmanUi/SRC/CertmanuiviewPersonal.cpp
branchRCL_3
changeset 5 3b17fc5c9564
parent 0 164170e6151a
child 21 09b1ac925e3f
equal deleted inserted replaced
1:d5423fbb4f29 5:3b17fc5c9564
     1 /*
     1 /*
     2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2003-2010 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     iCurrentPosition = iContainerPersonal->iListBox->CurrentItemIndex();
   499     if( iContainerPersonal )
   500     iTopItem = iContainerPersonal->iListBox->TopItemIndex();
   500         {
   501     if ( iContainerPersonal )
   501         CEikColumnListBox* listBox = iContainerPersonal->iListBox;
   502         {
   502         if( listBox )
   503         ((CAknViewAppUi*)iAvkonAppUi)->RemoveFromViewStack(*this, iContainerPersonal);
   503             {
       
   504             iCurrentPosition = listBox->CurrentItemIndex();
       
   505             iTopItem = listBox->TopItemIndex();
       
   506             }
       
   507 
       
   508         iAvkonAppUi->RemoveFromViewStack( *this, iContainerPersonal );
       
   509 
   504         delete iContainerPersonal;
   510         delete iContainerPersonal;
   505         iContainerPersonal = NULL;
   511         iContainerPersonal = NULL;
   506         }
   512         }
   507 
   513 
   508     CERTMANUILOGGER_LEAVEFN( "CCertManUIViewPersonal::DoDeactivate" );
   514     CERTMANUILOGGER_LEAVEFN( "CCertManUIViewPersonal::DoDeactivate" );