phoneclientserver/CallUI/Src/CaUiPlugin/CaUiPlugin.cpp
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
    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.
    32 
    33 
    33 // CONSTANTS
    34 // CONSTANTS
    34 
    35 
    35 // Empty filename for initialization.
    36 // Empty filename for initialization.
    36 _LIT( KCaUiNullResFile, "" );
    37 _LIT( KCaUiNullResFile, "" );
    37 
    38 
    38 // The library to be loaded.
    39 // The library to be loaded.
    39 _LIT( KCaUiLoadedLib, "cauiengine.dll" );
    40 _LIT( KCaUiLoadedLib, "CaUiEngine.dll" );
    40 
    41 
    41 
    42 
    42 
    43 
    43 // ============================ MEMBER FUNCTIONS ===============================
    44 // ============================ MEMBER FUNCTIONS ===============================
    44 
    45 
   244                 csVoiceMenuItemAvailable = EFalse;
   245                 csVoiceMenuItemAvailable = EFalse;
   245                 csVideoMenuItemAvailable = EFalse;
   246                 csVideoMenuItemAvailable = EFalse;
   246                 }
   247                 }
   247             }
   248             }
   248         }
   249         }
   249 
   250     
       
   251     if ( csVideoMenuItemAvailable && 
       
   252     		!FeatureManager::FeatureSupported( KFeatureIdCsVideoTelephony ) )
       
   253     	{
       
   254     	csVideoMenuItemAvailable = EFalse;
       
   255     	}
       
   256     
   250     // Add menu items
   257     // Add menu items
   251 
   258 
   252     TInt menuIndex = aIndex;
   259     TInt menuIndex = aIndex;
   253 
   260 
   254     if ( csVoiceMenuItemAvailable )
   261     if ( csVoiceMenuItemAvailable )