vtuis/videotelui/src/CVtUiNaviPane.cpp
branchRCL_3
changeset 17 392fdfb57a78
parent 8 07d1685f0cd4
--- a/vtuis/videotelui/src/CVtUiNaviPane.cpp	Wed Mar 31 21:35:06 2010 +0300
+++ b/vtuis/videotelui/src/CVtUiNaviPane.cpp	Wed Apr 14 16:00:08 2010 +0300
@@ -29,8 +29,6 @@
 #include    <aknnavide.h>
 #include    <featmgr.h>
 #include	"tVtuifeaturevariation.h"
-#include    <StringLoader.h>
-#include    <videotelui.rsg>
 
 // CONSTANTS
 
@@ -114,12 +112,15 @@
 
     // Create muted indicator.
         {
-        HBufC* mutedText = 
-            StringLoader::LoadLC( R_VIDEOTELUI_QTN_INCAL_MUTED_PANE ); 
+        CVtUiMutedControl* naviControl =
+            new ( ELeave ) CVtUiMutedControl;
+        CleanupStack::PushL( naviControl );
+        naviControl->ConstructL();
+        CleanupStack::Pop( naviControl );
 
-        iMutedIndicator = iNaviPane.CreateNavigationLabelL( *mutedText );
-        
-        CleanupStack::PopAndDestroy( mutedText );
+        iMutedIndicator =
+            CreateDecoratorL( iNaviPane, naviControl );
+        iMutedControl = naviControl;
         }
 
     User::LeaveIfError( iTimer.CreateLocal() );
@@ -260,6 +261,7 @@
     if ( iMutedIndicator != iCurrent )
         {
         iMutedIndicator->HandleResourceChange( aType );
+        iMutedControl->HandleResourceChange( aType );
         }
     }