X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2FUserInterface%2FViews%2FRoomStatusIndicatorWidget.h;h=c9256dcc0ff6412014f05982a635952a3b6307b9;hb=6a31f3484996e9b7e719954c3a64a56d3fa586aa;hp=643160aa0b77452bcbad46d36aa225d85162b19c;hpb=59b4a9d85f3cd02e90c8efcecc66f9150f8a61f8;p=qtmeetings diff --git a/src/UserInterface/Views/RoomStatusIndicatorWidget.h b/src/UserInterface/Views/RoomStatusIndicatorWidget.h index 643160a..c9256dc 100644 --- a/src/UserInterface/Views/RoomStatusIndicatorWidget.h +++ b/src/UserInterface/Views/RoomStatusIndicatorWidget.h @@ -10,7 +10,7 @@ class QLabel; class QVBoxLayout; -class TimeDisplayWidget; +class BorderedBarWidget; class QEvent; @@ -43,13 +43,14 @@ public: bool event(QEvent *event); public slots: - //! Slot. Sets current time. + //! Slot. Sets the connection status /*! - * Slots. Sets current time on the widget. It is used to provide up-to-date time for the widget's - * TimeDisplayWidget. - * \param aCurrentTime The current time. + * Sets the current time, and connection status + * \param aCurrentTime Time to be displayed. + * \param aConnected connection status to be displayed. + * \param aLastUpdated Time of last successful connection to be displayed. */ - void setCurrentTime( QTime aCurrentTime ); + void setConnectionStatus( QDateTime aCurrentTime, bool aConnected, QTime aLastUpdated = QTime(), QString aError = ""); //! Slot. Used to indicate changes in the status of the default room. /*! * Slot. Used to indicate changes in the status of the default room. If the specified until time equals @@ -60,9 +61,11 @@ public slots: */ void statusChanged( const Room::Status aStatus, const QTime aUntil ); + void showError( QString aError ); + void currentRoomChanged( Room *aRoom ); - void viewResized(const QSize &newSize, const QSize &oldSize) { } + void viewResized(const QSize &/*newSize*/, const QSize &/*oldSize*/) { } void connectionEstablished(); @@ -88,8 +91,9 @@ private: QLabel *iDefaultRoomLabel; QLabel *iStatusLabel; QLabel *iUntilTextLabel; - QLabel *iConnectionLabel; - TimeDisplayWidget *iTimeDisplay; + BorderedBarWidget *iTimeDisplay; + BorderedBarWidget *iStatusBar; + QString iTimeFormat; static QTime endOfTheDay;