phoneapp/phoneuiutils/src/cphoneresourceresolverbase.cpp
changeset 72 c76a0b1755b9
parent 46 bc5a64e5bc3c
child 74 d1c62c765e48
equal deleted inserted replaced
64:6aaf0276100e 72:c76a0b1755b9
    44 // -----------------------------------------------------------------------------
    44 // -----------------------------------------------------------------------------
    45 //
    45 //
    46 EXPORT_C CPhoneResourceResolverBase::CPhoneResourceResolverBase():
    46 EXPORT_C CPhoneResourceResolverBase::CPhoneResourceResolverBase():
    47     iEnv( *CEikonEnv::Static() )
    47     iEnv( *CEikonEnv::Static() )
    48     {
    48     {
    49     if ( FeatureManager::FeatureSupported( KFeatureIdOnScreenDialer ) )
       
    50         {
       
    51         iVariationFlags |= EOnscreenDialer;
       
    52         }
       
    53 
       
    54     if ( FeatureManager::FeatureSupported( KFeatureIdTouchCallHandling ) )
       
    55         {
       
    56         iVariationFlags |= ETouchCallHandling;
       
    57         }
       
    58 
       
    59     if ( FeatureManager::FeatureSupported( KFeatureIdVideocallMenuVisibility ) )
    49     if ( FeatureManager::FeatureSupported( KFeatureIdVideocallMenuVisibility ) )
    60         {
    50         {
    61         iVariationFlags |= EVideoCallMenu;
    51         iVariationFlags |= EVideoCallMenu;
    62         }
    52         }
    63     }
    53     }
    65 // Destructor
    55 // Destructor
    66 EXPORT_C CPhoneResourceResolverBase::~CPhoneResourceResolverBase()
    56 EXPORT_C CPhoneResourceResolverBase::~CPhoneResourceResolverBase()
    67     {
    57     {
    68     // Remove resource file
    58     // Remove resource file
    69     iEnv.DeleteResourceFile( iResourceOffset );
    59     iEnv.DeleteResourceFile( iResourceOffset );
    70     if ( FeatureManager::FeatureSupported( KFeatureIdTouchCallHandling ) )
    60     iEnv.DeleteResourceFile( iCUIResourceOffset );
    71         {
    61     iEnv.DeleteResourceFile( iPTCHResourceOffset );
    72         iEnv.DeleteResourceFile( iCUIResourceOffset );
       
    73         iEnv.DeleteResourceFile( iPTCHResourceOffset );
       
    74         }
       
    75     }
    62     }
    76 
    63 
    77 // -----------------------------------------------------------------------------
    64 // -----------------------------------------------------------------------------
    78 // CPhoneResourceResolverBase::BaseConstructL
    65 // CPhoneResourceResolverBase::BaseConstructL
    79 // 
    66 // 
    89     path.Append( KPhoneResourceFile );
    76     path.Append( KPhoneResourceFile );
    90     
    77     
    91     RFs &fsSession= iEnv.FsSession();
    78     RFs &fsSession= iEnv.FsSession();
    92     BaflUtils::NearestLanguageFile( fsSession, path ); 
    79     BaflUtils::NearestLanguageFile( fsSession, path ); 
    93     iResourceOffset = iEnv.AddResourceFileL( path );
    80     iResourceOffset = iEnv.AddResourceFileL( path );
    94     
    81     // callhandlingui.rss
    95     if ( FeatureManager::FeatureSupported( KFeatureIdTouchCallHandling ) )
    82     TFileName callHandlingPath( KDriveZ );
    96         {
    83     callHandlingPath.Append( KDC_APP_RESOURCE_DIR );
    97         // callhandlingui.rss
    84     callHandlingPath.Append( KPhoneResourceFileCHUI );
    98         TFileName callHandlingPath( KDriveZ );
    85     BaflUtils::NearestLanguageFile( fsSession, callHandlingPath ); 
    99         callHandlingPath.Append( KDC_APP_RESOURCE_DIR );
    86     iCUIResourceOffset = iEnv.AddResourceFileL( callHandlingPath );
   100         callHandlingPath.Append( KPhoneResourceFileCHUI );
    87     // phoneuitouch.rss
   101         BaflUtils::NearestLanguageFile( fsSession, callHandlingPath ); 
    88     TFileName phoneUiTouchPath( KDriveZ );
   102         iCUIResourceOffset = iEnv.AddResourceFileL( callHandlingPath );
    89     phoneUiTouchPath.Append( KDC_APP_RESOURCE_DIR );
   103         // phoneuitouch.rss
    90     phoneUiTouchPath.Append( KPhoneResourceFilePHTC );
   104         TFileName phoneUiTouchPath( KDriveZ );
    91     BaflUtils::NearestLanguageFile( fsSession, phoneUiTouchPath ); 
   105         phoneUiTouchPath.Append( KDC_APP_RESOURCE_DIR );
    92     iPTCHResourceOffset = iEnv.AddResourceFileL( phoneUiTouchPath );
   106         phoneUiTouchPath.Append( KPhoneResourceFilePHTC );
    93 
   107         BaflUtils::NearestLanguageFile( fsSession, phoneUiTouchPath ); 
    94     iTouchButtonConfig.ReadConfiguration();
   108         iPTCHResourceOffset = iEnv.AddResourceFileL( phoneUiTouchPath );
       
   109 
       
   110         iTouchButtonConfig.ReadConfiguration();
       
   111         }
       
   112     
       
   113     }
    95     }
   114 
    96 
   115 EXPORT_C TBool CPhoneResourceResolverBase::IsTelephonyFeatureSupported( TInt aFeatureId ) const
    97 EXPORT_C TBool CPhoneResourceResolverBase::IsTelephonyFeatureSupported( TInt aFeatureId ) const
   116     {
    98     {
   117     return CPhoneCenRepProxy::Instance()->IsTelephonyFeatureSupported( aFeatureId );
    99     return CPhoneCenRepProxy::Instance()->IsTelephonyFeatureSupported( aFeatureId );
   125 //
   107 //
   126 EXPORT_C TInt CPhoneResourceResolverBase::ResolveResourceID(
   108 EXPORT_C TInt CPhoneResourceResolverBase::ResolveResourceID(
   127     const TInt& aResource ) const
   109     const TInt& aResource ) const
   128     {
   110     {
   129     TInt retVal( KErrNotFound );
   111     TInt retVal( KErrNotFound );
   130 
       
   131     __PHONELOG1( EBasic, EPhoneUIView, "CPhoneResourceResolverBase::ResolveResourceID - aResource(%d)",
   112     __PHONELOG1( EBasic, EPhoneUIView, "CPhoneResourceResolverBase::ResolveResourceID - aResource(%d)",
   132         aResource );
   113         aResource );
   133     switch( aResource )
   114     switch( aResource )
   134         {
   115         {
   135         case EPhoneNumberBusy:
   116         case EPhoneNumberBusy:
   143         case EPhoneIdleMenubar:
   124         case EPhoneIdleMenubar:
   144             retVal = R_PHONEUI_IDLE_MENUBAR;
   125             retVal = R_PHONEUI_IDLE_MENUBAR;
   145             break;
   126             break;
   146 
   127 
   147         case EPhoneNumberAcqMenubar:
   128         case EPhoneNumberAcqMenubar:
   148 
   129              if ( iVariationFlags & EVideoCallMenu )
   149             if ( iVariationFlags & EOnscreenDialer)
       
   150                 {
       
   151                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   152                 }
       
   153             else if ( iVariationFlags & EVideoCallMenu )
       
   154                 {
   130                 {
   155                 retVal = R_PHONEUI_NUMBERACQ_VIDEOCALL_MENUBAR;
   131                 retVal = R_PHONEUI_NUMBERACQ_VIDEOCALL_MENUBAR;
   156                 }
   132                 }
   157             else
   133             else
   158                 {
   134                 {
   159                 retVal = R_PHONEUI_NUMBERACQ_MENUBAR;
   135                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   160                 }
   136                 }
   161 
       
   162             break;
   137             break;
   163 
   138 
   164         case EPhoneNumberAcqOkMenubar:
   139         case EPhoneNumberAcqOkMenubar:
   165             if ( iVariationFlags & EVideoCallMenu )
   140             if ( iVariationFlags & EVideoCallMenu )
   166                 {
   141                 {
   179         case EPhoneCallHandlingEmergencyMenubar:
   154         case EPhoneCallHandlingEmergencyMenubar:
   180             retVal = R_PHONEUI_CALLHANDLING_EMERGENCY_MENUBAR;
   155             retVal = R_PHONEUI_CALLHANDLING_EMERGENCY_MENUBAR;
   181             break;
   156             break;
   182 
   157 
   183         case EPhoneCallHandlingEmergencyMenubarWithNumberEntry:
   158         case EPhoneCallHandlingEmergencyMenubarWithNumberEntry:
   184             if ( iVariationFlags & EOnscreenDialer )
   159             retVal = R_PHONEUIDIALER_NUMBERACQ_EMERGENCY_MENUBAR;
   185                 {
       
   186                 retVal = R_PHONEUIDIALER_NUMBERACQ_EMERGENCY_MENUBAR;
       
   187                 }
       
   188             else
       
   189                 {
       
   190                 retVal = R_PHONEUI_CALLHANDLING_EMERGENCY_MENUBAR_WITH_NUMBERENTRY;
       
   191                 }
       
   192 
       
   193             break;
   160             break;
   194 
   161 
   195         case EPhoneIncomingCallMenubar:
   162         case EPhoneIncomingCallMenubar:
   196             retVal = R_PHONEUI_INCOMINGCALL_MENUBAR;
   163             retVal = R_PHONEUI_INCOMINGCALL_MENUBAR;
   197             break;
   164             break;
   199        case EPhoneIncomingVideoCallMenubar:
   166        case EPhoneIncomingVideoCallMenubar:
   200             retVal = R_PHONEUI_INCOMINGVIDEOCALL_MENUBAR;
   167             retVal = R_PHONEUI_INCOMINGVIDEOCALL_MENUBAR;
   201             break;
   168             break;
   202 
   169 
   203         case EPhoneIncomingCallMenubarWithNumberEntry:
   170         case EPhoneIncomingCallMenubarWithNumberEntry:
   204             if ( iVariationFlags & EOnscreenDialer )
   171             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   205                 {
   172             break;
   206                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   173             
   207                 }
       
   208             else
       
   209                 {
       
   210                 retVal = R_PHONEUI_INCOMINGCALL_MENUBAR_WITH_NUMBERENTRY;
       
   211                 }
       
   212 
       
   213             break;
       
   214         case EPhoneIncomingVideoCallMenubarWithNumberEntry:
   174         case EPhoneIncomingVideoCallMenubarWithNumberEntry:
   215             if ( iVariationFlags & EOnscreenDialer )
   175             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   216                 {
       
   217                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   218                 }
       
   219             else
       
   220                 {
       
   221                 retVal = R_PHONEUI_INCOMINGVIDEOCALL_MENUBAR_WITH_NUMBERENTRY;
       
   222                 }
       
   223 
       
   224             break;
   176             break;
   225 
   177 
   226         case  EPhoneAlertingCallMenubar:
   178         case  EPhoneAlertingCallMenubar:
   227             retVal = R_PHONEUI_ALERTINGCALL_MENUBAR;
   179             retVal = R_PHONEUI_ALERTINGCALL_MENUBAR;
   228             break;
   180             break;
   229 
   181 
   230         case  EPhoneAlertingCallMenubarWithNumberEntry:
   182         case  EPhoneAlertingCallMenubarWithNumberEntry:
   231             if ( iVariationFlags & EOnscreenDialer )
   183             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   232                 {
       
   233                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   234                 }
       
   235             else
       
   236                 {
       
   237                 retVal = R_PHONEUI_ALERTINGCALL_MENUBAR_WITH_NUMBERENTRY;
       
   238                 }
       
   239 
       
   240             break;
   184             break;
   241 
   185 
   242         case EPhoneCallActiveAndHeldMenubar:
   186         case EPhoneCallActiveAndHeldMenubar:
   243             retVal = R_PHONEUI_ACTIVEANDHELD_MENUBAR;
   187             retVal = R_PHONEUI_ACTIVEANDHELD_MENUBAR;
   244             break;
   188             break;
   245 
   189 
   246         case EPhoneCallActiveAndHeldMenubarWithNumberEntry:
   190         case EPhoneCallActiveAndHeldMenubarWithNumberEntry:
   247             if ( iVariationFlags & EOnscreenDialer )
   191             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   248                 {
       
   249                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   250                 }
       
   251             else
       
   252                 {
       
   253                 retVal = R_PHONEUI_ACTIVEANDHELD_MENUBAR_WITH_NUMBERENTRY;
       
   254                 }
       
   255             break;
   192             break;
   256 
   193 
   257         case EPhoneCallWaitingMenubar:
   194         case EPhoneCallWaitingMenubar:
   258             retVal = R_PHONEUI_CALLWAITING_MENUBAR;
   195             retVal = R_PHONEUI_CALLWAITING_MENUBAR;
   259             break;
   196             break;
   260 
   197 
   261         case EPhoneCallWaitingMenubarWithNumberEntry:
   198         case EPhoneCallWaitingMenubarWithNumberEntry:
   262             if ( iVariationFlags & EOnscreenDialer )
   199             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   263                 {
       
   264                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   265                 }
       
   266             else
       
   267                 {
       
   268                 retVal = R_PHONEUI_CALLWAITING_MENUBAR_WITH_NUMBERENTRY;
       
   269                 }
       
   270 
       
   271             break;
   200             break;
   272 
   201 
   273         case EPhoneCallActiveHeldAndWaitingMenubar:
   202         case EPhoneCallActiveHeldAndWaitingMenubar:
   274             if ( !IsTelephonyFeatureSupported( KTelephonyLVFlagOptionsChange ))
   203             if ( !IsTelephonyFeatureSupported( KTelephonyLVFlagOptionsChange ))
   275                 {
   204                 {
   280                 retVal = R_PHONEUI_CALLACTIVEHELDANDWAITING_MENUBAR_VARIED;
   209                 retVal = R_PHONEUI_CALLACTIVEHELDANDWAITING_MENUBAR_VARIED;
   281                 }
   210                 }
   282             break;
   211             break;
   283 
   212 
   284         case EPhoneCallActiveHeldAndWaitingMenubarWithNumberEntry:
   213         case EPhoneCallActiveHeldAndWaitingMenubarWithNumberEntry:
   285             if ( iVariationFlags & EOnscreenDialer)
   214             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   286                 {
       
   287                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   288                 }
       
   289             else
       
   290                 {
       
   291                 retVal = R_PHONEUI_CALLACTIVEHELDANDWAITING_MENUBAR_WITH_NUMBERENTRY;
       
   292                 }
       
   293 
       
   294             break;
   215             break;
   295 
   216 
   296         case EPhoneAlertingAndHeldCallMenuBar:
   217         case EPhoneAlertingAndHeldCallMenuBar:
   297             retVal = R_PHONEUI_ALERTINGANDHELDCALL_MENUBAR;
   218             retVal = R_PHONEUI_ALERTINGANDHELDCALL_MENUBAR;
   298             break;
   219             break;
   299 
   220 
   300         case EPhoneAlertingAndHeldCallMenuBarWithNumberEntry:
   221         case EPhoneAlertingAndHeldCallMenuBarWithNumberEntry:
   301             if ( iVariationFlags & EOnscreenDialer )
   222             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   302                 {
       
   303                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   304                 }
       
   305             else
       
   306                 {
       
   307                 retVal = R_PHONEUI_ALERTINGANDHELDCALL_MENUBAR_WITH_NUMBERENTRY;
       
   308                 }
       
   309 
       
   310             break;
   223             break;
   311 
   224 
   312         case EPhoneAlertingAndConfHeldCallMenuBar:
   225         case EPhoneAlertingAndConfHeldCallMenuBar:
   313             retVal = R_PHONEUI_ALERTINGANDCONFHELDCALL_MENUBAR;
   226             retVal = R_PHONEUI_ALERTINGANDCONFHELDCALL_MENUBAR;
   314             break;
   227             break;
   315 
   228 
   316         case EPhoneAlertingAndConfHeldCallMenuBarWithNumberEntry:
   229         case EPhoneAlertingAndConfHeldCallMenuBarWithNumberEntry:
   317             if ( iVariationFlags & EOnscreenDialer )
   230             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   318                 {
       
   319                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   320                 }
       
   321             else
       
   322                 {
       
   323                 retVal = R_PHONEUI_ALERTINGANDCONFHELDCALL_MENUBAR_WITH_NUMBERENTRY;
       
   324                 }
       
   325             break;
   231             break;
   326 
   232 
   327         case EPhoneAlertingWaitingAndConfHeldCallMenuBar:
   233         case EPhoneAlertingWaitingAndConfHeldCallMenuBar:
   328             retVal = R_PHONEUI_ALERTINGWAITINGANDHELDCONFCALL_MENUBAR;
   234             retVal = R_PHONEUI_ALERTINGWAITINGANDHELDCONFCALL_MENUBAR;
   329             break;
   235             break;
   330 
   236 
   331         case EPhoneAlertingWaitingAndConfHeldCallMenuBarWithNumberEntry:
   237         case EPhoneAlertingWaitingAndConfHeldCallMenuBarWithNumberEntry:
   332             if ( iVariationFlags & EOnscreenDialer )
   238             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   333                 {
       
   334                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   335                 }
       
   336             else
       
   337                 {
       
   338                 retVal = R_PHONEUI_ALERTINGWAITINGANDHELDCONFCALL_MENUBAR_WITH_NUMBERENTRY;
       
   339                 }
       
   340             break;
   239             break;
   341 
   240 
   342         case EPhoneAlertingHeldAndWaitingCallMenuBar:
   241         case EPhoneAlertingHeldAndWaitingCallMenuBar:
   343             retVal = R_PHONEUI_ALERTINGHELDANDWAITINGCALL_MENUBAR;
   242             retVal = R_PHONEUI_ALERTINGHELDANDWAITINGCALL_MENUBAR;
   344             break;
   243             break;
   345 
   244 
   346         case EPhoneAlertingHeldAndWaitingCallMenuBarWithNumberEntry:
   245         case EPhoneAlertingHeldAndWaitingCallMenuBarWithNumberEntry:
   347             if ( iVariationFlags & EOnscreenDialer )
   246             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   348                 {
       
   349                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   350                 }
       
   351             else
       
   352                 {
       
   353                 retVal = R_PHONEUI_ALERTINGHELDANDWAITINGCALL_MENUBAR_WITH_NUMBERENTRY;
       
   354                 }
       
   355 
       
   356             break;
   247             break;
   357 
   248 
   358         case EPhoneAlertingAndWaitingCallMenuBar:
   249         case EPhoneAlertingAndWaitingCallMenuBar:
   359             retVal = R_PHONEUI_ALERTINGANDWAITINGCALL_MENUBAR;
   250             retVal = R_PHONEUI_ALERTINGANDWAITINGCALL_MENUBAR;
   360             break;
   251             break;
   364             retVal = R_PHONEUI_ALERTINGANDWAITINGCALL_MENUBAR_WITH_NUMBERENTRY;
   255             retVal = R_PHONEUI_ALERTINGANDWAITINGCALL_MENUBAR_WITH_NUMBERENTRY;
   365             }
   256             }
   366             break;
   257             break;
   367 
   258 
   368         case EPhoneConfCallMenubar:
   259         case EPhoneConfCallMenubar:
   369             if ( iVariationFlags & ETouchCallHandling )
   260            retVal = R_PHONEUI_TOUCH_CONFCALL_MENUBAR;
   370                 {
       
   371                 retVal = R_PHONEUI_TOUCH_CONFCALL_MENUBAR;
       
   372                 }
       
   373             else
       
   374                 {
       
   375                 retVal = R_PHONEUI_CONFCALL_MENUBAR;
       
   376                 }
       
   377             break;
   261             break;
   378 
   262 
   379         case EPhoneConfCallMenubarWithNumberEntry:
   263         case EPhoneConfCallMenubarWithNumberEntry:
   380             if ( iVariationFlags & EOnscreenDialer )
   264             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   381                 {
       
   382                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   383                 }
       
   384             else
       
   385                 {
       
   386                 retVal = R_PHONEUI_CONFCALL_MENUBAR_WITH_NUMBERENTRY;
       
   387                 }
       
   388 
       
   389             break;
   265             break;
   390 
   266 
   391         case EPhoneConfAndCallWaitingMenubar:
   267         case EPhoneConfAndCallWaitingMenubar:
   392             if ( iVariationFlags & ETouchCallHandling )
   268             retVal = R_PHONEUI_TOUCH_CONFANDCALLWAITING_MENUBAR;
   393                 {
       
   394                 retVal = R_PHONEUI_TOUCH_CONFANDCALLWAITING_MENUBAR;
       
   395                 }
       
   396             else
       
   397                 {
       
   398                 retVal = R_PHONEUI_CONFANDCALLWAITING_MENUBAR;
       
   399                 }
       
   400             break;
   269             break;
   401 
   270 
   402         case EPhoneConfAndCallWaitingMenubarWithNumberEntry:
   271         case EPhoneConfAndCallWaitingMenubarWithNumberEntry:
   403             if ( iVariationFlags & EOnscreenDialer )
   272             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   404                 {
       
   405                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   406                 }
       
   407             else
       
   408                 {
       
   409                 retVal = R_PHONEUI_CONFANDCALLWAITING_MENUBAR_WITH_NUMBERENTRY;
       
   410                 }
       
   411 
       
   412             break;
   273             break;
   413 
   274 
   414         case EPhoneConfAndHeldCallMenubar:
   275         case EPhoneConfAndHeldCallMenubar:
   415             if ( iVariationFlags & ETouchCallHandling )
   276             retVal = R_PHONEUI_TOUCH_ACTIVECONFANDHELD_MENUBAR;
   416                 {
       
   417                 retVal = R_PHONEUI_TOUCH_ACTIVECONFANDHELD_MENUBAR;
       
   418                 }
       
   419             else
       
   420                 {
       
   421                 retVal = R_PHONEUI_ACTIVECONFANDHELD_MENUBAR;
       
   422                 }
       
   423             break;
   277             break;
   424 
   278 
   425         case EPhoneConfAndHeldCallMenubarWithNumberEntry:
   279         case EPhoneConfAndHeldCallMenubarWithNumberEntry:
   426             if ( iVariationFlags & EOnscreenDialer )
   280             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   427                 {
       
   428                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   429                 }
       
   430             else
       
   431                 {
       
   432                 retVal = R_PHONEUI_ACTIVECONFANDHELD_MENUBAR_WITH_NUMBERENTRY;
       
   433                 }
       
   434 
       
   435             break;
   281             break;
   436 
   282 
   437         case EPhoneActiveAndHeldConfMenubar:
   283         case EPhoneActiveAndHeldConfMenubar:
   438             if ( iVariationFlags & ETouchCallHandling )
   284             retVal = R_PHONEUI_TOUCH_ACTIVEANDHELDCONF_MENUBAR;
   439                 {
       
   440                 retVal = R_PHONEUI_TOUCH_ACTIVEANDHELDCONF_MENUBAR;
       
   441                 }
       
   442             else
       
   443                 {
       
   444                 retVal = R_PHONEUI_ACTIVEANDHELDCONF_MENUBAR;
       
   445                 }
       
   446             break;
   285             break;
   447 
   286 
   448         case EPhoneActiveAndHeldConfMenubarWithNumberEntry:
   287         case EPhoneActiveAndHeldConfMenubarWithNumberEntry:
   449             if ( iVariationFlags & EOnscreenDialer )
   288             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   450                 {
       
   451                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   452                 }
       
   453             else
       
   454                 {
       
   455                 retVal = R_PHONEUI_ACTIVEANDHELDCONF_MENUBAR_WITH_NUMBERENTRY;
       
   456                 }
       
   457 
       
   458             break;
   289             break;
   459 
   290 
   460         case EPhoneConfCallActiveHeldAndWaitingMenubar:
   291         case EPhoneConfCallActiveHeldAndWaitingMenubar:
   461             if ( iVariationFlags & ETouchCallHandling )
   292             retVal = R_PHONEUI_TOUCH_CONFCALLACTIVEHELDANDWAITING_MENUBAR;
   462                 {
       
   463                 retVal = R_PHONEUI_TOUCH_CONFCALLACTIVEHELDANDWAITING_MENUBAR;
       
   464                 }
       
   465             else
       
   466                 {
       
   467                 retVal = R_PHONEUI_CONFCALLACTIVEHELDANDWAITING_MENUBAR;
       
   468                 }
       
   469             break;
   293             break;
   470 
   294 
   471         case EPhoneConfCallActiveHeldAndWaitingMenubarWithNumberEntry:
   295         case EPhoneConfCallActiveHeldAndWaitingMenubarWithNumberEntry:
   472             if ( iVariationFlags & EOnscreenDialer )
   296             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   473                 {
       
   474                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   475                 }
       
   476             else
       
   477                 {
       
   478                 retVal = R_PHONEUI_CONFCALLACTIVEHELDANDWAITING_MENUBAR_WITH_NUMBERENTRY;
       
   479                 }
       
   480 
       
   481             break;
   297             break;
   482 
   298 
   483         case EPhoneCallActiveHeldConfAndWaitingMenubar:
   299         case EPhoneCallActiveHeldConfAndWaitingMenubar:
   484             if ( iVariationFlags & ETouchCallHandling )
   300             retVal = R_PHONEUI_TOUCH_CALLACTIVEHELDCONFANDWAITING_MENUBAR;
   485                 {
       
   486                 retVal = R_PHONEUI_TOUCH_CALLACTIVEHELDCONFANDWAITING_MENUBAR;
       
   487                 }
       
   488             else
       
   489                 {
       
   490                 retVal = R_PHONEUI_CALLACTIVEHELDCONFANDWAITING_MENUBAR;
       
   491                 }
       
   492             break;
   301             break;
   493 
   302 
   494         case EPhoneCallActiveHeldConfAndWaitingMenubarWithNumberEntry:
   303         case EPhoneCallActiveHeldConfAndWaitingMenubarWithNumberEntry:
   495             if ( iVariationFlags & EOnscreenDialer )
   304             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   496                 {
       
   497                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   498                 }
       
   499             else
       
   500                 {
       
   501                 retVal = R_PHONEUI_CALLACTIVEHELDCONFANDWAITING_MENUBAR_WITH_NUMBERENTRY;
       
   502                 }
       
   503 
       
   504             break;
   305             break;
   505 
   306 
   506         case EPhoneConfCallParticipantsMenubar:
   307         case EPhoneConfCallParticipantsMenubar:
   507             retVal = R_PHONEUI_PARTICIPANT_LIST_MENUBAR;
   308             retVal = R_PHONEUI_PARTICIPANT_LIST_MENUBAR;
   508             break;
   309             break;
   510         case EPhoneConfCallParticipantsDropMenubar:
   311         case EPhoneConfCallParticipantsDropMenubar:
   511             retVal = R_PHONEUI_PARTICIPANT_LIST_DROP_MENUBAR;
   312             retVal = R_PHONEUI_PARTICIPANT_LIST_DROP_MENUBAR;
   512             break;
   313             break;
   513 
   314 
   514         case EPhoneCallHandlingMenubarWithNumberEntry:
   315         case EPhoneCallHandlingMenubarWithNumberEntry:
   515             if ( iVariationFlags & EOnscreenDialer)
   316             if ( iVariationFlags & EVideoCallMenu )
   516                 {
       
   517                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   518                 }
       
   519             else if ( iVariationFlags & EVideoCallMenu )
       
   520                 {
   317                 {
   521                 retVal = R_PHONE_INCALL_VIDEOCALL_MENUBAR_WITH_NUMBERENTRY;
   318                 retVal = R_PHONE_INCALL_VIDEOCALL_MENUBAR_WITH_NUMBERENTRY;
   522                 }
   319                 }
   523             else
   320             else
   524                 {
   321                 {
   525                 retVal = R_PHONE_INCALL_MENUBAR_WITH_NUMBERENTRY;
   322                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   526                 }
   323                 }
   527             break;
   324             break;
       
   325             
   528         case EPhoneDtmfDialerMenubar:
   326         case EPhoneDtmfDialerMenubar:
   529                 {
   327             retVal = R_PHONEUIDIALER_DTMFVIEW_MENUBAR;
   530                 retVal = R_PHONEUIDIALER_DTMFVIEW_MENUBAR;
       
   531                 }
       
   532             break;
   328             break;
   533 
   329 
   534         case EPhoneEmptyCBA:
   330         case EPhoneEmptyCBA:
   535             retVal = R_PHONEUI_EMPTY_CBA;
   331             retVal = R_PHONEUI_EMPTY_CBA;
   536             break;
   332             break;
   550         case EPhoneSendDtmfNormalEditBoxCBA:
   346         case EPhoneSendDtmfNormalEditBoxCBA:
   551             retVal = R_PHONEUI_SEND_DTMF_NORMAL_EDIT_BOX_CBA;
   347             retVal = R_PHONEUI_SEND_DTMF_NORMAL_EDIT_BOX_CBA;
   552             break;
   348             break;
   553 
   349 
   554         case EPhoneNumberAcqCBA:
   350         case EPhoneNumberAcqCBA:
   555             if ( iVariationFlags & EOnscreenDialer )
   351             if ( iVariationFlags & EVideoCallMenu )
   556                   {
       
   557                   retVal = R_PHONEUI_DIALER_CBA;
       
   558                   }
       
   559             else if ( iVariationFlags & EVideoCallMenu )
       
   560                   {
   352                   {
   561                   retVal = R_PHONEUI_NUMBERACQ_VIDEOCALL_CBA;
   353                   retVal = R_PHONEUI_NUMBERACQ_VIDEOCALL_CBA;
   562                   }
   354                   }
   563             else
   355             else
   564                  {
   356                  {
   565                  retVal = R_PHONEUI_NUMBERACQ_CBA;
   357                  retVal = R_PHONEUI_DIALER_CBA;
   566                  }
   358                  }
   567             break;
   359             break;
   568 
   360 
   569         case EPhoneInCallNumberAcqCBA:
   361         case EPhoneInCallNumberAcqCBA:
   570             retVal = R_PHONEUI_INCALL_NUMBERACQ_CBA;
   362             retVal = R_PHONEUI_INCALL_NUMBERACQ_CBA;
   573         case EPhoneSettingsUiCBA:
   365         case EPhoneSettingsUiCBA:
   574             retVal = R_PHONEUI_SETTINGSUI_CBA;
   366             retVal = R_PHONEUI_SETTINGSUI_CBA;
   575             break;
   367             break;
   576 
   368 
   577         case EPhoneCallHandlingCallSetupCBA:
   369         case EPhoneCallHandlingCallSetupCBA:
   578             if (  iVariationFlags & EOnscreenDialer )
   370             retVal = R_PHONEUI_CALLHANDLING_CALLSETUP_EMPTY_DTMFDIALER_CBA;
   579                 {
       
   580                 retVal = R_PHONEUI_CALLHANDLING_CALLSETUP_EMPTY_DTMFDIALER_CBA;
       
   581                 }
       
   582             else
       
   583                 {
       
   584                 retVal = R_PHONEUI_CALLHANDLING_CALLSETUP_EMPTY_ENDOUTGOING_CBA;
       
   585                 }
       
   586             break;
   371             break;
   587 
   372 
   588         case EPhoneCallHandlingCallSetupToIhfCBA:
   373         case EPhoneCallHandlingCallSetupToIhfCBA:
   589             if (  iVariationFlags & EOnscreenDialer )
   374             retVal = R_PHONEUI_CALLHANDLING_CALLSETUP_TOIHF_DTMFDIALER_CBA;
   590                 {
       
   591                 retVal = R_PHONEUI_CALLHANDLING_CALLSETUP_TOIHF_DTMFDIALER_CBA;
       
   592                 }
       
   593             else
       
   594                 {
       
   595                 retVal = R_PHONEUI_CALLHANDLING_CALLSETUP_TOIHF_ENDOUTGOING_CBA;
       
   596                 }
       
   597             break;
   375             break;
   598 
   376 
   599         case EPhoneCallHandlingCallSetupToHandsetCBA:
   377         case EPhoneCallHandlingCallSetupToHandsetCBA:
   600             if (  iVariationFlags & EOnscreenDialer )
   378             retVal = R_PHONEUI_CALLHANDLING_CALLSETUP_TOHANDSET_DTMFDIALER_CBA;
   601                 {
       
   602                 retVal = R_PHONEUI_CALLHANDLING_CALLSETUP_TOHANDSET_DTMFDIALER_CBA;
       
   603                 }
       
   604             else
       
   605                 {
       
   606                 retVal = R_PHONEUI_CALLHANDLING_CALLSETUP_TOHANDSET_ENDOUTGOING_CBA;
       
   607                 }
       
   608             break;
   379             break;
   609 
   380 
   610         case EPhoneCallHandlingInCallCBA:
   381         case EPhoneCallHandlingInCallCBA:
   611             if ( iVariationFlags & EOnscreenDialer )
   382             retVal = R_PHONEUI_INCALL_DIALER_CBA;
   612                 {
       
   613                 retVal = R_PHONEUI_INCALL_DIALER_CBA;
       
   614                 }
       
   615             else
       
   616                 {
       
   617                 retVal = R_PHONEUI_CALLHANDLING_INCALL_CBA;
       
   618                 }
       
   619             break;
   383             break;
   620 
   384 
   621         case EPhoneCallHandlingInCallNoIhfCBA:
   385         case EPhoneCallHandlingInCallNoIhfCBA:
   622             if ( iVariationFlags & EOnscreenDialer )
   386             retVal = R_PHONEUI_INCALL_DIALER_CBA;
   623                 {
       
   624                 retVal = R_PHONEUI_INCALL_DIALER_CBA;
       
   625                 }
       
   626             else
       
   627                 {
       
   628                 retVal = R_PHONEUI_CALLHANDLING_INCALL_NOIHF_CBA;
       
   629                 }
       
   630             break;
   387             break;
   631 
   388 
   632         case EPhoneCallHandlingInCallUnmuteCBA:
   389         case EPhoneCallHandlingInCallUnmuteCBA:
   633             retVal = R_PHONEUI_CALLHANDLING_INCALL_UNMUTE_CBA;
   390             retVal = R_PHONEUI_CALLHANDLING_INCALL_UNMUTE_CBA;
   634             break;
   391             break;
   635 
   392 
   636         case EPhoneCallHandlingInCallUnholdCBA:
   393         case EPhoneCallHandlingInCallUnholdCBA:
   637             if ( iVariationFlags & EOnscreenDialer )
   394             retVal = R_PHONEUI_INCALL_DIALER_CBA;
   638                 {
       
   639                 retVal = R_PHONEUI_INCALL_DIALER_CBA;
       
   640                 }
       
   641             else
       
   642                 {
       
   643                 retVal = R_PHONEUI_CALLHANDLING_INCALL_UNHOLD_CBA;
       
   644                 }
       
   645             break;
   395             break;
   646 
   396 
   647         case EPhoneCallHandlingInCallHandsetCBA:
   397         case EPhoneCallHandlingInCallHandsetCBA:
   648             if ( iVariationFlags & EOnscreenDialer )
   398             retVal = R_PHONEUI_CALLHANDLING_INCALL_HANDSET_CBA;
   649                 {
       
   650                 retVal = R_PHONEUI_CALLHANDLING_INCALL_HANDSET_CBA;
       
   651                 }
       
   652             break;
   399             break;
   653 
   400 
   654         case EPhoneCallHandlingInCallBtaaCBA:
   401         case EPhoneCallHandlingInCallBtaaCBA:
   655             if ( iVariationFlags & EOnscreenDialer )
   402             retVal = R_PHONEUI_CALLHANDLING_INCALL_BTAA_CBA;
   656                 {
       
   657                 retVal = R_PHONEUI_CALLHANDLING_INCALL_BTAA_CBA;
       
   658                 }
       
   659 
       
   660             break;
   403             break;
   661 
   404 
   662         case EPhoneCallHandlingEmergencyCBA:
   405         case EPhoneCallHandlingEmergencyCBA:
   663                 {
   406             retVal = R_PHONEUI_CALLHANDLING_EMERGENCY_CBA;
   664                 retVal = R_PHONEUI_CALLHANDLING_EMERGENCY_CBA;
       
   665                 }
       
   666 
       
   667             break;
   407             break;
   668 
   408 
   669         case EPhoneCallHandlingEmergencyHandsetCBA:
   409         case EPhoneCallHandlingEmergencyHandsetCBA:
   670             if ( iVariationFlags & EOnscreenDialer )
   410             retVal = R_PHONEUI_INCALL_DIALER_CBA;
   671                 {
       
   672                 retVal = R_PHONEUI_INCALL_DIALER_CBA;
       
   673                 }
       
   674             else
       
   675                 {
       
   676                 retVal = R_PHONEUI_CALLHANDLING_EMERGENCY_HANDSET_CBA;
       
   677                 }
       
   678             break;
   411             break;
   679 
   412 
   680         case EPhoneCallHandlingEmergencyNoIhfCBA:
   413         case EPhoneCallHandlingEmergencyNoIhfCBA:
   681             retVal = R_PHONEUI_CALLHANDLING_EMERGENCY_NOIHF_CBA;
   414             retVal = R_PHONEUI_CALLHANDLING_EMERGENCY_NOIHF_CBA;
   682             break;
   415             break;
   716         case EPhoneCallHandlingNewCallCallCBA:
   449         case EPhoneCallHandlingNewCallCallCBA:
   717             retVal = R_PHONEUI_CALLHANDLING_NEW_CALL_CALL_CBA;
   450             retVal = R_PHONEUI_CALLHANDLING_NEW_CALL_CALL_CBA;
   718             break;
   451             break;
   719 
   452 
   720         case EPhoneCallHandlingNewCallSwapCBA:
   453         case EPhoneCallHandlingNewCallSwapCBA:
   721             if ( iVariationFlags & EOnscreenDialer )
   454             retVal = R_PHONEUI_INCALL_DIALER_CBA;
   722                 {
       
   723                 retVal = R_PHONEUI_INCALL_DIALER_CBA;
       
   724                 }
       
   725             else
       
   726                 {
       
   727                 retVal = R_PHONEUI_CALLHANDLING_NEW_CALL_SWAP_CBA;
       
   728                 }
       
   729             break;
   455             break;
   730 
   456 
   731         case EPhoneNewCallFetchCBA:
   457         case EPhoneNewCallFetchCBA:
   732             retVal = R_PHONEUI_NEW_CALL_FETCH_CBA;
   458             retVal = R_PHONEUI_NEW_CALL_FETCH_CBA;
   733             break;
   459             break;
   839         case EPhoneVideoCallIncomingShort:
   565         case EPhoneVideoCallIncomingShort:
   840             retVal = R_PHONEUI_VIDEO_CALL_INCOMING_SHORT;
   566             retVal = R_PHONEUI_VIDEO_CALL_INCOMING_SHORT;
   841             break;
   567             break;
   842 
   568 
   843        case EPhoneVideoCall2gMenubarWithNumberEntry:
   569        case EPhoneVideoCall2gMenubarWithNumberEntry:
   844             if ( iVariationFlags & EOnscreenDialer )
   570             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   845                 {
       
   846                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   847                 }
       
   848             else
       
   849                 {
       
   850                 retVal = R_PHONEUI_VIDEOCALL_2G_MENUBAR_WITH_NUMBERENTRY;
       
   851                 }
       
   852             break;
   571             break;
   853 
   572 
   854        case EPhoneVideoCallMenubar:
   573        case EPhoneVideoCallMenubar:
   855             retVal = R_PHONEUI_VIDEOCALL_MENUBAR;
   574             retVal = R_PHONEUI_VIDEOCALL_MENUBAR;
   856             break;
   575             break;
   857 
   576 
   858        case EPhoneVideoCallMenubarWithNumberEntry:
   577        case EPhoneVideoCallMenubarWithNumberEntry:
   859             if ( iVariationFlags & EOnscreenDialer )
   578             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   860                 {
       
   861                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   862                 }
       
   863             else
       
   864                 {
       
   865                 retVal = R_PHONEUI_VIDEOCALL_MENUBAR_WITH_NUMBERENTRY;
       
   866                 }
       
   867             break;
   579             break;
   868 
   580 
   869        case EPhoneVideoCallWaitingMenubar:
   581        case EPhoneVideoCallWaitingMenubar:
   870             retVal = R_PHONEUI_VIDEOCALL_WAITING_MENUBAR;
   582             retVal = R_PHONEUI_VIDEOCALL_WAITING_MENUBAR;
   871             break;
   583             break;
   877        case EPhoneCallTwoSinglesWaitingLockMenubar:
   589        case EPhoneCallTwoSinglesWaitingLockMenubar:
   878             retVal = R_PHONEUI_TWOSINGLES_WAITING_LOCK_MENUBAR;
   590             retVal = R_PHONEUI_TWOSINGLES_WAITING_LOCK_MENUBAR;
   879             break;
   591             break;
   880 
   592 
   881        case EPhoneVideoCallWaitingMenubarWithNumberEntry:
   593        case EPhoneVideoCallWaitingMenubarWithNumberEntry:
   882             if ( iVariationFlags & EOnscreenDialer )
   594             retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
   883                 {
       
   884                 retVal = R_PHONEUIDIALER_NUMBERACQ_MENUBAR;
       
   885                 }
       
   886             else
       
   887                 {
       
   888                 retVal = R_PHONEUI_VIDEOCALL_WAITING_MENUBAR_WITH_NUMBERENTRY;
       
   889                 }
       
   890             break;
   595             break;
   891 
   596 
   892        case EPhoneEmptyBackCBA:
   597        case EPhoneEmptyBackCBA:
   893             retVal = R_PHONEUI_SOFTKEYS_EMPTY_BACK;
   598             retVal = R_PHONEUI_SOFTKEYS_EMPTY_BACK;
   894             break;
   599             break;
   924         case EPhoneEmergencyCallHeader:
   629         case EPhoneEmergencyCallHeader:
   925             retVal = R_PHONEUI_EMERGENCY_CALL_HEADER;
   630             retVal = R_PHONEUI_EMERGENCY_CALL_HEADER;
   926             break;
   631             break;
   927 
   632 
   928         case EPhoneEmergencyConnectWaitNote:
   633         case EPhoneEmergencyConnectWaitNote:
   929             if ( iVariationFlags & EOnscreenDialer )
   634             retVal = R_PHONE_EMERGENCY_NETWORK_CONNECT_WAIT_NOTE_EMPTY_DIALER;
   930                 {
       
   931                 retVal = R_PHONE_EMERGENCY_NETWORK_CONNECT_WAIT_NOTE_EMPTY_DIALER;
       
   932                 }
       
   933             else
       
   934                 {
       
   935                 retVal = R_PHONE_EMERGENCY_NETWORK_CONNECT_WAIT_NOTE;
       
   936                 }
       
   937             break;
   635             break;
   938 
   636 
   939         case EPhoneEmergencyModeInformationNote:
   637         case EPhoneEmergencyModeInformationNote:
   940             retVal = R_PHONE_EMERGENCY_MODE_INFORMATION_NOTE;
   638             retVal = R_PHONE_EMERGENCY_MODE_INFORMATION_NOTE;
   941             break;
   639             break;