|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CNTIMAGEEDITORVIEW_H |
|
19 #define CNTIMAGEEDITORVIEW_H |
|
20 |
|
21 #include <QObject> |
|
22 #include "cntbaseview.h" |
|
23 #include <xqappmgr.h> |
|
24 |
|
25 class HbLabel; |
|
26 class HbScrollArea; |
|
27 class XQAiwRequest; |
|
28 class ThumbnailManager; |
|
29 |
|
30 QTM_BEGIN_NAMESPACE |
|
31 class QContact; |
|
32 class QContactAvatar; |
|
33 QTM_END_NAMESPACE |
|
34 |
|
35 QTM_USE_NAMESPACE |
|
36 |
|
37 class CntImageEditorView : public CntBaseView |
|
38 { |
|
39 Q_OBJECT |
|
40 |
|
41 public: |
|
42 CntImageEditorView(CntViewManager *viewManager, QGraphicsItem *parent = 0); |
|
43 ~CntImageEditorView(); |
|
44 |
|
45 CntViewParameters::ViewId viewId() const { return CntViewParameters::imageEditorView; } |
|
46 void activateView(const CntViewParameters &viewParameters); |
|
47 |
|
48 public slots: |
|
49 void aboutToCloseView(); |
|
50 void openCamera(); |
|
51 void openGallery(); |
|
52 void handleImageChange(const QVariant &value); |
|
53 void thumbnailReady( const QPixmap& pixmap, void *data, int id, int error ); |
|
54 |
|
55 protected: |
|
56 void resizeEvent(QGraphicsSceneResizeEvent *event); |
|
57 |
|
58 #ifdef PBK_UNIT_TEST |
|
59 public: |
|
60 #else |
|
61 private: |
|
62 #endif |
|
63 QContact *mContact; |
|
64 QContactAvatar *mAvatar; |
|
65 HbLabel *mImageLabel; |
|
66 HbScrollArea *mScrollArea; |
|
67 XQAiwRequest *mRequest; |
|
68 XQApplicationManager mAppManager; |
|
69 ThumbnailManager *mThumbnailManager; |
|
70 HbWidget *mContainerWidget; |
|
71 }; |
|
72 |
|
73 #endif // CNTIMAGEEDITORVIEW_H |