Corrected the password dialog and progress bar related errors. Texts and titles of...
[qtmeetings] / src / BusinessLogic / UIManager.h
1 #ifndef UIMANAGER_H_
2 #define UIMANAGER_H_
3
4 #include <QObject>
5 #include <QList>
6
7 #include "Meeting.h"
8 #include "DeviceManager.h"
9 #include "PasswordDialog.h"
10
11 class Engine;
12 class WindowManager;
13 class WeeklyViewWidget;
14 class SettingsView;
15 class RoomStatusIndicatorWidget;
16 class ProgressBar;
17 class MeetingInfoDialog;
18 class CommunicationManager;
19 class QDateTime;
20
21 class UIManager : public QObject
22 {
23         Q_OBJECT
24         
25 public:
26         UIManager( Engine *aEngine, WindowManager *aWindowManager );
27         virtual ~UIManager();
28         
29         void connectDeviceManager( DeviceManager *aDeviceManager );
30         void connectCommunicationManager( CommunicationManager *aCommunicationManager );
31         void showMainView();
32
33 signals:
34         
35 public slots:
36
37         void settingsViewRequest();
38         void settingsOkClicked();
39         void roomStatusIndicatorRequested();
40         void previousViewRestored();
41         void changeModeOrdered( DeviceManager::OperationMode aMode );
42         
43 private slots:
44
45         void meetingsFetched( const QList<Meeting*> &aMeetings );
46         void meetingDetailsFetched( Meeting &aDetailedMeeting );
47         void currentRoomChanged( Room *aRoom );
48         void progressBarCancelled();
49         void updateTime( QDateTime aDateTime );
50         void passwordEntered( PasswordDialog::PasswordStatus aStatus );
51         void showMeetingProgressBar( Meeting *aMeeting );
52         void updateProgressBarText( const QString &aText );
53         void hideProgressBar();
54
55 private:
56         
57         void createWeeklyView();
58         void createSettingsView();
59         void createRoomStatusIndicator();
60         void createPasswordDialog();
61         void createProgressBar();
62         void createMeetingInfoDialog();
63         
64 private:
65         Engine *iEngine;
66         WindowManager *iWindowManager;
67         
68         WeeklyViewWidget *iWeeklyView;
69         SettingsView *iSettingsView;
70         RoomStatusIndicatorWidget *iRoomStatusIndicator;
71         PasswordDialog *iPasswordDialog;
72         ProgressBar *iProgressBar;
73         MeetingInfoDialog *iMeetingInfo;
74 };
75
76 #endif /*UIMANAGER_H_*/