166 |
166 |
167 LC_QDEBUG( "livecomms [UI] <- LcUiEnginePrivate::zoom()" ) |
167 LC_QDEBUG( "livecomms [UI] <- LcUiEnginePrivate::zoom()" ) |
168 } |
168 } |
169 |
169 |
170 // ----------------------------------------------------------------------------- |
170 // ----------------------------------------------------------------------------- |
|
171 // LcUiEnginePrivate::volume |
|
172 // ----------------------------------------------------------------------------- |
|
173 // |
|
174 void LcUiEnginePrivate::volume( int value ) |
|
175 { |
|
176 LC_QDEBUG( "livecomms [UI] -> LcUiEnginePrivate::volume()" ) |
|
177 // TODO: Replace TRAP with QT_TRANSLATE_SYMBIAN_LEAVE_TO_EXCEPTION (Qt4.5.2) |
|
178 MLcAudioControl* audio = audioControl(); |
|
179 if ( audio ) { |
|
180 int currentValue( -1 ); // Not defined yet |
|
181 TRAP_IGNORE( currentValue = audio->LcVolumeL()); |
|
182 if ( currentValue != value ) { |
|
183 TRAP_IGNORE( audio->SetLcVolumeL( value ) ); |
|
184 } |
|
185 } |
|
186 } |
|
187 |
|
188 // ----------------------------------------------------------------------------- |
|
189 // LcUiEnginePrivate::volumeMuted |
|
190 // ----------------------------------------------------------------------------- |
|
191 // |
|
192 void LcUiEnginePrivate::volumeMuted( bool value) |
|
193 { |
|
194 LC_QDEBUG( "livecomms [UI] -> LcUiEnginePrivate::volumeMuted()" ) |
|
195 // TODO: Replace TRAP with QT_TRANSLATE_SYMBIAN_LEAVE_TO_EXCEPTION (Qt4.5.2) |
|
196 MLcAudioControl* audio = audioControl(); |
|
197 if ( audio ) { |
|
198 LC_QDEBUG_2( "livecomms [UI] Volume Mute Status = ", value ) |
|
199 TRAP_IGNORE( audio->MuteLcAudioL(value) ); |
|
200 } |
|
201 LC_QDEBUG( "livecomms [UI] <- LcUiEnginePrivate::volumeMuted()" ) |
|
202 } |
|
203 |
|
204 // ----------------------------------------------------------------------------- |
171 // LcUiEnginePrivate::stop |
205 // LcUiEnginePrivate::stop |
172 // ----------------------------------------------------------------------------- |
206 // ----------------------------------------------------------------------------- |
173 // |
207 // |
174 void LcUiEnginePrivate::stop() |
208 void LcUiEnginePrivate::stop() |
175 { |
209 { |
440 } |
474 } |
441 return err; |
475 return err; |
442 } |
476 } |
443 |
477 |
444 // ----------------------------------------------------------------------------- |
478 // ----------------------------------------------------------------------------- |
|
479 // LcUiEnginePrivate::volumeValues |
|
480 // ----------------------------------------------------------------------------- |
|
481 // |
|
482 int LcUiEnginePrivate::volumeValues( LcControlValues& values ) const |
|
483 { |
|
484 LC_QDEBUG( "livecomms [UI] -> LcUiEnginePrivate::volumeValues()" ) |
|
485 int err( -1 ); |
|
486 // TODO: Replace TRAP with QT_TRANSLATE_SYMBIAN_LEAVE_TO_EXCEPTION (Qt4.5.2) |
|
487 MLcAudioControl* volume = audioControl(); |
|
488 if ( volume ) { |
|
489 //HardCoded Value since no API for quering volume control |
|
490 //Information. |
|
491 TRAP( err, |
|
492 values.mMinValue = lcVolumeMin; |
|
493 values.mMaxValue = lcVolumeMax; |
|
494 values.mValue = volume->LcVolumeL(); ); |
|
495 } else { |
|
496 LC_QDEBUG( "livecomms [UI] - Volume control does not exisit" ) |
|
497 } |
|
498 LC_QDEBUG( "livecomms [UI] <- LcUiEnginePrivate::volumeValues()" ) |
|
499 return err; |
|
500 } |
|
501 |
|
502 |
|
503 |
|
504 // ----------------------------------------------------------------------------- |
445 // LcUiEnginePrivate::toggleEnableCamera |
505 // LcUiEnginePrivate::toggleEnableCamera |
446 // ----------------------------------------------------------------------------- |
506 // ----------------------------------------------------------------------------- |
447 // |
507 // |
448 void LcUiEnginePrivate::toggleDisableCamera() |
508 void LcUiEnginePrivate::toggleDisableCamera() |
449 { |
509 { |
496 if ( localPlayer && localPlayer->LcCameraControl() ) { |
556 if ( localPlayer && localPlayer->LcCameraControl() ) { |
497 TRAP_IGNORE( localPlayer->LcCameraControl()->ToggleLcCameraL() ); |
557 TRAP_IGNORE( localPlayer->LcCameraControl()->ToggleLcCameraL() ); |
498 } |
558 } |
499 |
559 |
500 setMainCamera( !mMainCamera ); |
560 setMainCamera( !mMainCamera ); |
501 |
|
502 // Enabling / disabling the camera is an asynchronous operation. |
561 // Enabling / disabling the camera is an asynchronous operation. |
503 // Assuming here that the operation will eventually succeed. |
562 // Assuming here that the operation will eventually succeed. |
504 if ( mMainCamera ) { |
563 if ( mMainCamera ) { |
505 completeAction( lcEngSignalNameCameraChangedToMain ); |
564 completeAction( lcEngSignalNameCameraChangedToMain ); |
506 } else { |
565 } else { |
1025 // LcUiEnginePrivate::audioControl |
1084 // LcUiEnginePrivate::audioControl |
1026 // ----------------------------------------------------------------------------- |
1085 // ----------------------------------------------------------------------------- |
1027 // |
1086 // |
1028 MLcAudioControl* LcUiEnginePrivate::audioControl() const |
1087 MLcAudioControl* LcUiEnginePrivate::audioControl() const |
1029 { |
1088 { |
|
1089 LC_QDEBUG( "livecomms [UI] -> LcUiEnginePrivate::audioControl()" ) |
1030 MLcAudioControl* audioControl( 0 ); |
1090 MLcAudioControl* audioControl( 0 ); |
1031 if ( session().LocalVideoPlayer() ) { |
1091 if ( session().LocalVideoPlayer() ) { |
1032 audioControl = session().LocalVideoPlayer()->LcAudioControl(); |
1092 audioControl = session().LocalVideoPlayer()->LcAudioControl(); |
1033 } |
1093 } |
1034 if ( !audioControl && session().RemoteVideoPlayer() ) { |
1094 if ( !audioControl && session().RemoteVideoPlayer() ) { |
1035 audioControl = session().RemoteVideoPlayer()->LcAudioControl(); |
1095 audioControl = session().RemoteVideoPlayer()->LcAudioControl(); |
1036 } |
1096 } |
|
1097 LC_QDEBUG( "livecomms [UI] <- LcUiEnginePrivate::audioControl()" ) |
1037 return audioControl; |
1098 return audioControl; |
1038 } |
1099 } |
1039 |
1100 |
1040 // ----------------------------------------------------------------------------- |
1101 // ----------------------------------------------------------------------------- |
1041 // LcUiEnginePrivate::zoomControl |
1102 // LcUiEnginePrivate::zoomControl |
1461 // |
1522 // |
1462 |
1523 |
1463 void LcUiEnginePrivate::doUpdate( MLcVideoPlayer& aPlayer ) |
1524 void LcUiEnginePrivate::doUpdate( MLcVideoPlayer& aPlayer ) |
1464 { |
1525 { |
1465 LC_QDEBUG( "livecomms [UI] -> LcUiEnginePrivate::doUpdate(), videoplayer" ) |
1526 LC_QDEBUG( "livecomms [UI] -> LcUiEnginePrivate::doUpdate(), videoplayer" ) |
|
1527 |
1466 if ( aPlayer.LcVideoPlayerState() == MLcVideoPlayer::EPlaying ) { |
1528 if ( aPlayer.LcVideoPlayerState() == MLcVideoPlayer::EPlaying ) { |
1467 if ( &aPlayer == session().RemoteVideoPlayer() ) { |
1529 if ( &aPlayer == session().RemoteVideoPlayer() ) { |
1468 if ( mWaitingNote ) { |
1530 if ( mWaitingNote ) { |
1469 mWaitingNote->hide(); |
1531 mWaitingNote->hide(); |
1470 } |
1532 } |