Re-implemented the showing of meetings (Task id 1166). Corrected the errortable order...
[qtmeetings] / src / UserInterface / WindowManager.cpp
index 535434b..4c4a7f6 100644 (file)
@@ -129,16 +129,6 @@ void WindowManager::fullScreen()
        iFullScreen = true;
 }
 
-void WindowManager::insertMeeting( Meeting *aMeeting )
-{
-       iWeeklyView->insertMeeting( aMeeting );
-}
-
-void WindowManager::deleteMeeting( Meeting *aMeeting )
-{
-       iWeeklyView->deleteMeeting( aMeeting );
-}
-
 void WindowManager::showMeetingInfo( Meeting *aMeeting )
 {
        iMeetingInfo = new MeetingInfoDialog( aMeeting );
@@ -188,8 +178,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 +204,9 @@ void WindowManager::updateProgressBar( const QString &aMessage )
        if( iProgressBar != 0 )
                iProgressBar->update( aMessage );
 }
+
+void WindowManager::refreshMeetings( const QList<Meeting*> &aMeetings )
+{
+       qDebug() << "WindowManager::refreshMeetings()";
+       iWeeklyView->refreshMeetings( aMeetings );
+}