phonebookui/Phonebook2/UIControls/inc/MPbk2UIFieldArray.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 MPBK2UIFIELDARRAY_H_
       
    19 #define MPBK2UIFIELDARRAY_H_
       
    20 
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include <e32def.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class MPbk2UIField;
       
    27 class MPbk2UIFieldFactory;
       
    28 
       
    29 /**
       
    30  * Phonebook 2 UI field array interface.
       
    31  *
       
    32  * @see MPbk2UIField
       
    33  */
       
    34 class MPbk2UIFieldArray
       
    35     {
       
    36     public: // Interface
       
    37 
       
    38         /**
       
    39          * Destructor.
       
    40          */
       
    41         virtual ~MPbk2UIFieldArray()
       
    42                 {}
       
    43 
       
    44         /**
       
    45          * Returns the number of fields in the array.
       
    46          *
       
    47          * @return Number of properties in the array.
       
    48          */
       
    49         virtual TInt Count() const = 0;
       
    50 
       
    51         /**
       
    52          * Returns the field at given index.
       
    53          *
       
    54          * @param aIndex        The index of the property.
       
    55          * @return  Property at given index.
       
    56          */
       
    57         virtual MPbk2UIField& At(
       
    58                 TInt aIndex ) const = 0;
       
    59 
       
    60         /**
       
    61 		 * Returns the field at given index.
       
    62 		 *
       
    63 		 * @param aIndex        The index of the property.
       
    64 		 * @return  Property at given index.
       
    65 		 */
       
    66 		virtual const MPbk2UIFieldFactory& GetUIFieldFactory() const = 0;
       
    67 		
       
    68 		/**
       
    69 		 * Appends fields array.
       
    70 		 *
       
    71 		 * @param aUIFieldArray        Array of fields.
       
    72 		 */
       
    73 		virtual void AppendL(MPbk2UIFieldArray& aUIFieldArray) = 0;
       
    74 		
       
    75 		/**
       
    76 		 * Removes the field at given index.
       
    77 		 *
       
    78 		 */
       
    79 		virtual void RemoveAt( TInt aIndex ) = 0;
       
    80               
       
    81         /**
       
    82          * Returns an extension point for this interface or NULL.
       
    83          *
       
    84          * @param aExtensionUid     Extension UID.
       
    85          * @return  Extension point.
       
    86          */
       
    87         virtual TAny* FieldArrayExtension(
       
    88                 TUid /*aExtensionUid*/ )
       
    89             {
       
    90             return NULL;
       
    91             }
       
    92     };
       
    93 
       
    94 #endif /*MPBK2UIFIELDARRAY_H_*/
       
    95 
       
    96 // End of File