phoneapp/phoneuiutils/src/cphonecallthememonitor.cpp
changeset 21 92ab7f8d0eab
parent 0 5f000ab63145
child 22 6bb1b21d2484
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
    54     __LOGMETHODSTARTEND( EPhoneUIUtils, "CPhoneCallThemeMonitor::ConstructL ()" );    
    54     __LOGMETHODSTARTEND( EPhoneUIUtils, "CPhoneCallThemeMonitor::ConstructL ()" );    
    55 
    55 
    56     // Get all current values
    56     // Get all current values
    57     TRAP_IGNORE( ReadAllL() );
    57     TRAP_IGNORE( ReadAllL() );
    58     
    58     
       
    59 // <-- QT PHONE START-->    
    59     // Start listen changes in setting and image path
    60     // Start listen changes in setting and image path
    60     CPhoneCenRepProxy::Instance()->NotifyChangeL(
    61     /*CPhoneCenRepProxy::Instance()->NotifyChangeL(
    61         KCRUidThemes, 
    62         KCRUidThemes, 
    62         KThemesCallImagePath,
    63         KThemesCallImagePath,
    63         this );
    64         this );
    64     
    65     
    65     CPhoneCenRepProxy::Instance()->NotifyChangeL(
    66     CPhoneCenRepProxy::Instance()->NotifyChangeL(
    66         KCRUidThemes, 
    67         KCRUidThemes, 
    67         KThemesCallImageSetting,
    68         KThemesCallImageSetting,
    68         this );
    69         this );*/
       
    70 // <-- QT PHONE END-->        
    69     }
    71     }
    70 
    72 
    71 // -----------------------------------------------------------------------------
    73 // -----------------------------------------------------------------------------
    72 // CPhoneCallThemeMonitor::NewL
    74 // CPhoneCallThemeMonitor::NewL
    73 // Two-phased constructor.
    75 // Two-phased constructor.
   175         {
   177         {
   176         delete iCallerImageThemePath;
   178         delete iCallerImageThemePath;
   177         iCallerImageThemePath = NULL;
   179         iCallerImageThemePath = NULL;
   178         iCallerImageThemePath = HBufC::NewL( KMaxFilePathLength );
   180         iCallerImageThemePath = HBufC::NewL( KMaxFilePathLength );
   179         TPtr imagePtr ( iCallerImageThemePath->Des() );
   181         TPtr imagePtr ( iCallerImageThemePath->Des() );
   180         
   182 
       
   183 // <-- QT PHONE START-->        
   181         // Get image file path
   184         // Get image file path
   182         CPhoneCenRepProxy::Instance()->GetString(
   185         /*CPhoneCenRepProxy::Instance()->GetString(
   183             KCRUidThemes,
   186             KCRUidThemes,
   184             KThemesCallImagePath,
   187             KThemesCallImagePath,
   185             imagePtr );
   188             imagePtr );*/
   186 
   189 // <-- QT PHONE END-->
       
   190             
   187         __PHONELOG1( EBasic, EPhoneUIUtils,
   191         __PHONELOG1( EBasic, EPhoneUIUtils,
   188             "CPhoneCallThemeMonitor::ReadAllL -> image path = %S", &imagePtr );
   192             "CPhoneCallThemeMonitor::ReadAllL -> image path = %S", &imagePtr );
   189         } 
   193         } 
   190     else
   194     else
   191         {
   195         {