|
1 /* |
|
2 * Copyright (c) 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 "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: Implementation of TPhoneCmdParamDynMenu class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "tphonecmdparamdynmenu.h" |
|
21 #include "phoneui.pan" |
|
22 |
|
23 // ================= MEMBER FUNCTIONS ======================= |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // TPhoneCmdParamDynMenu::TPhoneCmdParamDynMenu |
|
27 // C++ default constructor can NOT contain any code, that |
|
28 // might leave. |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 EXPORT_C TPhoneCmdParamDynMenu::TPhoneCmdParamDynMenu() : |
|
32 TPhoneCommandParam(), |
|
33 iResourceId( 0 ), |
|
34 iDynMenu ( NULL ) |
|
35 { |
|
36 iParamId = EPhoneParamIdMenu; |
|
37 } |
|
38 |
|
39 // --------------------------------------------------------- |
|
40 // TPhoneCmdParamDynMenu::SetResourceId |
|
41 // Sets the menu resource id. |
|
42 // (other items were commented in a header). |
|
43 // --------------------------------------------------------- |
|
44 // |
|
45 EXPORT_C void TPhoneCmdParamDynMenu::SetResourceId( |
|
46 TInt aResourceId ) |
|
47 { |
|
48 __ASSERT_DEBUG( aResourceId, Panic( EPhoneUtilsParameterNotInitialized ) ); |
|
49 iResourceId = aResourceId; |
|
50 } |
|
51 |
|
52 // --------------------------------------------------------- |
|
53 // TPhoneCmdParamDynMenu::SetDynMenu |
|
54 // Sets the menu pointer |
|
55 // (other items were commented in a header). |
|
56 // --------------------------------------------------------- |
|
57 // |
|
58 EXPORT_C void TPhoneCmdParamDynMenu::SetDynMenu( TAny* aDynMenu ) |
|
59 { |
|
60 __ASSERT_DEBUG( aDynMenu, Panic( EPhoneUtilsParameterNotInitialized ) ); |
|
61 iDynMenu = aDynMenu; |
|
62 } |
|
63 |
|
64 // --------------------------------------------------------- |
|
65 // TPhoneCmdParamDynMenu::ResourceId |
|
66 // Returns the Menu bar resource id |
|
67 // (other items were commented in a header). |
|
68 // --------------------------------------------------------- |
|
69 // |
|
70 EXPORT_C TInt TPhoneCmdParamDynMenu::ResourceId() const |
|
71 { |
|
72 __ASSERT_DEBUG( iResourceId, Panic( EPhoneUtilsInvariant ) ); |
|
73 return iResourceId; |
|
74 } |
|
75 |
|
76 // --------------------------------------------------------- |
|
77 // TPhoneCmdParamDynMenu::DynMenu |
|
78 // Returns the current view ID |
|
79 // (other items were commented in a header). |
|
80 // --------------------------------------------------------- |
|
81 // |
|
82 EXPORT_C TAny* TPhoneCmdParamDynMenu::DynMenu() |
|
83 { |
|
84 __ASSERT_DEBUG( iDynMenu, Panic( EPhoneUtilsInvariant ) ); |
|
85 return iDynMenu; |
|
86 } |
|
87 |
|
88 // End of file |