diff -r 000000000000 -r 8466d47a6819 emailcontacts/contactactionmenu/inc/mfsccontactactionmenulistobserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emailcontacts/contactactionmenu/inc/mfsccontactactionmenulistobserver.h Thu Dec 17 08:39:21 2009 +0200 @@ -0,0 +1,68 @@ +/* +* Copyright (c) 2008 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: Definition of class MFscContactActionMenuListObserver. +* +*/ + + +#ifndef M_FSCCONTACTACTIONMENULISTOBSERVER_H +#define M_FSCCONTACTACTIONMENULISTOBSERVER_H + +#include + +// FORWARD DECLARATIONS + +/** + * Contact Action Menu List observer interface + * + * @since S60 3.1 + */ +class MFscContactActionMenuListObserver + { + +public: // Enums + + /** + * List events + */ + enum TFscContactActionMenuListEvent + { + EFscMenuEventItemClicked, // Event is generaten when item gets clicked + EFscMenuEventCloseKey, // Menu close triggering event + EFscMenuEventExitKey, // Exit key detected event + EFscMenuEventMenuHidden, // Menu fully hidden event + EFscMenuLayoutChanged, + EFscMenuEventError // Error event + }; + +public: // Public methods + + /* + * Handle action menu list event + * + * @param aEvent Event code + * @param aError Error code used with error event + */ + virtual void HandleListEvent( TFscContactActionMenuListEvent aEvent, + TInt aError = KErrNone ) = 0; + + /** + * Check if selected opeartion is completed. + */ + virtual TBool IsOperationCompleted() = 0; + + }; + +#endif // M_FSCCONTACTACTIONMENULISTOBSERVER_H +