class Engine;\r
class MeetingInfoDialog;\r
class SettingsView;\r
+class ProgressBar;\r
+class Configuration;\r
\r
//! UserInterface class. Behaves as a proxy between the user interface and application's business logic.\r
/*!\r
//! Constructor.\r
/*!\r
* Constructor of WindowManager.\r
+ * \param aConfiguration The pointer to configuration.\r
*/\r
- WindowManager();\r
+ WindowManager( Configuration *aConfiguration );\r
//! Destructor.\r
virtual ~WindowManager();\r
-\r
-signals:\r
- //! Request current status of the room.\r
- /*!\r
- * Signal is emitted when there is need to check current status of room aRoom.\r
- * \param aRoom Meetingroom which status is requested.\r
- */\r
- void roomStatusInfoNeeded( Room *aRoom );\r
-\r
-private slots:\r
- //! Closes the application.\r
- void closeApplication();\r
- //! Updates the time.\r
/*!\r
- * Forwards the signal of changed time to current view.\r
- * \param aCurrentDateTime Current date and time.\r
+ * Displays an error message\r
+ * \param aErrorMessage Message to be displayd\r
*/\r
- void distributeDateTimeInfo( QDateTime aCurrentDateTime );\r
+ void error( const QString &aErrorMessage );\r
//! Updates the rooms status.\r
- /*!\r
+ /*! \r
* Forwards the signal of changed status to current view.\r
* \param aRoom Room which status is changed.\r
* \param aStatus Current status of room.\r
* \param aTime Time when status is changed.\r
*/\r
void roomStatusChanged( Room *aRoom, Room::Status aStatus, QTime aTime );\r
- //! Displays the weekly view\r
+ //! Shows the password dialog.\r
+ /*!\r
+ * Shows the password dialog.\r
+ * \param aAdminPassword The correct password.\r
+ * \param aMessage The message to be shown in the password dialog.\r
+ */\r
+ void showPasswordDialog( QByteArray aAdminPassword, const QString &aMessage );\r
+ //! Closes the password dialog.\r
+ /*!\r
+ * Closes the password dialog.\r
+ */\r
+ void closePasswordDialog();\r
+ //! Displays the weekly view.\r
+ /*!\r
+ * Displays the weekly view.\r
+ */\r
void showWeeklyView();\r
- //! Displays the screensaver (room status view)\r
- void showRoomStatus();\r
- //! Displays the settings view\r
- void showSettingsView();\r
+ //! Displays the meeting info dialog.\r
/*!\r
- * Displays the meeting info dialog\r
+ * Displays the meeting info dialog. \r
* \param aMeeting Meeting to be displayd\r
*/\r
void showMeetingInfo( Meeting *aMeeting );\r
+ //! Returns the pointer to the weekly view. \r
/*!\r
- * Displays an error message\r
- * \param aErrorMessage Message to be displayd\r
+ * Returns the pointer to the weekly view.\r
+ */\r
+ WeeklyViewWidget * weeklyView();\r
+ //! Switches the views to full screen.\r
+ /*!\r
+ * Switches the views to full screen.\r
+ */\r
+ void fullScreen();\r
+ //! Shows the progress bar.\r
+ /*!\r
+ * Starts showing the progress bar.\r
+ * \param aText The text to be shown in progress bar.\r
+ */\r
+ void showProgressBar( const QString &aText );\r
+ //! Closes the progress bar.\r
+ /*!\r
+ * Closes the progress bar.\r
+ */\r
+ void closeProgressBar();\r
+ \r
+ void insertMeeting( Meeting *aMeeting );\r
+ \r
+ void deleteMeeting( Meeting *aMeeting );\r
+\r
+signals:\r
+ //! Request current status of the room.\r
+ /*!\r
+ * Signal is emitted when there is need to check current status of room aRoom.\r
+ * \param aRoom Meetingroom which status is requested.\r
+ */\r
+ void roomStatusInfoNeeded( Room *aRoom );\r
+ //! Indicate that some user event has happened.\r
+ /*!\r
+ * Signal is emitted if some user event has happened.\r
*/\r
- void error( const QString &aErrorMessage );\r
- //! Restarts the timer to launch the screensaver.\r
void observedEventDetected();\r
- //! Slot for fetching meetings.\r
+ //! Meeting activated.\r
/*!\r
- * Slot. Fetches meetings for room aRoom for currently visible week\r
- * \param aRoom\r
+ * Signal is emitted when a meeting is clicked by the user.\r
+ * \param aMeeting actived meeting.\r
*/\r
- void fetchMeetings( Room *aRoom );\r
- //! Slot for fetching meetings.\r
+ void meetingActivated( Meeting *aMeeting );\r
+ //! Signals if the shown week has been changed.\r
/*!\r
- * Slot. Fetches meetings for current room from date aFrom to week ahead.\r
- * \param aFrom Date where to begin fetching\r
+ * Signal. Emitted if the shown week has been changed.\r
+ * \param aDate The first date of the shown week.\r
*/\r
- void fetchMeetings( QDate aFrom );\r
- //! Slot for popping up the confirmation dialog to change the current operation mode\r
+ void shownWeekChanged( QDate aDate );\r
+ //! Signals change of the meeting room.\r
/*!\r
- * Slot. Asks PopUpMessageBox to pop up a confirmation dialog.\r
- * \param aMode The operation mode to be changed to\r
+ * Signal is emitted when meeting room is changed.\r
+ * \param aRoom Selected meeting room.\r
*/\r
- void changeModeOrdered( DeviceManager::OperationMode aMode );\r
- //! Slot for receiving the status of the entered password\r
+ void currentRoomChanged( Room *aRoom );\r
+ //! Signals when the password dialog buttons are clicked.\r
/*!\r
- * Slot. Receives the status of the entered password and makes the DeviceManager to change the\r
- * operation mode if the password is correct.\r
+ * Signal is emitted when the password dialog buttons are clicked.\r
* \param aPasswordStatus The status of the password.\r
*/\r
void passwordEntered( PasswordDialog::PasswordStatus aPasswordStatus );\r
+ //! Signals when the cancel button in the progress bar is clicked.\r
+ /*!\r
+ * Signal is emitted when the cancel button in the progress bar is clicked.\r
+ */\r
+ void progressBarCancelled();\r
+ \r
+public slots:\r
+ //! Slot for displaying the screensaver (room status view).\r
+ /*!\r
+ * Slot. Displays the screensaver.\r
+ */\r
+ void showRoomStatus();\r
+ //! Slot for updating the time.\r
+ /*!\r
+ * Slot. Forwards the signal of changed time to current view.\r
+ * \param aCurrentDateTime Current date and time.\r
+ */\r
+ void distributeDateTimeInfo( QDateTime aCurrentDateTime );\r
+ \r
+ void updateProgressBar( const QString &aMessage );\r
+ \r
+private slots:\r
+ //! Displays the settings view\r
+ void showSettingsView();\r
\r
private:\r
//! Name of the application.\r
QString iApplicationName;\r
+ //! Defines whether the views should be shown as full screen \r
+ bool iFullScreen;\r
+ //! Pointer to the configuration.\r
+ Configuration *iConfiguration;\r
//! Pointer to the weekly view.\r
WeeklyViewWidget *iWeeklyView;\r
//! Pointer to the screensaver (room status view).\r
RoomStatusIndicatorWidget *iRoomStatusView;\r
//! Pointer to the meeting info dialog\r
MeetingInfoDialog *iMeetingInfo;\r
- //! Pointer to the engine.\r
- Engine *iEngine;\r
- //! Timer to launch the screensaver widget\r
- QTimer *iIdleTimeCounter;\r
//! Pointer to the settings view\r
SettingsView *iSettingsView;\r
+ //! Pointer to the progress bar\r
+ ProgressBar *iProgressBar;\r
+ //! Pointer to the password dialog.\r
+ PasswordDialog *iPasswordDialog;\r
\r
};\r
\r