phonebookui/Phonebook2/inc/MPbk2UIFieldFactory.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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 field factory.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPBK2UIFIELDFACTORY_H_
       
    19 #define MPBK2UIFIELDFACTORY_H_
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include <e32def.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class MPbk2ContactEditorUIField;
       
    26 class MPbk2UIField;
       
    27 class MPbk2ContactEditorUiBuilder;
       
    28 class CPbk2IconInfoContainer;
       
    29 
       
    30 /**
       
    31  * Phonebook 2 UI field factory interface.
       
    32  *
       
    33  */
       
    34 class MPbk2UIFieldFactory
       
    35     {
       
    36     public: // Interface
       
    37 
       
    38     	/**
       
    39          * Creates a new contact editor field.
       
    40          *
       
    41          * @param aField             Phonebook2 UI field.
       
    42          * @param aUiBuilder         Builder for adding the field into dialog.
       
    43          * @param aIconInfoContainer An icon container for setting field icon.
       
    44          * @param aCustomPosition    Needed only for custom fields to indicate desired
       
    45          *                           postion in form. For other fields can be NULL.
       
    46          * @param aCustomText	     If not empty, text will be added into field.                           
       
    47          * @return  A new contact editor UI field.
       
    48          */
       
    49         virtual MPbk2ContactEditorUIField* CreateFieldLC( 
       
    50         		MPbk2UIField& aField,
       
    51         		TInt aCustomPosition, 
       
    52                 MPbk2ContactEditorUiBuilder& aUiBuilder,
       
    53                 const TDesC& aCustomText, CPbk2IconInfoContainer& aIconInfoContainer ) = 0;
       
    54 
       
    55         
       
    56     };
       
    57 
       
    58 #endif /*MPBK2UIFIELDFACTORY_H_*/
       
    59 
       
    60 // End of File