29 class QGraphicsSceneMouseEvent; |
29 class QGraphicsSceneMouseEvent; |
30 class HbMainWindow; |
30 class HbMainWindow; |
31 class CxuiApplication; |
31 class CxuiApplication; |
32 class CxuiCaptureKeyHandler; |
32 class CxuiCaptureKeyHandler; |
33 class CxuiPrecaptureView; |
33 class CxuiPrecaptureView; |
34 class CxuiStillPrecaptureView; |
|
35 class CxuiVideoPrecaptureView; |
|
36 class CxuiPostcaptureView; |
|
37 class CxeEngine; |
34 class CxeEngine; |
38 class CxuiDocumentLoader; |
35 class CxuiDocumentLoader; |
39 class CxuiErrorManager; // class that handles all errors in ui. |
36 class CxuiErrorManager; |
40 class CxuiSceneModeView; |
|
41 class CxuiView; |
37 class CxuiView; |
42 |
38 |
43 class CxuiViewManager : public QObject |
39 class CxuiViewManager : public QObject |
44 { |
40 { |
45 Q_OBJECT |
41 Q_OBJECT |
46 |
42 |
47 public: |
43 public: |
48 CxuiViewManager(CxuiApplication &application, HbMainWindow &mainWindow, CxeEngine &engine); |
44 CxuiViewManager(CxuiApplication &application, HbMainWindow &mainWindow, CxeEngine &engine); |
49 ~CxuiViewManager(); |
45 ~CxuiViewManager(); |
50 |
46 |
51 CxuiDocumentLoader *documentLoader(); |
|
52 |
|
53 CxuiApplicationState &applicationState(); |
|
54 |
|
55 void initEngine(); |
|
56 public slots: |
47 public slots: |
57 void changeToPostcaptureView(); |
48 void changeToPostcaptureView(); |
58 void changeToPrecaptureView(); |
49 void changeToPrecaptureView(); |
59 void switchCamera(); |
50 void switchCamera(); |
60 void showScenesView(); |
51 void showScenesView(); |
78 CxuiView *currentView() const; |
69 CxuiView *currentView() const; |
79 void initStartupView(); |
70 void initStartupView(); |
80 CxuiView *createView(const QString &viewName); |
71 CxuiView *createView(const QString &viewName); |
81 CxuiPrecaptureView* getPrecaptureView(Cxe::CameraMode mode, Cxe::CameraIndex camera); |
72 CxuiPrecaptureView* getPrecaptureView(Cxe::CameraMode mode, Cxe::CameraIndex camera); |
82 |
73 |
83 CxuiView *createSceneModesView(); |
74 void connectSignals(CxuiView *view); |
84 |
75 void disconnectSignals(CxuiView *view = NULL); |
85 void connectSignals(QObject *view); |
76 void connectPreCaptureSignals(CxuiPrecaptureView *view); |
86 void disconnectSignals(QObject *view = NULL); |
|
87 void connectPreCaptureSignals(); |
|
88 void connectPostCaptureSignals(); |
77 void connectPostCaptureSignals(); |
89 void connectSceneModeSignals(); |
78 void connectSceneModeSignals(); |
90 void connectCaptureKeySignals(); |
79 void connectCaptureKeySignals(CxuiView *view); |
91 |
80 |
92 void handleExitingNormalState(); |
81 void handleExitingNormalState(); |
93 void clearAllActivities(); |
82 void clearAllActivities(); |
94 |
83 |
95 private: |
84 private: |
103 CxeEngine &mEngine; |
92 CxeEngine &mEngine; |
104 CxuiCaptureKeyHandler *mKeyHandler; |
93 CxuiCaptureKeyHandler *mKeyHandler; |
105 CxuiDocumentLoader *mCameraDocumentLoader; |
94 CxuiDocumentLoader *mCameraDocumentLoader; |
106 CxuiApplicationState *mApplicationState; |
95 CxuiApplicationState *mApplicationState; |
107 CxuiErrorManager *mErrorManager; |
96 CxuiErrorManager *mErrorManager; |
108 CxuiSceneModeView *mSceneModeView; |
|
109 QTimer mStandbyTimer; |
97 QTimer mStandbyTimer; |
110 }; |
98 }; |
111 |
99 |
112 #endif // CXUIVIEWMANAGER_H |
100 #endif // CXUIVIEWMANAGER_H |