webengine/widgetengine/inc/MenuItemCallbacks.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2004 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 the License "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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __MENUITEMCALLBACKS_H
       
    21 #define __MENUITEMCALLBACKS_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "WidgetEventHandler.h"
       
    26 
       
    27 class MJSMenuItemCallbacks
       
    28 {
       
    29 public:
       
    30     virtual TInt createOptionsMenuItem( const TDesC& aText, TInt aCmdId, TInt aInternalId, void* aObj ) = 0;                
       
    31     virtual TInt addOptionsMenuItem( TInt aInternalId, TInt aParentInternalId, TBool aShow=ETrue ) = 0;
       
    32     virtual void deleteMenuItem( TInt aInternalId ) = 0;       
       
    33     virtual void setDimmed( TInt aInternalId, TBool aValue ) = 0;        
       
    34     virtual KJS::WidgetEventHandler* menuItemObserver( TInt aInternalId, TInt& aCmdId ) = 0;            
       
    35     virtual void setMenuItemObserver( TInt aInternalId, KJS::WidgetEventHandler* aOnSelectCallback ) = 0;                
       
    36 
       
    37 };
       
    38 
       
    39 #endif