phoneapp/phoneuiutils/src/cphonecallthememonitor.cpp
branchRCL_3
changeset 24 41a7f70b3818
parent 0 5f000ab63145
child 25 5266b1f337bd
equal deleted inserted replaced
23:40a3f856b14d 24:41a7f70b3818
    52 void CPhoneCallThemeMonitor::ConstructL()
    52 void CPhoneCallThemeMonitor::ConstructL()
    53     {
    53     {
    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     
       
    59     // Start listen changes in setting and image path
       
    60     CPhoneCenRepProxy::Instance()->NotifyChangeL(
       
    61         KCRUidThemes, 
       
    62         KThemesCallImagePath,
       
    63         this );
       
    64     
       
    65     CPhoneCenRepProxy::Instance()->NotifyChangeL(
       
    66         KCRUidThemes, 
       
    67         KThemesCallImageSetting,
       
    68         this );
       
    69     }
    58     }
    70 
    59 
    71 // -----------------------------------------------------------------------------
    60 // -----------------------------------------------------------------------------
    72 // CPhoneCallThemeMonitor::NewL
    61 // CPhoneCallThemeMonitor::NewL
    73 // Two-phased constructor.
    62 // Two-phased constructor.
   175         {
   164         {
   176         delete iCallerImageThemePath;
   165         delete iCallerImageThemePath;
   177         iCallerImageThemePath = NULL;
   166         iCallerImageThemePath = NULL;
   178         iCallerImageThemePath = HBufC::NewL( KMaxFilePathLength );
   167         iCallerImageThemePath = HBufC::NewL( KMaxFilePathLength );
   179         TPtr imagePtr ( iCallerImageThemePath->Des() );
   168         TPtr imagePtr ( iCallerImageThemePath->Des() );
   180         
   169             
   181         // Get image file path
       
   182         CPhoneCenRepProxy::Instance()->GetString(
       
   183             KCRUidThemes,
       
   184             KThemesCallImagePath,
       
   185             imagePtr );
       
   186 
       
   187         __PHONELOG1( EBasic, EPhoneUIUtils,
   170         __PHONELOG1( EBasic, EPhoneUIUtils,
   188             "CPhoneCallThemeMonitor::ReadAllL -> image path = %S", &imagePtr );
   171             "CPhoneCallThemeMonitor::ReadAllL -> image path = %S", &imagePtr );
   189         } 
   172         } 
   190     else
   173     else
   191         {
   174         {