phonebookui/Phonebook2/UIControls/inc/CPbk2UIFieldArray.h
branchRCL_3
changeset 20 f4a778e096c2
parent 0 e686773b3f54
equal deleted inserted replaced
19:5b6f26637ad3 20:f4a778e096c2
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Phonebook 2 contact editor dialog UI field array.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPBK2UIFIELDARRAY_H_
       
    19 #define CPBK2UIFIELDARRAY_H_
       
    20 
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include <e32def.h>
       
    24 #include <e32base.h>
       
    25 #include "MPbk2UIField.h"
       
    26 #include "MPbk2UIFieldArray.h"
       
    27 #include "MPbk2UIFieldFactory.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class MPbk2UIFieldFactory;
       
    31 class RFs;
       
    32 
       
    33 /**
       
    34  * Phonebook 2 UI field array interface.
       
    35  *
       
    36  * @see MPbk2UIField
       
    37  */
       
    38 class CPbk2UIFieldArray : public CBase,
       
    39 					 	  public MPbk2UIFieldArray
       
    40     {
       
    41     public: 
       
    42     	~CPbk2UIFieldArray();
       
    43     	/**
       
    44 	     * Creates a new instance of this class.
       
    45 		 *
       
    46 	     * @param aResFile                  File with resources
       
    47 	     * @param aRFs                      File system session for reading
       
    48 	     *                                  a resource file.
       
    49 	     * @return  A new instance of this class.
       
    50 	     */
       
    51 	    IMPORT_C static CPbk2UIFieldArray* NewL(
       
    52 	    		const TDesC& aResFile,
       
    53 	            RFs& aRFs, 
       
    54 	            MPbk2UIFieldFactory& aFactory);
       
    55     	        
       
    56         TInt Count() const;
       
    57         MPbk2UIField& At( TInt aIndex ) const;
       
    58 		const MPbk2UIFieldFactory& GetUIFieldFactory() const;
       
    59 		void AppendL(MPbk2UIFieldArray& aUIFieldArray);
       
    60 		void RemoveAt( TInt aIndex );
       
    61 		
       
    62     private:
       
    63     	CPbk2UIFieldArray( MPbk2UIFieldFactory& aFactory );
       
    64     	void ConstructL( const TDesC& aResFile, RFs& aRFs );
       
    65 		
       
    66     private: // Data
       
    67         /// Own: Field properties
       
    68         RPointerArray<MPbk2UIField> iFieldsArr;
       
    69         MPbk2UIFieldFactory& iFactory;      
       
    70     };
       
    71 
       
    72 #endif /*CPBK2UIFIELDARRAY_H_*/
       
    73 
       
    74 // End of File