phoneapp/phoneuiutils/src/cphonecallthememonitor.cpp
branchRCL_3
changeset 62 5266b1f337bd
parent 61 41a7f70b3818
--- a/phoneapp/phoneuiutils/src/cphonecallthememonitor.cpp	Tue Aug 31 15:14:29 2010 +0300
+++ b/phoneapp/phoneuiutils/src/cphonecallthememonitor.cpp	Wed Sep 01 12:30:10 2010 +0100
@@ -54,7 +54,18 @@
     __LOGMETHODSTARTEND( EPhoneUIUtils, "CPhoneCallThemeMonitor::ConstructL ()" );    
 
     // Get all current values
-    TRAP_IGNORE( ReadAllL() );    
+    TRAP_IGNORE( ReadAllL() );
+    
+    // Start listen changes in setting and image path
+    CPhoneCenRepProxy::Instance()->NotifyChangeL(
+        KCRUidThemes, 
+        KThemesCallImagePath,
+        this );
+    
+    CPhoneCenRepProxy::Instance()->NotifyChangeL(
+        KCRUidThemes, 
+        KThemesCallImageSetting,
+        this );
     }
 
 // -----------------------------------------------------------------------------
@@ -166,7 +177,13 @@
         iCallerImageThemePath = NULL;
         iCallerImageThemePath = HBufC::NewL( KMaxFilePathLength );
         TPtr imagePtr ( iCallerImageThemePath->Des() );
-            
+        
+        // Get image file path
+        CPhoneCenRepProxy::Instance()->GetString(
+            KCRUidThemes,
+            KThemesCallImagePath,
+            imagePtr );
+
         __PHONELOG1( EBasic, EPhoneUIUtils,
             "CPhoneCallThemeMonitor::ReadAllL -> image path = %S", &imagePtr );
         }