emailcontacts/contactactionmenu/inc/mfsccontactactionmenulistobserver.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Definition of class MFscContactActionMenuListObserver.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_FSCCONTACTACTIONMENULISTOBSERVER_H
       
    20 #define M_FSCCONTACTACTIONMENULISTOBSERVER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 
       
    26 /**
       
    27  *  Contact Action Menu List observer interface
       
    28  *
       
    29  *  @since S60 3.1
       
    30  */
       
    31 class MFscContactActionMenuListObserver
       
    32     {
       
    33 
       
    34 public: // Enums
       
    35 
       
    36     /**
       
    37      * List events
       
    38      */
       
    39     enum TFscContactActionMenuListEvent
       
    40         {
       
    41         EFscMenuEventItemClicked, // Event is generaten when item gets clicked
       
    42         EFscMenuEventCloseKey, // Menu close triggering event
       
    43         EFscMenuEventExitKey, // Exit key detected event
       
    44         EFscMenuEventMenuHidden, // Menu fully hidden event
       
    45         EFscMenuLayoutChanged,
       
    46         EFscMenuEventError // Error event
       
    47         };
       
    48     
       
    49 public: // Public methods
       
    50 
       
    51     /*
       
    52      * Handle action menu list event
       
    53      *
       
    54      * @param aEvent Event code
       
    55      * @param aError Error code used with error event
       
    56      */
       
    57     virtual void HandleListEvent( TFscContactActionMenuListEvent aEvent,
       
    58                                   TInt aError = KErrNone ) = 0;
       
    59     
       
    60     /**
       
    61      * Check if selected opeartion is completed. 
       
    62      */
       
    63     virtual TBool IsOperationCompleted() = 0;
       
    64 
       
    65     };
       
    66 
       
    67 #endif // M_FSCCONTACTACTIONMENULISTOBSERVER_H
       
    68