Status bar fixed
[qtmeetings] / src / BusinessLogic / Engine.h
index 6bacdd8..65690a1 100644 (file)
@@ -39,6 +39,10 @@ public:
         */
        Room* defaultRoom();
 
+       bool connected();
+       QTime lastUpdated();
+       QString errorMessage();
+
 signals:
 
        void roomStatusChanged( Room::Status aStatus, QTime aUntil );
@@ -120,6 +124,17 @@ private slots:
        
        void currentRoomChanged( Room *aRoom );
        
+       void tick( QDateTime aCurrentDateTime );
+       
+       /**
+        * Updates the current rooms info.
+        */
+       void updateRoomInfo();
+       /**
+        *
+        */
+       void configurationChanged();
+
 private:
        // Make the UIManager as friendly class so it can connect to private slots.
        friend class UIManager;
@@ -145,11 +160,11 @@ private:
        //! Slot. Fetches meetings from the server.
        /*!
         * Slot. Fetches meetings from the server, exact parameters are specified in the parameter list.
-        * \param aFrom Time from when the meetings need to be fetched.
-        * \param aUntil Time until when the meetings need to be fetched.
+        * \param aWeek Week for which the meetings need to be fetched.
+        * \param aYear Year for which the meetings need to be fetched.
         * \param aIn The room which meetings need to be fetched.
         */
-       void fetchMeetings( const QDateTime &aFrom, const QDateTime &aUntil, const Room *aIn );
+       void fetchMeetings( const int aWeek, const int aYear, const Room *aIn );
        //! Initialize configuration package.
        /*!
         * This method initializes configuration classes and
@@ -187,13 +202,13 @@ private:
 
 private:
        static QTime endOfTheDay;
-
-       WindowManager *iWindowManager;
        
        QTimer *iIdleTimeCounter;
        Clock *iClock;
+       QDate iCurrentDate;
        Configuration *iConfiguration;
        CommunicationManager *iCommunication;
+       WindowManager *iWindowManager;
        DeviceManager *iDevice;
        UIManager *iUIManager;
 
@@ -203,7 +218,8 @@ private:
        
        Room *iCurrentRoom;
        bool iCommunicationFailed;
-       bool iCurrentWeekFetched;
+       QString iCommunicationError;
+       QTime iLastCommunication;
 };
 
 #endif /*ENGINE_H_*/