1187 TInt event = aMsg.ValueTObjectL<TInt> ( KMPXMessageGeneralEvent ); |
1187 TInt event = aMsg.ValueTObjectL<TInt> ( KMPXMessageGeneralEvent ); |
1188 TInt type = aMsg.ValueTObjectL<TInt> ( KMPXMessageGeneralType ); |
1188 TInt type = aMsg.ValueTObjectL<TInt> ( KMPXMessageGeneralType ); |
1189 MPX_DEBUG3("--->CMCPMusicPlayer::DoHandleGeneralMessageL(), event = %d, type = %d", event, type); |
1189 MPX_DEBUG3("--->CMCPMusicPlayer::DoHandleGeneralMessageL(), event = %d, type = %d", event, type); |
1190 |
1190 |
1191 if ( event == TMPXCollectionMessage::EBroadcastEvent |
1191 if ( event == TMPXCollectionMessage::EBroadcastEvent |
1192 && ( type == EMcMsgUSBMassStorageStart || type == EMcMsgUSBMTPStart )) |
1192 && ( type == EMcMsgUSBMassStorageStart || |
1193 { |
1193 type == EMcMsgUSBMTPStart || |
1194 iUSBOnGoing = ETrue; |
1194 type == EMcMsgRefreshStart )) |
1195 MPX_DEBUG2("CMCPMusicPlayer::DoHandleGeneralMessageL(), iUSBOnGoing changed to: %d", iUSBOnGoing ); |
1195 { |
|
1196 iBlockingOperationOngoing = ETrue; |
|
1197 MPX_DEBUG2("CMCPMusicPlayer::DoHandleGeneralMessageL(), iBlockingOperationOngoing changed to: %d", |
|
1198 iBlockingOperationOngoing ); |
1196 UpdateToolBarL( TBK::KSkeep_L_dimmed | |
1199 UpdateToolBarL( TBK::KSkeep_L_dimmed | |
1197 TBK::KPlay_dimmed | |
1200 TBK::KPlay_dimmed | |
1198 TBK::KSkeep_R_dimmed ); |
1201 TBK::KSkeep_R_dimmed ); |
1199 if ( IsOKToPublishData() ) |
1202 if ( IsOKToPublishData() ) |
1200 { |
1203 { |
1201 InstallGoToNowPlayingL( EMusicMenuMusicInfoTrigger ); |
1204 InstallGoToNowPlayingL( EMusicMenuMusicInfoTrigger ); |
1202 } |
1205 } |
1203 } |
1206 } |
1204 else if ( event == TMPXCollectionMessage::EBroadcastEvent |
1207 else if ( event == TMPXCollectionMessage::EBroadcastEvent |
1205 && ( type == EMcMsgUSBMassStorageEnd || type == EMcMsgUSBMTPEnd )) |
1208 && ( type == EMcMsgUSBMassStorageEnd || |
1206 { |
1209 type == EMcMsgUSBMTPEnd || |
1207 iUSBOnGoing = EFalse; |
1210 type == EMcMsgRefreshEnd )) |
1208 MPX_DEBUG2("CMCPMusicPlayer::DoHandleGeneralMessageL(), iUSBOnGoing changed to: %d", iUSBOnGoing ); |
1211 { |
|
1212 iBlockingOperationOngoing = EFalse; |
|
1213 MPX_DEBUG2("CMCPMusicPlayer::DoHandleGeneralMessageL(), iBlockingOperationOngoing changed to: %d", |
|
1214 iBlockingOperationOngoing ); |
1209 DoUpdatePlayerStateL( iEngine->PlayerState() ); |
1215 DoUpdatePlayerStateL( iEngine->PlayerState() ); |
1210 if ( IsOKToPublishData() ) |
1216 if ( IsOKToPublishData() ) |
1211 { |
1217 { |
1212 iMHObserver->PublishTextL( this, EMusicWidgetDefaultText, |
1218 iMHObserver->PublishTextL( this, EMusicWidgetDefaultText, |
1213 KEmpty ); |
1219 KEmpty ); |