72 mReceivedVideoEffectOverlay(0), |
72 mReceivedVideoEffectOverlay(0), |
73 mSharedVideoEffectOverlay(0), |
73 mSharedVideoEffectOverlay(0), |
74 mEffectHandler(0), |
74 mEffectHandler(0), |
75 mItemContextMenu(0), |
75 mItemContextMenu(0), |
76 mIsOptionMenuOpen(false), |
76 mIsOptionMenuOpen(false), |
77 mDialpad(0), |
77 mDialpad(0), |
|
78 mDialpadVtKeyHandler(0), |
78 timerId(0), |
79 timerId(0), |
79 mDialpadVtKeyHandler(0), |
|
80 isViewReady(0) |
80 isViewReady(0) |
81 { |
81 { |
82 LC_QDEBUG( "livecomms [UI] -> LcView::LcView()" ) |
82 LC_QDEBUG( "livecomms [UI] -> LcView::LcView()" ) |
83 |
83 |
84 createNotSupportedNote(); |
84 createNotSupportedNote(); |
213 SLOT( updateVideoRects() ), Qt::QueuedConnection ); |
213 SLOT( updateVideoRects() ), Qt::QueuedConnection ); |
214 connect( mReceivedVideoWidget, SIGNAL( yChanged() ), this, |
214 connect( mReceivedVideoWidget, SIGNAL( yChanged() ), this, |
215 SLOT( updateVideoRects() ), Qt::QueuedConnection ); |
215 SLOT( updateVideoRects() ), Qt::QueuedConnection ); |
216 } |
216 } |
217 |
217 |
|
218 //Subscribe to the Volume Change Events. |
|
219 connect( &mEngine, SIGNAL(volumeChanged(int)), |
|
220 this, SLOT(updateVolumeSlider(int)) ); |
|
221 |
218 LC_QDEBUG( "livecomms [UI] <- LcView::init()" ) |
222 LC_QDEBUG( "livecomms [UI] <- LcView::init()" ) |
219 } |
223 } |
220 |
224 |
221 |
225 |
222 // ----------------------------------------------------------------------------- |
226 // ----------------------------------------------------------------------------- |
289 // LcView::activated |
293 // LcView::activated |
290 // ----------------------------------------------------------------------------- |
294 // ----------------------------------------------------------------------------- |
291 // |
295 // |
292 void LcView::activated() |
296 void LcView::activated() |
293 { |
297 { |
294 LC_QDEBUG( "livecomms [UI] -> LcView::activated()" ) |
298 LC_QDEBUG( "livecomms [UI] -> LcView::activated()" ) |
|
299 |
295 updateVideoRects(); |
300 updateVideoRects(); |
296 |
|
297 //synchronize with engine |
|
298 |
301 |
299 if ( mEngine.mainCamera() ) { |
302 if ( mEngine.mainCamera() ) { |
300 setCameraActionToSecondary(); |
303 setCameraActionToSecondary(); |
301 } else { |
304 } else { |
302 setCameraActionToMain(); |
305 setCameraActionToMain(); |
311 if ( mEngine.isSpeakerOn() ) { |
314 if ( mEngine.isSpeakerOn() ) { |
312 setSpeakerActionToHandset(); |
315 setSpeakerActionToHandset(); |
313 } else { |
316 } else { |
314 setSpeakerActionToSpeaker(); |
317 setSpeakerActionToSpeaker(); |
315 } |
318 } |
316 |
319 |
|
320 if( mEngine.isLocalPlayerPlaying() ){ |
|
321 setCameraActionToDisable(); |
|
322 } else { |
|
323 setCameraActionToEnable(); |
|
324 } |
|
325 |
317 if ( mChangeCameraAction ) { |
326 if ( mChangeCameraAction ) { |
318 connect( |
327 connect( |
319 &mEngine, SIGNAL(cameraChangedToMain()), |
328 &mEngine, SIGNAL(cameraChangedToMain()), |
320 this, SLOT(setCameraActionToSecondary()) ); |
329 this, SLOT(setCameraActionToSecondary()) ); |
321 connect( |
330 connect( |
373 if ( mSharedVideoWidget ) { |
382 if ( mSharedVideoWidget ) { |
374 connect( &mEngine, SIGNAL(localPlayerPlaying()), |
383 connect( &mEngine, SIGNAL(localPlayerPlaying()), |
375 mEffectHandler, SLOT(showSendWindow()) ); |
384 mEffectHandler, SLOT(showSendWindow()) ); |
376 connect( &mEngine, SIGNAL(localPlayerPaused()), |
385 connect( &mEngine, SIGNAL(localPlayerPaused()), |
377 mEffectHandler, SLOT(hideSendWindow()) ); |
386 mEffectHandler, SLOT(hideSendWindow()) ); |
|
387 connect( &mEngine, SIGNAL(localPlayerPlaying()), |
|
388 this, SLOT(setCameraActionToDisable())); |
|
389 connect( &mEngine, SIGNAL(localPlayerPaused()), |
|
390 this, SLOT(setCameraActionToEnable())); |
|
391 connect( &mEngine, SIGNAL(localPlayerUnavailable()), |
|
392 this, SLOT(setCameraActionToEnable())); |
|
393 connect( &mEngine, SIGNAL(localPlayerPlaying()), |
|
394 this, SLOT(updateVideoRects())); |
378 } |
395 } |
379 |
396 |
380 if ( mReceivedVideoWidget ) { |
397 if ( mReceivedVideoWidget ) { |
381 connect( &mEngine, SIGNAL(remotePlayerPlaying()), |
398 connect( &mEngine, SIGNAL(remotePlayerPlaying()), |
382 mEffectHandler, SLOT(showReceiveWindow()) ); |
399 mEffectHandler, SLOT(showReceiveWindow()) ); |
383 connect( &mEngine, SIGNAL(remotePlayerPaused()), |
400 connect( &mEngine, SIGNAL(remotePlayerPaused()), |
384 mEffectHandler, SLOT(hideReceiveWindow()) ); |
401 mEffectHandler, SLOT(hideReceiveWindow()) ); |
|
402 connect( &mEngine, SIGNAL(remotePlayerPlaying()), |
|
403 this, SLOT(updateVideoRects()) ); |
385 } |
404 } |
386 |
405 |
387 mEngine.setCurrentView(this); |
406 mEngine.setCurrentView(this); |
388 |
407 |
389 LC_QDEBUG( "livecomms [UI] <- LcView::activated()" ) |
408 LC_QDEBUG( "livecomms [UI] <- LcView::activated()" ) |
1035 } |
1054 } |
1036 } |
1055 } |
1037 LC_QDEBUG_2("livecomms [UI] - LcView::isPositioned(),",isViewReady) |
1056 LC_QDEBUG_2("livecomms [UI] - LcView::isPositioned(),",isViewReady) |
1038 return isViewReady; |
1057 return isViewReady; |
1039 } |
1058 } |
|
1059 |
|
1060 |
|
1061 // ----------------------------------------------------------------------------- |
|
1062 // LcView::updateVolumeSlider |
|
1063 // ----------------------------------------------------------------------------- |
|
1064 // |
|
1065 void LcView::updateVolumeSlider( int aVolumeLevel ) |
|
1066 { |
|
1067 LC_QDEBUG("livecomms [UI] -> LcView::updateVolumeSlider()") |
|
1068 //TBD: Show volume slider, with update volume level |
|
1069 LC_QDEBUG_2("Volume Level Is,",aVolumeLevel) |
|
1070 LC_QDEBUG("livecomms [UI] <- LcView::updateVolumeSlider()") |
|
1071 } |
|
1072 |
|
1073 |
1040 // End of file |
1074 // End of file |