equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2003-2005 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: Inline methods for CLiwMenuBinding class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 inline void CLiwMenuBinding::SetMenuItemIndex(TInt aMenuItemIndex) |
|
24 { |
|
25 iMenuItemIndex = aMenuItemIndex; |
|
26 } |
|
27 |
|
28 |
|
29 inline TInt CLiwMenuBinding::MenuItemIndex() const |
|
30 { |
|
31 return iMenuItemIndex; |
|
32 } |
|
33 |
|
34 |
|
35 inline TInt CLiwMenuBinding::MenuCmd() const |
|
36 { |
|
37 return iMenuCmd; |
|
38 } |
|
39 |
|
40 |
|
41 inline void CLiwMenuBinding::SetMenuCmd(TInt aMenuCmd) |
|
42 { |
|
43 iMenuCmd = aMenuCmd; |
|
44 } |
|
45 |
|
46 |
|
47 inline TInt CLiwMenuBinding::MenuId() |
|
48 { |
|
49 return iMenuId; |
|
50 } |
|
51 |
|
52 |
|
53 inline void CLiwMenuBinding::SetMenuId(TInt aId) |
|
54 { |
|
55 iMenuId = aId; |
|
56 } |
|
57 |
|
58 |
|
59 inline CLiwServiceIfMenu* CLiwMenuBinding::MenuProvider(TInt aIndex) |
|
60 { |
|
61 if (aIndex >= 0 && aIndex < iProviders.Count()) |
|
62 { |
|
63 return reinterpret_cast<CLiwServiceIfMenu*>(iProviders[aIndex]); |
|
64 } |
|
65 return NULL; |
|
66 } |
|
67 |
|
68 |
|
69 inline void CLiwMenuBinding::SetMenuPane(CLiwMenuPane* aPane) |
|
70 { |
|
71 iMenuPane = aPane; |
|
72 } |
|
73 |
|
74 |
|
75 inline CLiwMenuPane* CLiwMenuBinding::MenuPane() |
|
76 { |
|
77 return iMenuPane; |
|
78 } |
|
79 |
|
80 |
|
81 // End of file |
|
82 |
|