16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 |
19 |
20 // INCLUDE FILES |
20 // INCLUDE FILES |
21 #include "CaUiPlugin.h" // This class interface. |
21 #include "cauiplugin.h" // This class interface. |
22 #include "cauieng.h" // CaUiEngine. |
22 #include "cauieng.h" // CaUiEngine. |
23 #include <AiwCommon.hrh> // AIW constants. |
23 #include <aiwcommon.hrh> // AIW constants. |
24 #include "CaUI.hrh" // CallUI constants. |
24 #include "caui.hrh" // CallUI constants. |
25 #include <AiwMenu.h> // AIW Menu pane. |
25 #include <aiwmenu.h> // AIW Menu pane. |
26 |
26 |
27 #include <AiwServiceHandler.h> |
27 #include <aiwservicehandler.h> |
28 #include <PhCltTypes.h> // PhoneClient types. |
28 #include <phclttypes.h> // PhoneClient types. |
29 #include "cauilogger.h" // Call Ui Logger |
29 #include "cauilogger.h" // Call Ui Logger |
30 #include <StringLoader.h> |
30 #include <stringloader.h> |
31 #include <CallUI.rsg> |
31 #include <callui.rsg> |
32 #include <featmgr.h> // FeatureManager. |
|
33 |
32 |
34 // CONSTANTS |
33 // CONSTANTS |
35 |
34 |
36 // Empty filename for initialization. |
35 // Empty filename for initialization. |
37 _LIT( KCaUiNullResFile, "" ); |
36 _LIT( KCaUiNullResFile, "" ); |
38 |
37 |
39 // The library to be loaded. |
38 // The library to be loaded. |
40 _LIT( KCaUiLoadedLib, "CaUiEngine.dll" ); |
39 _LIT( KCaUiLoadedLib, "cauiengine.dll" ); |
41 |
40 |
42 |
41 |
43 |
42 |
44 // ============================ MEMBER FUNCTIONS =============================== |
43 // ============================ MEMBER FUNCTIONS =============================== |
45 |
44 |
245 csVoiceMenuItemAvailable = EFalse; |
244 csVoiceMenuItemAvailable = EFalse; |
246 csVideoMenuItemAvailable = EFalse; |
245 csVideoMenuItemAvailable = EFalse; |
247 } |
246 } |
248 } |
247 } |
249 } |
248 } |
250 |
249 |
251 if ( csVideoMenuItemAvailable && |
|
252 !FeatureManager::FeatureSupported( KFeatureIdCsVideoTelephony ) ) |
|
253 { |
|
254 csVideoMenuItemAvailable = EFalse; |
|
255 } |
|
256 |
|
257 // Add menu items |
250 // Add menu items |
258 |
251 |
259 TInt menuIndex = aIndex; |
252 TInt menuIndex = aIndex; |
260 |
253 |
261 if ( csVoiceMenuItemAvailable ) |
254 if ( csVoiceMenuItemAvailable ) |