From 2d67649a33e53020c998bbc9cae0f3457ac09fe3 Mon Sep 17 00:00:00 2001 From: Mikko Siren Date: Thu, 28 May 2009 13:21:45 +0300 Subject: [PATCH] Changed something cannot remember what --- src/BusinessLogic/Engine.cpp | 2 +- src/BusinessLogic/Engine.h | 12 ++++-------- src/BusinessLogic/UIManager.cpp | 2 ++ 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/BusinessLogic/Engine.cpp b/src/BusinessLogic/Engine.cpp index 89fe7de..fa9ccc1 100644 --- a/src/BusinessLogic/Engine.cpp +++ b/src/BusinessLogic/Engine.cpp @@ -269,7 +269,7 @@ void Engine::initUserInterface() connect( iWindowManager, SIGNAL( eventDetected() ), this, SLOT( handleViewEvent() ) ); connect( iWindowManager, SIGNAL( previousViewRestored() ), iUIManager, SLOT( previousViewRestored() ) ); // connect( iWindowManager, SIGNAL( dialogActivated() ), this, SLOT( dialogActivated() ) ); -// connect( iWindowManager, SIGNAL( dialogDeactivated() ), this, SLOT( dialogDeactivated() ) ); + connect( iWindowManager, SIGNAL( dialogDeactivated() ), this, SLOT( dialogDeactivated() ) ); // Show the UI iWindowManager->setWindowState( Qt::WindowMaximized ); diff --git a/src/BusinessLogic/Engine.h b/src/BusinessLogic/Engine.h index 99992dd..3efc471 100644 --- a/src/BusinessLogic/Engine.h +++ b/src/BusinessLogic/Engine.h @@ -17,8 +17,10 @@ class UIManager; //! BusinessLogic class. Contains all the business logic of the application. /*! - * BusinessLogic class. Contains all the business logic of the application. It is responsible - * for connecting user interface to lower application layers (IO). + * BusinessLogic class. Contains all the business logic of the application. This class handles + * the logic of the application according received calls to the slots. This class also maintains + * the instances of managers, timers and its own set of meeting list. The managers handles + * their tasks in more detailed manner. */ class Engine : public QObject { @@ -67,12 +69,6 @@ private slots: * \param aAddInfo Possible addition info. */ void errorHandler( int aCode, const QString &aAddInfo = "" ); - //! Slot. Fetches meetings from the server. - /*! - * Slot. Fetches meetings from the server. Parameters are hard coded: the meetings of the default - * room from current and +/- 2 weeks are fetched. - */ -// void fetchMeetings(); //! Slot. Saves fetched meetings to the current instance's local storage. /*! * Slot. Saves fetched meetings to the current instance's local storage. Meetings are soted in a diff --git a/src/BusinessLogic/UIManager.cpp b/src/BusinessLogic/UIManager.cpp index 96251a1..253e45a 100644 --- a/src/BusinessLogic/UIManager.cpp +++ b/src/BusinessLogic/UIManager.cpp @@ -188,8 +188,10 @@ void UIManager::meetingDetailsFetched(Meeting &aDetailedMeeting) { iProgressBar->close(); // Close it in case it's visible } + iEngine->stopIdleTimeCounter(); // Timer restarted when the dialog is dismissed. MeetingInfoDialog *tmp = new MeetingInfoDialog( &aDetailedMeeting ); iWindowManager->showDialog( static_cast( tmp ) ); + // TODO : We should use the member variable and implement correctly the setMeeting() method !!! // iMeetingInfo->setMeeting( &aDetailedMeeting ); // iWindowManager->showDialog( static_cast( iMeetingInfo ) ); -- 1.7.9.5