Status bar fixed
[qtmeetings] / src / UserInterface / Views / RoomStatusIndicatorWidget.h
index 736d230..c9256dc 100644 (file)
@@ -10,7 +10,9 @@
 \r
 class QLabel;\r
 class QVBoxLayout;\r
-class TimeDisplayWidget;\r
+class BorderedBarWidget;\r
+\r
+class QEvent;\r
 \r
 //! UserInterface class. Indicates if the default meeting room is busy or not.\r
 /*!\r
@@ -37,15 +39,18 @@ public:
        RoomStatusIndicatorWidget( Room *aDefaultRoom, Room::Status aStatus, QTime aUntil, QString aTimeFormat, QWidget *aParent = 0 );\r
        //! Destructor.\r
        virtual ~RoomStatusIndicatorWidget();\r
+       \r
+       bool event(QEvent *event);\r
 \r
 public slots:\r
-       //! Slot. Sets current time.\r
+       //! Slot. Sets the connection status\r
        /*!\r
-        * Slots. Sets current time on the widget. It is used to provide up-to-date time for the widget's\r
-        * TimeDisplayWidget.\r
-        * \param aCurrentTime The current time.\r
+        * Sets the current time, and connection status\r
+        * \param aCurrentTime Time to be displayed.\r
+        * \param aConnected connection status to be displayed.\r
+        * \param aLastUpdated Time of last successful connection to be displayed.\r
         */\r
-       void setCurrentTime( QTime aCurrentTime );\r
+       void setConnectionStatus( QDateTime aCurrentTime, bool aConnected, QTime aLastUpdated = QTime(), QString aError = "");\r
        //! Slot. Used to indicate changes in the status of the default room.\r
        /*!\r
         * Slot. Used to indicate changes in the status of the default room. If the specified until time equals\r
@@ -56,7 +61,11 @@ public slots:
         */\r
        void statusChanged( const Room::Status aStatus, const QTime aUntil );\r
        \r
-       void viewResized(const QSize &newSize, const QSize &oldSize) { }\r
+       void showError( QString aError );\r
+\r
+       void currentRoomChanged( Room *aRoom );\r
+       \r
+       void viewResized(const QSize &/*newSize*/, const QSize &/*oldSize*/) { }\r
 \r
        void connectionEstablished();\r
        \r
@@ -82,8 +91,9 @@ private:
        QLabel *iDefaultRoomLabel;\r
        QLabel *iStatusLabel;\r
        QLabel *iUntilTextLabel;\r
-       QLabel *iConnectionLabel;\r
-       TimeDisplayWidget *iTimeDisplay;\r
+       BorderedBarWidget *iTimeDisplay;\r
+       BorderedBarWidget *iStatusBar;\r
+\r
        QString iTimeFormat;\r
 \r
        static QTime endOfTheDay;\r