pkiutilities/SecModUI/src/SecModUIContainerSignature.cpp
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Implementation of the CSecModUIContainerSignature class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "SecModUIContainerSignature.h"
       
    21 #include "SecModUIModel.h"
       
    22 #include "wim.hlp.hrh"
       
    23 #include <SecModUI.rsg>
       
    24 #include <aknlists.h>
       
    25 
       
    26 // ================= MEMBER FUNCTIONS =======================
       
    27 // ---------------------------------------------------------
       
    28 // CSecModUIContainerSignature::CSecModUIContainerSignature(
       
    29 //     CSecModUIModel& aModel)
       
    30 // Constructor
       
    31 // ---------------------------------------------------------
       
    32 //
       
    33 CSecModUIContainerSignature::CSecModUIContainerSignature(CSecModUIModel& aModel, CSecModUIViewSignature* aView )
       
    34     :CSecModUIContainerBase(aModel, KSEMOD_HLP_SIGNINGCODE_VIEW)
       
    35     {    
       
    36     iView = aView;
       
    37 	}
       
    38 
       
    39 // Destructor
       
    40 CSecModUIContainerSignature::~CSecModUIContainerSignature()
       
    41     {
       
    42     
       
    43     }
       
    44 
       
    45 // ---------------------------------------------------------
       
    46 // CSecModUIContainerSignature::ConstructListL()
       
    47 // Constructs listbox
       
    48 // ---------------------------------------------------------
       
    49 //
       
    50 void CSecModUIContainerSignature::ConstructListL()	
       
    51     {
       
    52     iListBox = new (ELeave) CAknSettingStyleListBox();
       
    53     iListBox->SetObserver( this );
       
    54     }
       
    55 
       
    56 // ---------------------------------------------------------
       
    57 // CSecModUIContainerSignature::SetupListItemsL()
       
    58 // Setups list items to listbox.
       
    59 // ---------------------------------------------------------
       
    60 //	
       
    61 void CSecModUIContainerSignature::SetupListItemsL()
       
    62     {
       
    63     iModel.LoadPinNRLabelsL(*iListBox, ETrue);
       
    64     }    
       
    65 
       
    66 // ---------------------------------------------------------
       
    67 // CSecModUIContainerSignature::HandleControlEventL()
       
    68 // 
       
    69 // ---------------------------------------------------------
       
    70 // 
       
    71 void CSecModUIContainerSignature::HandleControlEventL(CCoeControl* /*aControl*/,
       
    72                                                TCoeEvent aEventType)
       
    73     {
       
    74 	if( aEventType == EEventStateChanged )
       
    75 	    {
       
    76 	    iView->UpdateCbaL(iListBox->CurrentItemIndex());	
       
    77 	    }
       
    78     }     
       
    79        
       
    80 
       
    81 // End of File