classicui_plat/personalisation_framework_api/tsrc/src/testdompslnfwbc.cpp
changeset 21 558113899881
parent 14 3320e4e6e8bb
child 22 75713bee6484
child 33 b3425bf29f82
equal deleted inserted replaced
14:3320e4e6e8bb 21:558113899881
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 #include <testdompslnframework.rsg>
       
    19 #include <eiktxlbx.h>
       
    20 #include <barsread.h>
       
    21 
       
    22 #include "testdompslnfwbc.h"
       
    23 
       
    24 //==============================CTestPslnFWBaseContainer=======================
       
    25 //
       
    26 // ---------------------------------------------------------------------------
       
    27 // CTestPslnFWBaseContainer::CPslnFWBaseContainerExt()
       
    28 // ---------------------------------------------------------------------------
       
    29 //
       
    30 CTestPslnFWBaseContainer::CTestPslnFWBaseContainer()
       
    31     {
       
    32     iListBox = NULL; 
       
    33     }
       
    34     
       
    35 // ---------------------------------------------------------------------------
       
    36 // Symbian 2nd static constructor
       
    37 // ---------------------------------------------------------------------------
       
    38 //
       
    39 void CTestPslnFWBaseContainer::ConstructL( const TRect& aRect )
       
    40     {
       
    41     iListBox = new( ELeave ) CEikTextListBox();
       
    42     BaseConstructL( aRect, 0, R_TESTDOMPSLNFRAMEWORK_LISTBOX );
       
    43     }
       
    44     
       
    45 
       
    46 // ---------------------------------------------------------------------------
       
    47 // C++ default Destructor
       
    48 // ---------------------------------------------------------------------------
       
    49 //    
       
    50 CTestPslnFWBaseContainer::~CTestPslnFWBaseContainer()
       
    51     {
       
    52     }
       
    53     
       
    54 // ---------------------------------------------------------------------------
       
    55 // CTestPslnFWBaseContainer::ConstructListBoxL()
       
    56 // ---------------------------------------------------------------------------
       
    57 //    
       
    58 void CTestPslnFWBaseContainer::ConstructListBoxL( TInt aResLbxId )
       
    59     {
       
    60     TResourceReader rReader;
       
    61     iCoeEnv->CreateResourceReaderLC( rReader, aResLbxId );
       
    62     iListBox->ConstructFromResourceL( rReader );
       
    63     CleanupStack::PopAndDestroy(); // rReader
       
    64     }