phonebookui/Phonebook2/UIControls/inc/MPbk2ContactEditorUiBuilderExtension.h
branchRCL_3
changeset 20 f4a778e096c2
parent 0 e686773b3f54
equal deleted inserted replaced
19:5b6f26637ad3 20:f4a778e096c2
       
     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:  Phonebook 2 contact editor UI builder interface extension.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPBK2CONTACTEDITORUIBUILDEREXTENSION_H
       
    20 #define MPBK2CONTACTEDITORUIBUILDEREXTENSION_H
       
    21 
       
    22 // INCLUDES
       
    23 //#include <e32def.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CCoeControl;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31  * Phonebook 2 contact editor UI builder interface extension.
       
    32  */
       
    33 class MPbk2ContactEditorUiBuilderExtension
       
    34     {
       
    35     public:  // Interface
       
    36 
       
    37         /**
       
    38          * Adds custom field to editor form.
       
    39          *
       
    40          * @param aIndex                Index.
       
    41          * @param aResourceId           Id of the corresponding resource.
       
    42          * @return                      Custom control.
       
    43          */
       
    44         virtual CCoeControl* AddCustomFieldToFormL(TInt aIndex, TInt aResourceId) = 0;
       
    45 
       
    46         /**
       
    47          * Handles custom field command.
       
    48          *
       
    49          * @param aCommand Custom command id.
       
    50          * @return         ETrue if command was executed.
       
    51          */
       
    52         virtual TBool HandleCustomFieldCommandL(TInt aCommand ) = 0;
       
    53         
       
    54         /**
       
    55          * Returns an extension point for this interface or NULL.
       
    56          *
       
    57          * @param aExtensionUid     Extension UID.
       
    58          * @return  Extension point.
       
    59          */
       
    60         virtual TAny* ContactEditorUiBuilderExtensionExtension(
       
    61                 TUid /*aExtensionUid*/ )
       
    62             {
       
    63             return NULL;
       
    64             }
       
    65     };
       
    66 
       
    67 #endif // MPBK2CONTACTEDITORUIBUILDEREXTENSION_H
       
    68 
       
    69 // End of File