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() ) );
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()";
+}
+