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 * Provides the FEP's Avkon UI access methods. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 #include "AknFepUiAvkonStylusPopUpMenu.h" |
|
31 #include "AknFepUiInterfacePanic.h" |
|
32 #include "aknfepuimenus.h" |
|
33 #include <aknstyluspopupmenu.h> |
|
34 |
|
35 |
|
36 CAknFepUIAvkonStylusPopUpMenu::~CAknFepUIAvkonStylusPopUpMenu() |
|
37 { |
|
38 delete iPopupMenu; |
|
39 } |
|
40 |
|
41 void CAknFepUIAvkonStylusPopUpMenu::ConstructL(MAknFepUiInterfaceMenuObserver* aObserver, const TPoint& aPoint) |
|
42 { |
|
43 iObserver = aObserver; |
|
44 iPopupMenu = CAknStylusPopUpMenu::NewL(this, aPoint); |
|
45 } |
|
46 |
|
47 void CAknFepUIAvkonStylusPopUpMenu::AddMenuItemL(const TDesC& aItem, const TInt aCommandId) |
|
48 { |
|
49 iPopupMenu->AddMenuItemL(aItem, aCommandId); |
|
50 } |
|
51 |
|
52 void CAknFepUIAvkonStylusPopUpMenu::SetPosition(const TPoint& aPoint) |
|
53 { |
|
54 iPopupMenu->SetPosition(aPoint); |
|
55 } |
|
56 |
|
57 void CAknFepUIAvkonStylusPopUpMenu::ShowMenu() |
|
58 { |
|
59 iPopupMenu->ShowMenu(); |
|
60 } |
|
61 |
|
62 void CAknFepUIAvkonStylusPopUpMenu::DynInitMenuPaneL(TInt /*aResourceId*/,CEikMenuPane* /*aMenuPane*/) |
|
63 { |
|
64 AknFepUiInterfacePanic(EAvkonImplNotSupported); |
|
65 } |
|
66 |
|
67 void CAknFepUIAvkonStylusPopUpMenu::DynInitMenuBarL(TInt /*aResourceId*/,CEikMenuBar* /*aMenuBar*/) |
|
68 { |
|
69 AknFepUiInterfacePanic(EAvkonImplNotSupported); |
|
70 } |
|
71 |
|
72 void CAknFepUIAvkonStylusPopUpMenu::SetEmphasis(CCoeControl* /*aMenuControl*/,TBool /*aEmphasis*/) |
|
73 { |
|
74 AknFepUiInterfacePanic(EAvkonImplNotSupported); |
|
75 } |
|
76 |
|
77 void CAknFepUIAvkonStylusPopUpMenu::ProcessCommandL(TInt aCommandId) |
|
78 { |
|
79 iObserver->ProcessCommandL(aCommandId); |
|
80 } |
|
81 |
|