void Engine::fetchMeetingDetails( Meeting *aMeeting )
{
qDebug() << "Engine::fetchMeetingDetails( Meeting* )";
+ iWindowManager->showProgressBar( tr("Please Wait"), true );
+ iWindowManager->updateProgressBar( tr("Fetching Meeting Details...") );
+ connect( iWindowManager,
+ SIGNAL( progressBarCancelled() ),
+ this,
+ SLOT( fetchMeetingDetailsCancelled() )
+ );
iCommunication->fetchMeetingDetails( *aMeeting );
}
{
qDebug() << "Engine::ErrorHandler, aCode: " << aCode;
// inform UI about the problem
- if( aCode >= 100 && aCode <= 110 )
+ if( aCode >= 100 && aCode <= 150 )
qDebug() << "CommunicationManager signaled an error:" << aCode;
-// iWindowManager->error( ErrorMapper::codeToString( aCode, aAddInfo ) );
+ // iWindowManager->closeProgressBar();
+ // iWindowManager->error( ErrorMapper::codeToString( aCode, aAddInfo ) );
}
void Engine::currentRoomChanged( Room *aCurrentRoom )
// connect( iWindowManager, SIGNAL( progressBarCancelled() ), this, SLOT( progressBarCancelled() ) );
// connect( iDevice, SIGNAL( changingMode( const QString & ) ),
// iWindowManager, SLOT( updateProgressBar( const QString & ) ) );
+ // TODO : Connect the signal directory to progress bar dialog which should be instance in engine
+// connect( iDevice, SIGNAL( changingMode( const QString & ) ),
+// iWindowManager, SLOT( updateProgressBar( const QString & ) ) );
+ connect( iDevice, SIGNAL( changingModeFailed() ), this, SLOT( progressBarCancelled() ) );
iDevice->changeMode( true );
break;
}
{
iIdleTimeCounter->start();
}
-}
\ No newline at end of file
+}
+
+void Engine::fetchMeetingDetailsCancelled()
+{
+ iCommunication->cancelFetchMeetingDetails();
+ iWindowManager->closeProgressBar();
+}