UIManager and some functionality
[qtmeetings] / src / BusinessLogic / Engine.h
index 70afcbc..c457fae 100644 (file)
@@ -13,11 +13,7 @@ class Clock;
 class Configuration;
 class CommunicationManager;
 class Meeting;
-class WeeklyViewWidget;
-class SettingsView;
-class RoomStatusIndicatorWidget;
-class PasswordDialog;
-class MeetingInfoDialog;
+class UIManager;
 
 //! BusinessLogic class. Contains all the business logic of the application.
 /*!
@@ -64,12 +60,6 @@ private slots:
         * Slot. Asks the communication to fetch new meeting data.
         * \param aCurrentRoom The current room.
         */
-       void currentRoomChanged( Room *aCurrentRoom );
-       //! Slot. Asks the communication to fetch new meeting data.
-       /*!
-        * Slot. Asks the communication to fetch new meeting data.
-        * \param aCurrentRoom The current room.
-        */
        void shownWeekChanged( QDate aDate );
        //! Slot. Handles errors.
        /*!
@@ -93,21 +83,12 @@ private slots:
         * \param aMeetings The list of freshly fetched meetings.
         */
        void meetingsFetched( const QList<Meeting*>& );
-       
-       void meetingDetailsFetched( Meeting &aDetailedMeeting );
-       
        //! Slot. Checks the availability of all the rooms.
        /*!
         * Slot. Checks the availability of all the rooms by iterating through the current object's local
         * room storage and calling the roomStatusInfoNeeded() separately on each of them.
         */
        void checkStatusOfAllRooms();
-       //! Slot for popping up the confirmation dialog to change the current operation mode
-       /*!
-        * Slot. Asks Window manager to pop up a confirmation dialog.
-        * \param aMode The operation mode to be changed to
-        */
-       void changeModeOrdered( DeviceManager::OperationMode aMode );
        //! Slot. Fetches meeting details from the server.
        /*!
         * Slot. Fetches meeting details from the server.
@@ -134,11 +115,6 @@ private slots:
        
        void handleViewEvent();
        void previousViewRestored();
-       void settingsViewRequested();
-       
-       void idleTimerTimeout();
-       
-       void settingsOkClicked();
        
        //! Slot for dialog activation signal.
        /*!
@@ -155,7 +131,13 @@ private slots:
         */
        void dialogDeactivated();
        
+       void stopIdleTimeCounter();
+       void startIdleTimeCounter();
+       
 private:
+       // Make the UIManager as friendly class so it can connect to private slots.
+       friend class UIManager;
+       
        //! Provides the index of the Meeting instance which is at the specified time.
        /*!
         * Provides the index of the Meeting instance which is at the specified time. If there are
@@ -227,18 +209,13 @@ private:
        static QTime endOfTheDay;
 
        WindowManager *iWindowManager;
-       WeeklyViewWidget *iWeeklyView;
-       SettingsView *iSettingsView;
-       RoomStatusIndicatorWidget *iRoomStatusIndicator;
-       
-       PasswordDialog *iPasswordDialog;
-       MeetingInfoDialog *iMeetingInfoDialog;
        
        QTimer *iIdleTimeCounter;
        Clock *iClock;
        Configuration *iConfiguration;
        CommunicationManager *iCommunication;
        DeviceManager *iDevice;
+       UIManager *iUIManager;
 
        QTimer *iAutoRefresh;