phonebookui/Phonebook2/UIControls/inc/MPbk2ContactEditorUiBuilderExtension.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:29:52 +0100
branchRCL_3
changeset 20 f4a778e096c2
parent 0 e686773b3f54
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Phonebook 2 contact editor UI builder interface extension.
*
*/


#ifndef MPBK2CONTACTEDITORUIBUILDEREXTENSION_H
#define MPBK2CONTACTEDITORUIBUILDEREXTENSION_H

// INCLUDES
//#include <e32def.h>

// FORWARD DECLARATIONS
class CCoeControl;

// CLASS DECLARATION

/**
 * Phonebook 2 contact editor UI builder interface extension.
 */
class MPbk2ContactEditorUiBuilderExtension
    {
    public:  // Interface

        /**
         * Adds custom field to editor form.
         *
         * @param aIndex                Index.
         * @param aResourceId           Id of the corresponding resource.
         * @return                      Custom control.
         */
        virtual CCoeControl* AddCustomFieldToFormL(TInt aIndex, TInt aResourceId) = 0;

        /**
         * Handles custom field command.
         *
         * @param aCommand Custom command id.
         * @return         ETrue if command was executed.
         */
        virtual TBool HandleCustomFieldCommandL(TInt aCommand ) = 0;
        
        /**
         * Returns an extension point for this interface or NULL.
         *
         * @param aExtensionUid     Extension UID.
         * @return  Extension point.
         */
        virtual TAny* ContactEditorUiBuilderExtensionExtension(
                TUid /*aExtensionUid*/ )
            {
            return NULL;
            }
    };

#endif // MPBK2CONTACTEDITORUIBUILDEREXTENSION_H

// End of File