equal
deleted
inserted
replaced
29 class HbLabel; |
29 class HbLabel; |
30 class ShareUi; |
30 class ShareUi; |
31 |
31 |
32 class CxeEngine; |
32 class CxeEngine; |
33 class CxuiDocumentLoader; |
33 class CxuiDocumentLoader; |
34 |
34 class ThumbnailManager; |
35 |
35 |
36 /** |
36 /** |
37 * Post-capture view |
37 * Post-capture view |
38 */ |
38 */ |
39 class CxuiPostcaptureView : public CxuiView |
39 class CxuiPostcaptureView : public CxuiView |
41 Q_OBJECT |
41 Q_OBJECT |
42 |
42 |
43 public: |
43 public: |
44 CxuiPostcaptureView(QGraphicsItem *parent = 0); |
44 CxuiPostcaptureView(QGraphicsItem *parent = 0); |
45 virtual ~CxuiPostcaptureView(); |
45 virtual ~CxuiPostcaptureView(); |
46 void construct(HbMainWindow *mainwindow, CxeEngine *engine, CxuiDocumentLoader *documentLoader); |
46 void construct(HbMainWindow *mainwindow, CxeEngine *engine, |
|
47 CxuiDocumentLoader *documentLoader, CxuiCaptureKeyHandler *keyHandler, |
|
48 HbActivityManager *activityManager); |
47 |
49 |
48 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); |
50 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); |
|
51 |
|
52 void restoreActivity(const QString &activityId, const QVariant &data); |
|
53 void saveActivity(); |
|
54 void clearActivity(); |
49 |
55 |
50 signals: |
56 signals: |
51 void changeToPrecaptureView(); |
57 void changeToPrecaptureView(); |
52 |
58 |
53 public slots: |
59 public slots: |
|
60 void enterStandby(); |
|
61 void exitStandby(); |
54 void handleCaptureKeyPressed(); |
62 void handleCaptureKeyPressed(); |
55 void handleAutofocusKeyPressed(); |
63 void handleAutofocusKeyPressed(); |
56 |
64 |
57 protected: |
65 protected: |
58 bool eventFilter(QObject *object, QEvent *event); |
66 bool eventFilter(QObject *object, QEvent *event); |
83 void startTimers(); |
91 void startTimers(); |
84 void startPostcaptureTimer(); |
92 void startPostcaptureTimer(); |
85 void startReleaseTimers(); |
93 void startReleaseTimers(); |
86 |
94 |
87 private slots: |
95 private slots: |
88 void handleFocusGained(); |
96 void handleThumbnailReady(QPixmap thumbnail, void *clientData, int id, int errorCode); |
89 void handleFocusLost(); |
|
90 |
97 |
91 private: // data |
98 private: // data |
92 HbToolBar *mStillToolbar; |
99 HbToolBar *mStillToolbar; |
93 HbToolBar *mVideoToolbar; |
100 HbToolBar *mVideoToolbar; |
94 HbToolBar *mEmbeddedToolbar; |
101 HbToolBar *mEmbeddedToolbar; |
123 |
130 |
124 XQApplicationManager mAppManager; |
131 XQApplicationManager mAppManager; |
125 |
132 |
126 bool mDeleteNoteOpen; |
133 bool mDeleteNoteOpen; |
127 |
134 |
|
135 QString mFilename; |
|
136 |
|
137 ThumbnailManager *mThumbnailManager; |
128 }; |
138 }; |
129 |
139 |
130 #endif // CXUIPOSTCAPTUREVIEW_H |
140 #endif // CXUIPOSTCAPTUREVIEW_H |