User interface update
[qtmeetings] / src / UserInterface / Views / RoomStatusIndicatorWidget.h
index 615051e..64978b0 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef ROOMSTATUSINDICATORWIDGET_H_\r
 #define ROOMSTATUSINDICATORWIDGET_H_\r
 \r
-#include "ObservedWidget.h"\r
+#include "ViewBase.h"\r
 #include <QTime>\r
 #include <QKeyEvent>\r
 #include <QTabletEvent>\r
@@ -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
@@ -19,7 +21,7 @@ class TimeDisplayWidget;
  * and disappears if there is any. Its function is to behave like a screen saver on one hand, and\r
  * to provide details about the current availability on the other hand.\r
  */\r
-class RoomStatusIndicatorWidget : public ObservedWidget\r
+class RoomStatusIndicatorWidget : public ViewBase\r
 {\r
        Q_OBJECT\r
 \r
@@ -37,6 +39,8 @@ 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
@@ -55,7 +59,15 @@ public slots:
         * \param aUntil The new time until the specified status is valid.\r
         */\r
        void statusChanged( const Room::Status aStatus, const QTime aUntil );\r
+       \r
+       void currentRoomChanged( Room *aRoom );\r
+       \r
+       void viewResized(const QSize &newSize, const QSize &oldSize) { }\r
 \r
+       void connectionEstablished();\r
+       \r
+       void connectionLost();\r
+       \r
 private:\r
        //! Translates the status into human readable text.\r
        /*!\r
@@ -76,7 +88,9 @@ private:
        QLabel *iDefaultRoomLabel;\r
        QLabel *iStatusLabel;\r
        QLabel *iUntilTextLabel;\r
-       TimeDisplayWidget *iTimeDisplay;\r
+       BorderedBarWidget *iTimeDisplay;\r
+       BorderedBarWidget *iStatusBar;\r
+\r
        QString iTimeFormat;\r
 \r
        static QTime endOfTheDay;\r