equal
deleted
inserted
replaced
20 |
20 |
21 #include <HbIconItem> |
21 #include <HbIconItem> |
22 |
22 |
23 // FORWARD DECLARATIONS |
23 // FORWARD DECLARATIONS |
24 class UniViewerUtils; |
24 class UniViewerUtils; |
|
25 class UniMessageInfo; |
|
26 class ThumbnailManager; |
|
27 |
25 |
28 |
26 /** |
29 /** |
27 * This widget displays the pixmap content in viewer. |
30 * This widget displays the pixmap content in viewer. |
28 */ |
31 */ |
29 class UniViewerPixmapWidget: public HbIconItem |
32 class UniViewerPixmapWidget: public HbIconItem |
42 */ |
45 */ |
43 ~UniViewerPixmapWidget(); |
46 ~UniViewerPixmapWidget(); |
44 |
47 |
45 /** |
48 /** |
46 * Sets the pixmap content to be displayed. |
49 * Sets the pixmap content to be displayed. |
47 * @param mimeType Mime type of the pixmap. |
50 * @param info Object information. |
48 * @param pixmapPath File path of the pixmap. |
|
49 */ |
51 */ |
50 void populate(const QString &mimeType, const QString &pixmapPath); |
52 void populate(UniMessageInfo *info); |
51 |
53 |
52 signals: |
54 signals: |
53 |
55 |
54 /** |
56 /** |
55 * Signal emitted when widget is clicked. |
57 * Signal emitted when widget is clicked. |
81 |
83 |
82 /** |
84 /** |
83 * |
85 * |
84 */ |
86 */ |
85 void handleSave(); |
87 void handleSave(); |
86 |
88 |
87 /** |
89 /** |
88 * Slot to regrab gesture after some delay (300 ms) to avoid multiple gesture |
90 * Slot to regrab gesture after some delay (300 ms) to avoid multiple gesture |
89 * events back to back. |
91 * events back to back. |
90 */ |
92 */ |
91 void regrabGesture(); |
93 void regrabGesture(); |
92 |
94 |
|
95 /** |
|
96 * Slot hit when the thumbnail is ready. |
|
97 */ |
|
98 void thumbnailReady(const QPixmap& pixmap, void *data, int id, int error); |
|
99 |
93 private: |
100 private: |
|
101 |
|
102 /** |
|
103 * Initialization function. |
|
104 */ |
|
105 void init(); |
94 |
106 |
95 /** |
107 /** |
96 * Handles short tap event. |
108 * Handles short tap event. |
97 */ |
109 */ |
98 void handleShortTap(); |
110 void handleShortTap(); |
110 * Own |
122 * Own |
111 */ |
123 */ |
112 UniViewerUtils *mViewerUtils; |
124 UniViewerUtils *mViewerUtils; |
113 |
125 |
114 /** |
126 /** |
|
127 * ThumbnailManager |
|
128 * Own. |
|
129 */ |
|
130 ThumbnailManager *mThumbnailManager; |
|
131 |
|
132 /** |
115 * Mime Type of pixmap. |
133 * Mime Type of pixmap. |
116 */ |
134 */ |
117 QString mMimeType; |
135 QString mMimeType; |
118 |
136 |
119 /** |
137 /** |