Merge branch 'master' into dev_local
[qtmeetings] / src / UserInterface / WindowManager.cpp
index 535434b..3819076 100644 (file)
@@ -88,7 +88,7 @@ void WindowManager::roomStatusChanged( Room *aRoom, Room::Status aStatus, QTime
 void WindowManager::showRoomStatus()
 {
        qDebug() << "WindowManager::showRoomStatus";
-
+       iWeeklyView->setDefaultRoom();
        if ( iRoomStatusView == 0 )
        {
                emit roomStatusInfoNeeded( iWeeklyView->currentRoom() );
@@ -188,8 +188,10 @@ void WindowManager::showProgressBar( const QString &aText, bool aCancellable )
        qDebug() << "WindowManager::showProgressBar( const QString & )";
        if( iProgressBar == 0 ) {
                iProgressBar = new ProgressBar( aText, aCancellable );
+               iProgressBar->setFixedSize( 600, 125 );
                iProgressBar->show();
-               connect( iProgressBar, SIGNAL( cancel() ), this, SIGNAL( progressBarCancelled() ) );
+               if( aCancellable )
+                       connect( iProgressBar, SIGNAL( cancel() ), this, SIGNAL( progressBarCancelled() ) );
        }
        
        //TODO connect connect( iWeeklyView, SIGNAL( observedEventDetected() ), this, SIGNAL( observedEventDetected() ) );
@@ -212,3 +214,16 @@ void WindowManager::updateProgressBar( const QString &aMessage )
        if( iProgressBar != 0 )
                iProgressBar->update( aMessage );
 }
+
+void WindowManager::connectionLost()
+{
+       //TODO: Inform all views
+       qDebug() << "WindowManager::connectionLost()";
+}
+
+void WindowManager::connectionEstablished()
+{
+       //TODO: Inform all views
+       qDebug() << "WindowManager::connectionEstablished()";
+}
+