phonebookui/Phonebook2/Presentation/src/Pbk2PresentationUtils.cpp
branchRCL_3
changeset 85 38bb213f60ba
parent 74 6b5524b4f673
equal deleted inserted replaced
74:6b5524b4f673 85:38bb213f60ba
    34 
    34 
    35 // default presentation resource file
    35 // default presentation resource file
    36 _LIT( KPbk2PresentationResFile, "Pbk2Presentation.rsc" );
    36 _LIT( KPbk2PresentationResFile, "Pbk2Presentation.rsc" );
    37 // Chinese presentation resource file 
    37 // Chinese presentation resource file 
    38 _LIT( KPbk2PresentationResFileChinese, "Pbk2PresentationChinese.rsc" );
    38 _LIT( KPbk2PresentationResFileChinese, "Pbk2PresentationChinese.rsc" );
    39 // UnSync Chinese presentation resource file 
       
    40 _LIT( KPbk2PresentationResFileChineseUnSync, "Pbk2PresentationChineseUnSync.rsc" );
       
    41 
    39 
    42 // ================= LOCAL FUNCTIONS =======================
    40 // ================= LOCAL FUNCTIONS =======================
    43 #ifdef _DEBUG
    41 #ifdef _DEBUG
    44 void Panic(TPanicCode aReason)
    42 void Panic(TPanicCode aReason)
    45     {
    43     {
   222 //
   220 //
   223 EXPORT_C const TDesC& Pbk2PresentationUtils::PresentationResourceFile()
   221 EXPORT_C const TDesC& Pbk2PresentationUtils::PresentationResourceFile()
   224     {
   222     {
   225     if (FeatureManager::FeatureSupported(KFeatureIdChinese))
   223     if (FeatureManager::FeatureSupported(KFeatureIdChinese))
   226         {
   224         {
   227        if ( FeatureManager::FeatureSupported(KFeatureIdFfTdUnSyncabPbfieldsInd) )
   225         return KPbk2PresentationResFileChinese;
   228             {
       
   229             // The resource which can't be synchronized with a server.
       
   230             return KPbk2PresentationResFileChineseUnSync;
       
   231             }
       
   232         else
       
   233             {
       
   234             return KPbk2PresentationResFileChinese;
       
   235             }
       
   236         }
   226         }
   237     return KPbk2PresentationResFile;
   227     return KPbk2PresentationResFile;
   238     }    
   228     }    
   239 
   229 
   240 
   230