phoneapp/phoneuiutils/src/cphoneresourceresolverbase.cpp
branchRCL_3
changeset 26 8baf28733c3d
parent 25 5266b1f337bd
equal deleted inserted replaced
25:5266b1f337bd 26:8baf28733c3d
    20 #include <bautils.h>
    20 #include <bautils.h>
    21 #include <eikenv.h>
    21 #include <eikenv.h>
    22 #include <avkon.rsg>
    22 #include <avkon.rsg>
    23 #include <featmgr.h>
    23 #include <featmgr.h>
    24 #include <telephonyvariant.hrh>
    24 #include <telephonyvariant.hrh>
       
    25 #include <coreapplicationuisdomainpskeys.h>
    25 
    26 
    26 #include "phoneui.pan"
    27 #include "phoneui.pan"
    27 #include "cphoneresourceresolverbase.h"
    28 #include "cphoneresourceresolverbase.h"
    28 #include "cphonemainresourceresolver.h"
    29 #include "cphonemainresourceresolver.h"
    29 #include "phoneconstants.h"
    30 #include "phoneconstants.h"
    30 #include "phonerssbase.h"
    31 #include "phonerssbase.h"
    31 #include "phonelogger.h"
    32 #include "phonelogger.h"
    32 #include "cphonecenrepproxy.h"
    33 #include "cphonecenrepproxy.h"
       
    34 #include "cphonepubsubproxy.h"
    33 
    35 
    34 #include <phoneui.rsg>
    36 #include <phoneui.rsg>
    35 #include <callhandlingui.rsg>
    37 #include <callhandlingui.rsg>
    36 #include <phoneuitouch.rsg>
    38 #include <phoneuitouch.rsg>
    37 #include "tphonetouchbuttonconfig.h"
    39 #include "tphonetouchbuttonconfig.h"
    60         }
    62         }
    61 
    63 
    62     if ( FeatureManager::FeatureSupported( KFeatureIdVideocallMenuVisibility ) )
    64     if ( FeatureManager::FeatureSupported( KFeatureIdVideocallMenuVisibility ) )
    63         {
    65         {
    64         iVariationFlags |= EVideoCallMenu;
    66         iVariationFlags |= EVideoCallMenu;
       
    67         }
       
    68 
       
    69     if ( FeatureManager::FeatureSupported( KFeatureIdFfEntryPointForVideoShare ) )
       
    70         {
       
    71         iVariationFlags |= EVideoShareEntryPoint;
    65         }
    72         }
    66     }
    73     }
    67 
    74 
    68 // Destructor
    75 // Destructor
    69 EXPORT_C CPhoneResourceResolverBase::~CPhoneResourceResolverBase()
    76 EXPORT_C CPhoneResourceResolverBase::~CPhoneResourceResolverBase()
   117 
   124 
   118 EXPORT_C TBool CPhoneResourceResolverBase::IsTelephonyFeatureSupported( TInt aFeatureId ) const
   125 EXPORT_C TBool CPhoneResourceResolverBase::IsTelephonyFeatureSupported( TInt aFeatureId ) const
   119     {
   126     {
   120     return CPhoneCenRepProxy::Instance()->IsTelephonyFeatureSupported( aFeatureId );
   127     return CPhoneCenRepProxy::Instance()->IsTelephonyFeatureSupported( aFeatureId );
   121     }
   128     }
       
   129 
       
   130 TBool CPhoneResourceResolverBase::ShowVideoShareButton() const
       
   131     {
       
   132     return ( iVariationFlags & EVideoShareEntryPoint ) &&
       
   133            CPhonePubSubProxy::Instance()->Value
       
   134               ( KPSUidCoreApplicationUIs, KCoreAppUIsVideoSharingIndicator )
       
   135                  == ECoreAppUIsVideoSharingIndicatorOn;
       
   136     }
       
   137 
   122 // -----------------------------------------------------------------------------
   138 // -----------------------------------------------------------------------------
   123 // CPhoneResourceResolverBase::ResolveResourceID
   139 // CPhoneResourceResolverBase::ResolveResourceID
   124 // Empty implementation, because there isn't common phoneapp.rss file.
   140 // Empty implementation, because there isn't common phoneapp.rss file.
   125 // Panics, if called.
   141 // Panics, if called.
   126 // (other items were commented in a header).
   142 // (other items were commented in a header).
  1361         case EPhoneNoteNoService:
  1377         case EPhoneNoteNoService:
  1362             retVal = R_PHONE_ERROR_NO_SERVICE;
  1378             retVal = R_PHONE_ERROR_NO_SERVICE;
  1363             break;
  1379             break;
  1364 
  1380 
  1365         case EPhoneIncallButtons:
  1381         case EPhoneIncallButtons:
  1366             retVal = R_PHONEUI_INCALL_BUTTONS;
  1382             if ( ShowVideoShareButton() )
       
  1383                 {
       
  1384                 retVal = R_PHONEUI_INCALL_VIDEO_SHARE_BUTTONS;
       
  1385                 }
       
  1386             else
       
  1387                 {
       
  1388                 retVal = R_PHONEUI_INCALL_BUTTONS;
       
  1389                 }
  1367             break;
  1390             break;
  1368 
  1391 
  1369         case EPhoneIncallVideoShareButtons:
  1392         case EPhoneIncallVideoShareButtons:
  1370             retVal = R_PHONEUI_INCALL_VIDEO_SHARE_BUTTONS;
  1393             retVal = R_PHONEUI_INCALL_VIDEO_SHARE_BUTTONS;
  1371             break;
  1394             break;