fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/inc/AknFepUiAvkonStylusPopUpMenu.h
changeset 40 2cb9bae34d17
parent 31 f1bdd6b078d1
child 49 37f5d84451bd
equal deleted inserted replaced
31:f1bdd6b078d1 40:2cb9bae34d17
     1 /*
       
     2 * Copyright (c) 2007 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:           
       
    15 *       Avkon implementation of the FEP's UI component access
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 #ifndef AKNFEPUIAVKONSTYLUSPOPUPMENU_H
       
    30 #define AKNFEPUIAVKONSTYLUSPOPUPMENU_H
       
    31 
       
    32 #include "AknFepUiStylusPopupMenu.h"
       
    33 #include <eikmobs.h>
       
    34 
       
    35 class CAknStylusPopUpMenu;
       
    36 class MAknFepUiInterfaceMenuObserver;
       
    37 
       
    38 
       
    39 class CAknFepUIAvkonStylusPopUpMenu : public CAknFepUiInterfaceStylusPopUpMenu, public MEikMenuObserver
       
    40 	{
       
    41 public:
       
    42 	~CAknFepUIAvkonStylusPopUpMenu();
       
    43 	void ConstructL(MAknFepUiInterfaceMenuObserver* aObserver, const TPoint& aPoint);
       
    44 
       
    45 public:
       
    46     void AddMenuItemL(const TDesC& aItem, const TInt aCommandId);
       
    47     void SetPosition(const TPoint& aPoint);    
       
    48     void ShowMenu();
       
    49 
       
    50 private:	// from MEikMenuObserver
       
    51 	void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
       
    52 	void DynInitMenuBarL(TInt aResourceId,CEikMenuBar* aMenuBar);
       
    53 	void SetEmphasis(CCoeControl* aMenuControl,TBool aEmphasis);
       
    54 
       
    55 private:	// from MEikCommandObserver
       
    56 	void ProcessCommandL(TInt aCommandId);
       
    57 
       
    58 private:
       
    59 	MAknFepUiInterfaceMenuObserver* iObserver;
       
    60 	CAknStylusPopUpMenu* iPopupMenu;
       
    61 	};
       
    62 
       
    63 
       
    64 #endif