{
qDebug() << "Engine::Engine()";
iCommunicationFailed = false;
+ iCurrentWeekFetched = false;
initConfiguration();
initDevice();
void Engine::meetingsFetched( const QList<Meeting*> &aMeetings )
{
qDebug() << "Engine::meetingsFetched( const QList<Meeting*> & )";
- if( iCommunicationFailed )
+ // TODO: should check if this week's meetings were fetched
+ if( iCommunicationFailed || !iCurrentWeekFetched )
{
+ iCurrentWeekFetched = true;
iCommunicationFailed = false;
- iWindowManager->connectionEstablished();
+ iUIManager->connectionEstablished();
}
for ( int i = 0; i < iMeetings.count(); ++i )
if( aCode >= 100 && aCode < 150 )
{
iCommunicationFailed = true;
- //TODO: Call window manager
- //if ( iWindowManager != 0 ) iWindowManager->connectionLost();
+ if ( iUIManager != 0 ) iUIManager->connectionLost();
}
if ( iWindowManager != 0 )
{
void Engine::changeDeviceMode( bool aChange )
{
if ( aChange )
- }
{
connect( iDevice, SIGNAL( changingModeFailed() ), this, SLOT( changeModeFailed() ) );
iAutoRefresh->stop(); // Stop the meeting update