52 * @param documentLoader |
52 * @param documentLoader |
53 * @param keyHandler |
53 * @param keyHandler |
54 */ |
54 */ |
55 void construct(HbMainWindow *mainwindow, CxeEngine *engine, |
55 void construct(HbMainWindow *mainwindow, CxeEngine *engine, |
56 CxuiDocumentLoader *documentLoader, |
56 CxuiDocumentLoader *documentLoader, |
57 CxuiCaptureKeyHandler *keyHandler = NULL); |
57 CxuiCaptureKeyHandler *keyHandler, |
|
58 HbActivityManager *activityManager); |
58 |
59 |
59 /** |
60 /** |
60 * Loads widgets that are needed right from the start. |
61 * Loads widgets that are needed right from the start. |
61 */ |
62 */ |
62 virtual void loadDefaultWidgets(); |
63 virtual void loadDefaultWidgets(); |
64 /** |
65 /** |
65 * Loads widgets that are not part of the default section in layouts xml. |
66 * Loads widgets that are not part of the default section in layouts xml. |
66 * Widgets are created at the time they are first loaded. |
67 * Widgets are created at the time they are first loaded. |
67 */ |
68 */ |
68 virtual void loadWidgets(); |
69 virtual void loadWidgets(); |
|
70 |
|
71 void restoreActivity(const QString &activityId, const QVariant &data); |
|
72 void saveActivity(); |
|
73 void clearActivity(); |
69 |
74 |
70 public slots: |
75 public slots: |
71 |
76 |
72 // from CxuiPrecaptureView |
77 // from CxuiPrecaptureView |
73 virtual void handleSettingValueChanged(const QString& key, QVariant newValue); |
78 virtual void handleSettingValueChanged(const QString& key, QVariant newValue); |
84 void goToStill(); |
89 void goToStill(); |
85 void showEvent(QShowEvent *event); |
90 void showEvent(QShowEvent *event); |
86 void handleVideoStateChanged(CxeVideoCaptureControl::State newState, CxeError::Id error); |
91 void handleVideoStateChanged(CxeVideoCaptureControl::State newState, CxeError::Id error); |
87 void handleCaptureKeyPressed(); |
92 void handleCaptureKeyPressed(); |
88 void prepareNewVideo(CxeError::Id error = CxeError::None); |
93 void prepareNewVideo(CxeError::Id error = CxeError::None); |
89 void toggleLight(); |
|
90 void launchVideoScenePopup(); |
94 void launchVideoScenePopup(); |
91 void launchSetting(); |
95 void launchSetting(); |
92 |
|
93 /** |
|
94 * Application focus slots are called if focus state is changed. |
|
95 * Recording is stopped and camera released or reserved according to new state. |
|
96 */ |
|
97 void handleFocusLost(); |
|
98 |
|
99 /** |
|
100 * Battery almost empty warning signal. |
|
101 * Need to stop ongoing recording. |
|
102 */ |
|
103 void handleBatteryEmpty(); |
|
104 |
|
105 void updateTimeLabels(); |
96 void updateTimeLabels(); |
106 |
97 |
107 // from CxuiPrecaptureView |
98 // from CxuiPrecaptureView |
108 void hideControls(); |
99 void hideControls(); |
109 |
100 |
110 protected: |
101 protected: |
111 |
102 |
112 void setVideoTime(HbLabel* label, int time); |
103 void setVideoTime(HbLabel* label, int time); |
113 bool getElapsedTime(); |
104 bool getElapsedTime(); |
114 void getRemainingTime(); |
105 void getRemainingTime(); |
115 virtual bool allowShowControls() const; |
106 bool allowShowControls() const; |
116 virtual void showToolbar(); |
107 bool isFeedbackEnabled() const; |
|
108 void showToolbar(); |
117 void disableFeedback(); |
109 void disableFeedback(); |
118 void enableFeedback(); |
110 void enableFeedback(); |
119 |
111 |
120 void initializeSettingsGrid(); |
112 void initializeSettingsGrid(); |
|
113 bool isPostcaptureOn() const; |
|
114 void updateSceneIcon(const QString& sceneId); |
|
115 void updateQualityIcon(); |
121 void setRecordingItemsVisibility(bool visible); |
116 void setRecordingItemsVisibility(bool visible); |
122 |
117 |
123 // from QObject |
118 // from QObject |
124 bool eventFilter(QObject *object, QEvent *event); |
119 bool eventFilter(QObject *object, QEvent *event); |
125 |
120 |