equal
deleted
inserted
replaced
51 #include <bldvariant.hrh> // for feature definitions |
51 #include <bldvariant.hrh> // for feature definitions |
52 #include <pathconfiguration.hrh> |
52 #include <pathconfiguration.hrh> |
53 |
53 |
54 #include <hlplch.h> // HlpLauncher |
54 #include <hlplch.h> // HlpLauncher |
55 #include <AknUtils.h> |
55 #include <AknUtils.h> |
|
56 #include <telmicmutestatuspskeys.h> |
56 |
57 |
57 using namespace MusSettingsKeys; |
58 using namespace MusSettingsKeys; |
58 using namespace NMusSessionApi; |
59 using namespace NMusSessionApi; |
59 |
60 |
60 // ----------------------------------------------------------------------------- |
61 // ----------------------------------------------------------------------------- |
71 delete iVideoCodec; |
72 delete iVideoCodec; |
72 delete iDialogPrompt; |
73 delete iDialogPrompt; |
73 delete iCallbackService; |
74 delete iCallbackService; |
74 delete iMmcMonitor; |
75 delete iMmcMonitor; |
75 delete iActivityManager; |
76 delete iActivityManager; |
|
77 delete iMicMuteStatusPropertyWatch; |
76 FeatureManager::UnInitializeLib(); |
78 FeatureManager::UnInitializeLib(); |
77 MUS_LOG( "mus: [MUSUI ] <- CMusUiEventController::~CMusUiEventController" ); |
79 MUS_LOG( "mus: [MUSUI ] <- CMusUiEventController::~CMusUiEventController" ); |
78 } |
80 } |
79 |
81 |
80 |
82 |
137 KStatus ); |
139 KStatus ); |
138 |
140 |
139 iMmcMonitor = CMusUiMmcMonitor::NewL( *this ); |
141 iMmcMonitor = CMusUiMmcMonitor::NewL( *this ); |
140 |
142 |
141 iResourceHandler = CMusUiResourceHandler::NewL( iEventObserver ); |
143 iResourceHandler = CMusUiResourceHandler::NewL( iEventObserver ); |
|
144 |
|
145 //Mic mute status property |
|
146 iMicMuteStatusPropertyWatch = CMusUiPropertyWatch::NewL( |
|
147 *this, |
|
148 KPSUidTelMicrophoneMuteStatus, |
|
149 KTelMicrophoneMuteState ); |
142 |
150 |
143 // start monitoring activity |
151 // start monitoring activity |
144 iActivityManager = CMusUiActivityManager::NewL( KMusBacklightTimeOut ); |
152 iActivityManager = CMusUiActivityManager::NewL( KMusBacklightTimeOut ); |
145 iActivityManager->Reset(); |
153 iActivityManager->Reset(); |
146 |
154 |
180 { |
188 { |
181 MUS_LOG2( "mus: [MUSUI ] -> CMusUiEventController::ResourcePropertyChanged:\ |
189 MUS_LOG2( "mus: [MUSUI ] -> CMusUiEventController::ResourcePropertyChanged:\ |
182 aKey: [%u] aValue: [%d]", aKey, aValue ); |
190 aKey: [%u] aValue: [%d]", aKey, aValue ); |
183 switch( aKey ) |
191 switch( aKey ) |
184 { |
192 { |
|
193 case KTelMicrophoneMuteState: |
|
194 { |
|
195 if ( aValue == EPSTelMicMuteOff) |
|
196 { |
|
197 iSharingObserver.ReplaceToolbarCommand( EMusuiCmdToolbarUnmute, |
|
198 EMusuiCmdToolbarMute,ETrue ); |
|
199 } |
|
200 else if ( aValue == EPSTelMicMuteOn ) |
|
201 { |
|
202 iSharingObserver.ReplaceToolbarCommand( EMusuiCmdToolbarMute, |
|
203 EMusuiCmdToolbarUnmute,ETrue ); |
|
204 } |
|
205 break; |
|
206 } |
185 case KStatus: |
207 case KStatus: |
186 { |
208 { |
187 TRAP_IGNORE( |
209 TRAP_IGNORE( |
188 HandleChangedStatusL( ( TMusAvailabilityStatus ) aValue ) ); |
210 HandleChangedStatusL( ( TMusAvailabilityStatus ) aValue ) ); |
189 break; |
211 break; |