diff -r 000000000000 -r e686773b3f54 phonebookui/Phonebook2/UIControls/inc/MPbk2ContactEditorUiBuilderExtension.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonebookui/Phonebook2/UIControls/inc/MPbk2ContactEditorUiBuilderExtension.h Tue Feb 02 10:12:17 2010 +0200 @@ -0,0 +1,69 @@ +/* +* 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 + +// 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