}
}
+void UIManager::connectionLost()
+{
+ qDebug() << "UIManager::connectionLost()";
+ iWeeklyView->connectionLost();
+ iSettingsView->connectionLost();
+ iRoomStatusIndicator->connectionLost();
+}
+
+void UIManager::connectionEstablished()
+{
+ qDebug() << "UIManager::connectionEstablished()";
+ iWeeklyView->connectionEstablished();
+ iSettingsView->connectionEstablished();
+ iRoomStatusIndicator->connectionEstablished();
+}
+
void UIManager::currentRoomChanged(Room *aRoom)
{
+ qDebug() << "[UIManager::currentRoomChanged] <Invoked>";
if ( iWeeklyView != 0 )
{
QDateTime from = QDateTime( iWeeklyView->beginnigOfShownWeek() );
public slots:
+ //! Handles setting view request.
+ /*!
+ * Handles request to show settings view. Makes the
+ * view visible and stops the idle time counter.
+ */
void settingsViewRequest();
+ //! Handles setting views ok clicked.
+ /*!
+ * Handles the setting views Ok button clicked
+ * signal. Sets the weekly view visible and starts
+ * the idle time counter.
+ */
void settingsOkClicked();
+ //! Handles room status indicator view request.
+ /*!
+ * Handles the request to show room status indicator
+ * view. Sets the view visible and stops the idle
+ * time counter. The WindowManager handles restoring
+ * what ever view was previously visible.
+ */
void roomStatusIndicatorRequested();
+ //! Handles previousViewRestored signal.
+ /*!
+ * Handles the restoring of previous view. This is usually
+ * signaled by WindowManager when room status indicator
+ * view is being hidden.
+ */
void previousViewRestored();
+ //! Handle change mode order.
+ /*!
+ * Handles change mode order. Displays the password query dialog
+ * and waits for its response.
+ */
void changeModeOrdered( DeviceManager::OperationMode aMode );
+ //! Handles select room change.
+ /*!
+ * Handles the changing of currently select room. Engine is requested
+ * to start fetching new meetings for currently shown week.
+ */
+ void currentRoomChanged( Room *aRoom );
+
+ //! Shows any view specific indicators for connection error
+ void connectionLost();
+
+ //! Removes any view specific indicators for connection error
+ void connectionEstablished();
+
+
private slots:
void meetingsFetched( const QList<Meeting*> &aMeetings );
}\r
setPalette( createPalette( aStatus ) );\r
}\r
+\r
+void RoomStatusIndicatorWidget::connectionEstablished()\r
+{\r
++ \r
+ if( !connectedOnce )\r
+ {\r
+ // Just got the required meetings for the first time\r
+ qDebug() << "RoomStatusIndicatorWidget::connectionEstablished() first call";\r
+ iDefaultRoomLabel->setHidden( false );\r
+ iUntilTextLabel->setHidden( false );\r
+ iStatusLabel->setHidden( false );\r
+ }\r
++ else qDebug() << "RoomStatusIndicatorWidget::connectionEstablished()";\r
+ ViewBase::connectionEstablished();\r
+ iConnectionLabel->setHidden( true );\r
+}\r
+\r
+void RoomStatusIndicatorWidget::connectionLost()\r
+{\r
+ ViewBase::connectionLost();\r
+ iConnectionLabel->setHidden( false );\r
+}\r
+\r