mmsharing/livecommsui/lcuiengine/src/lcuiengine_p.cpp
changeset 26 5554410e16f5
parent 25 53c1c4459a94
child 29 36d7ded3ca23
--- a/mmsharing/livecommsui/lcuiengine/src/lcuiengine_p.cpp	Wed Jun 23 18:09:54 2010 +0300
+++ b/mmsharing/livecommsui/lcuiengine/src/lcuiengine_p.cpp	Tue Jul 06 14:13:16 2010 +0300
@@ -269,6 +269,7 @@
 
 // -----------------------------------------------------------------------------
 // LcUiEnginePrivate::setOrientation
+// Currently the only supported orientation is landscape.
 // -----------------------------------------------------------------------------
 //
 bool LcUiEnginePrivate::setOrientation( Qt::Orientation orientation )
@@ -279,16 +280,13 @@
     MLcVideoPlayer* localPlayer = session().LocalVideoPlayer();
     MLcVideoPlayer* remotePlayer = session().RemoteVideoPlayer();
   
-    MLcWindow::TLcWindowOrientation newOrientation( MLcWindow::EPortrait );
-    if ( orientation == Qt::Horizontal ) {
-        newOrientation = MLcWindow::ELandscape;
-    }
+    Q_UNUSED(orientation);
     
     if ( localPlayer && localPlayer->LcWindow() ) {
-        TRAP(error1, localPlayer->LcWindow()->SetLcWindowOrientationL( newOrientation ) );
+        TRAP(error1, localPlayer->LcWindow()->SetLcWindowOrientationL( MLcWindow::ELandscape ) );
     }
     if ( remotePlayer && remotePlayer->LcWindow() ) {
-        TRAP(error2, remotePlayer->LcWindow()->SetLcWindowOrientationL( newOrientation ));
+        TRAP(error2, remotePlayer->LcWindow()->SetLcWindowOrientationL( MLcWindow::ELandscape ));
     }
   
     if ( (error1 == KErrNone) && (error2 == KErrNone) ) {
@@ -1436,9 +1434,10 @@
 {
     LC_QDEBUG( "livecomms [UI] -> LcUiEnginePrivate::stopLocalVideo()" )
     MLcVideoPlayer* localPlayer = session().LocalVideoPlayer();
-    if( localPlayer ){
+    if( localPlayer ) {
         pause( localPlayer );
-        enableWindow( localPlayer, false );        
+        enableWindow( localPlayer, false );
+        completeAction( lcEngSignalNameCameraDisabled );
     }
     LC_QDEBUG( "livecomms [UI] <- LcUiEnginePrivate::stopLocalVideo()" )
 }
@@ -1453,7 +1452,7 @@
     MLcVideoPlayer* localPlayer = session().LocalVideoPlayer();
     if( localPlayer ){
         play( localPlayer );
-        enableWindow( localPlayer, true );        
+        enableWindow( localPlayer, true );
     }
     LC_QDEBUG( "livecomms [UI] <- LcUiEnginePrivate::startLocalVideo()" )
 }