williamr@2: /* williamr@2: * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@2: * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: williamr@2: * Phonebook contact editor exit callback abstract interface. williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: #ifndef __MPbkEditorOkToExitCallback_H__ williamr@2: #define __MPbkEditorOkToExitCallback_H__ williamr@2: williamr@2: // CLASS DECLARATION williamr@2: williamr@2: /** williamr@2: * Phonebook contact editor exit callback interface. This callback is used in williamr@2: * conjunction with the CPbkContactEditorDlg editing dialog. The user can set williamr@2: * a callback function that is called before the dialog exit happens. williamr@2: * @see CPbkContactEditorDlg williamr@2: */ williamr@2: class MPbkEditorOkToExitCallback williamr@2: { williamr@2: public: // Interface williamr@2: williamr@2: /** williamr@2: * Returns ETrue if it is ok to exit the contact editor and williamr@2: * EFalse if not. williamr@2: * williamr@2: * @param aCommandId The exit command id. williamr@2: * @return ETrue to exit the editor. williamr@2: */ williamr@2: virtual TBool OkToExitL( williamr@2: TInt aCommandId ) = 0; williamr@2: }; williamr@2: williamr@2: williamr@2: #endif // __MPbkEditorOkToExitCallback_H__ williamr@2: williamr@2: // End of File