pkiutilities/CertmanUi/SRC/CertmanuicontainerTrust.cpp
branchRCL_3
changeset 12 a005fc61b02a
parent 10 ece4bbb094df
child 16 9971b621ef6c
equal deleted inserted replaced
10:ece4bbb094df 12:a005fc61b02a
   168       " CCertManUIContainerTrust::HandleListBoxEventL" );
   168       " CCertManUIContainerTrust::HandleListBoxEventL" );
   169 
   169 
   170     switch( aEventType )
   170     switch( aEventType )
   171         {
   171         {
   172         case EEventItemSingleClicked:
   172         case EEventItemSingleClicked:
   173             if ( !iKeeper.iWrapper->IsActive() )
   173             ChangeTrustChangeSettingSingleClickL();
   174                 {
       
   175                 iParent.ChangeTrustL();
       
   176                 }
       
   177             break;
   174             break;
   178         default:
   175         default:
   179             {
   176             {
   180             break;
   177             break;
   181             }
   178             }
   699 
   696 
   700     CERTMANUILOGGER_LEAVEFN( " CCertManUIContainerTrust::ShowTrustChangeSettingPageL" );
   697     CERTMANUILOGGER_LEAVEFN( " CCertManUIContainerTrust::ShowTrustChangeSettingPageL" );
   701     }
   698     }
   702 
   699 
   703 // ---------------------------------------------------------------------------
   700 // ---------------------------------------------------------------------------
       
   701 // CCertManUIContainerTrust::ChangeTrustChangeSettingSingleClickL()
       
   702 // ---------------------------------------------------------------------------
       
   703 //
       
   704 void CCertManUIContainerTrust::ChangeTrustChangeSettingSingleClickL()
       
   705     {
       
   706     if( !iKeeper.iWrapper->IsActive() )
       
   707         {
       
   708         TInt certIndex = iKeeper.iCurrentCACertForTrustSettings;
       
   709 
       
   710         if( certIndex >= 0 && certIndex < iKeeper.iCALabelEntries.Count() )
       
   711             {
       
   712             CCTCertInfo* entry = iKeeper.iCALabelEntries[ certIndex ]->iCAEntry;
       
   713             if( entry && entry->IsDeletable() )
       
   714                 {
       
   715                 TInt currentTrustSetting = iListBox->CurrentItemIndex();
       
   716                 if( currentTrustSetting >= 0 && currentTrustSetting < iClientUids.Count() )
       
   717                     {
       
   718                     TUid uid = iClientUids[ currentTrustSetting ];
       
   719                     ChangeTrustValueL( *entry, uid );
       
   720                     UpdateTrustListboxItemL( *entry, currentTrustSetting );
       
   721                     }
       
   722                 }
       
   723             }
       
   724         }
       
   725     }
       
   726 
       
   727 // ---------------------------------------------------------------------------
   704 // CCertManUIContainerTrust::PopupTrustChangeSettingPageL(
   728 // CCertManUIContainerTrust::PopupTrustChangeSettingPageL(
   705 //      TInt aCertificateIndex)
   729 //      TInt aCertificateIndex)
   706 // Finds out which client was focused in Trust Settings view and calls
   730 // Finds out which client was focused in Trust Settings view and calls
   707 // ShowTrustChangeSettingPageL This is accessed only by X509S
   731 // ShowTrustChangeSettingPageL This is accessed only by X509S
   708 // certificates, located in CertMan and having one or more clients
   732 // certificates, located in CertMan and having one or more clients