author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 23 Jun 2010 18:09:17 +0300 | |
changeset 43 | 35b64624a9e7 |
parent 34 | 84197e66a4bd |
child 44 | 36f374c67aa8 |
permissions | -rw-r--r-- |
31 | 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 |
#include "msgconversationwidget.h" |
|
18 |
||
19 |
#include <HbTextItem> |
|
20 |
#include <HbFrameItem> |
|
21 |
#include <HbFrameDrawer> |
|
22 |
#include <HbIconItem> |
|
23 |
#include <QPainter> |
|
24 |
#include <QPixmap> |
|
25 |
#include <QImageReader> |
|
26 |
#include <QDir> |
|
27 |
#include <HbEffect> |
|
28 |
#include <s32strm.h> |
|
29 |
#include <s32mem.h> |
|
30 |
#include <fbs.h> |
|
31 |
#include <sqldb.h> |
|
32 |
#include <QBool> |
|
33 |
#include <QCoreApplication> |
|
34 |
#include <HbEvent> |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
35 |
#include <HbMainWindow> |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
36 |
#include <hbinstance> |
31 | 37 |
|
38 |
#include "debugtraces.h" |
|
39 |
||
40 |
#include "convergedmessage.h" |
|
41 |
#include "conversationsengine.h" |
|
42 |
||
43 |
// Icons |
|
44 |
const QString MSG_HIGH_PRIORITY_ICON("qtg_small_priority_high"); |
|
45 |
const QString MSG_LOW_PRIORITY_ICON("qtg_small_priority_low"); |
|
46 |
const QString MSG_ATTACH_ICON("qtg_small_attachment"); |
|
47 |
const QString MSG_AUDIO_ICON("qtg_large_music_player"); |
|
48 |
const QString MSG_AUDIO_PLAY_ICON("qtg_large_music_player"); |
|
49 |
||
50 |
||
51 |
// Frames |
|
52 |
const QString CV_RECEIVED_NORMAL_FR("qtg_fr_convlist_received_normal"); |
|
53 |
const QString CV_RECEIVED_PRESSED_FR("qtg_fr_convlist_received_pressed"); |
|
54 |
const QString CV_RECEIVED_HIGHLIGHT_FR("qtg_fr_convlist_received_highlight"); |
|
55 |
const QString CV_SENT_NORMAL_FR("qtg_fr_convlist_sent_normal"); |
|
56 |
const QString CV_SENT_PRESSED_FR("qtg_fr_convlist_sent_pressed"); |
|
57 |
const QString CV_SENT_HIGHLIGHT_FR("qtg_fr_convlist_sent_highlight"); |
|
58 |
const QString NEW_ITEM_FRAME("qtg_fr_list_new_item"); |
|
59 |
||
60 |
//--------------------------------------------------------------- |
|
61 |
// MsgConversationWidget::MsgConversationWidget |
|
62 |
// @see header file |
|
63 |
//--------------------------------------------------------------- |
|
64 |
MsgConversationWidget::MsgConversationWidget(QGraphicsItem *parent) : |
|
65 |
HbWidget(parent), |
|
66 |
mHasAttachment(false), |
|
67 |
mHasImage(false), |
|
68 |
mHasAudio(false), |
|
69 |
mHasVideo(false), |
|
70 |
mIsPlayable(false), |
|
71 |
mIncoming(false), |
|
72 |
mUnread(false), |
|
73 |
mIsMMS(false), |
|
74 |
mIsMMSNotification(false), |
|
75 |
mPriority(0), |
|
76 |
mSendingState(Unknown), |
|
77 |
mNotificationState(0), |
|
78 |
mNewFrameItem(NULL), |
|
79 |
mBubbleFrameItem(NULL), |
|
80 |
mSubjectTextItem(NULL), |
|
81 |
mBodyTextItem(NULL), |
|
82 |
mTimeStampTextItem(NULL), |
|
83 |
mPriorityIconItem(NULL), |
|
84 |
mAttachmentIconItem(NULL), |
|
85 |
mAudioIconItem(NULL), |
|
86 |
mVideoIconItem(NULL), |
|
87 |
mPlayIconItem(NULL), |
|
88 |
mPreviewIconItem(NULL) |
|
89 |
||
90 |
||
91 |
{ |
|
92 |
init(); |
|
93 |
} |
|
94 |
||
95 |
//--------------------------------------------------------------- |
|
96 |
// MsgConversationWidget::~MsgConversationWidget |
|
97 |
// @see header file |
|
98 |
//--------------------------------------------------------------- |
|
99 |
MsgConversationWidget::~MsgConversationWidget() |
|
100 |
{ |
|
101 |
||
102 |
} |
|
103 |
||
104 |
//--------------------------------------------------------------- |
|
105 |
// MsgConversationWidget::init |
|
106 |
// @see header file |
|
107 |
//--------------------------------------------------------------- |
|
108 |
void MsgConversationWidget::init() |
|
109 |
{ |
|
110 |
// Common to SMS/MMS |
|
111 |
||
112 |
mBubbleFrameItem = new HbFrameItem(this); |
|
113 |
mBubbleFrameItem->frameDrawer().setFrameType(HbFrameDrawer::NinePieces); |
|
114 |
HbStyle::setItemName(mBubbleFrameItem, "bubble"); |
|
115 |
||
116 |
mNewFrameItem = new HbFrameItem(this); |
|
117 |
mNewFrameItem->frameDrawer().setFrameType(HbFrameDrawer::ThreePiecesVertical); |
|
118 |
HbStyle::setItemName(mNewFrameItem, "newItemIcon"); |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
119 |
mSubjectTextItem = new HbTextItem(this); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
120 |
mSubjectTextItem->setTextWrapping(Hb::TextWordWrap); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
121 |
HbStyle::setItemName(mSubjectTextItem, "subject"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
122 |
mBodyTextItem = new HbTextItem(this); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
123 |
mBodyTextItem->setTextWrapping(Hb::TextWordWrap); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
124 |
HbStyle::setItemName(mBodyTextItem, "bodyText"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
125 |
mPreviewIconItem = new HbIconItem(this); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
126 |
mPreviewIconItem->setAlignment(Qt::AlignHCenter | Qt::AlignTop); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
127 |
HbStyle::setItemName(mPreviewIconItem, "preview"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
128 |
mPriorityIconItem = new HbIconItem(this); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
129 |
HbStyle::setItemName(mPriorityIconItem, "priority"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
130 |
mAttachmentIconItem = new HbIconItem(this); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
131 |
HbStyle::setItemName(mAttachmentIconItem, "attachment"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
132 |
mPlayIconItem = new HbIconItem(this); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
133 |
HbStyle::setItemName(mPlayIconItem, "playIcon"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
134 |
mTimeStampTextItem = new HbTextItem(this); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
135 |
HbStyle::setItemName(mTimeStampTextItem, "timeStamp"); |
31 | 136 |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
137 |
HbMainWindow *mainWindow = hbInstance->allMainWindows()[0]; |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
138 |
connect(mainWindow, SIGNAL(orientationChanged(Qt::Orientation)), this, |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
139 |
SLOT(orientationchanged(Qt::Orientation)),Qt::UniqueConnection); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
140 |
polishEvent(); |
31 | 141 |
} |
142 |
||
143 |
//--------------------------------------------------------------- |
|
144 |
// MsgConversationWidget::setSubject |
|
145 |
// @see header file |
|
146 |
//--------------------------------------------------------------- |
|
147 |
void MsgConversationWidget::setSubject(const QString &subject) |
|
148 |
{ |
|
149 |
HbStyle::setItemName(mSubjectTextItem, "subject"); |
|
150 |
mSubjectTextItem->setText(subject); |
|
151 |
mSubjectTextItem->show(); |
|
152 |
} |
|
153 |
||
154 |
//--------------------------------------------------------------- |
|
155 |
// MsgConversationWidget::setBodyText |
|
156 |
// @see header file |
|
157 |
//--------------------------------------------------------------- |
|
158 |
void MsgConversationWidget::setBodyText(const QString &body) |
|
159 |
{ |
|
160 |
HbStyle::setItemName(mBodyTextItem, "bodyText"); |
|
161 |
||
162 |
mBodyTextItem->setText(body); |
|
163 |
mBodyTextItem->show(); |
|
164 |
} |
|
165 |
||
166 |
//--------------------------------------------------------------- |
|
34
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
167 |
// MsgConversationWidget::setPreviewIcon |
31 | 168 |
// @see header file |
169 |
//--------------------------------------------------------------- |
|
34
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
170 |
void MsgConversationWidget::setPreviewIcon(HbIcon& icon) |
31 | 171 |
{ |
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
172 |
QCRITICAL_WRITE("MsgConversationWidget::setPreviewIcon start.") |
34
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
173 |
|
31 | 174 |
|
175 |
HbStyle::setItemName(mPreviewIconItem, "preview"); |
|
176 |
||
34
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
177 |
mPreviewIconItem->setIcon(icon); |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
178 |
mPreviewIconItem->setPreferredSize(icon.size()); |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
179 |
mPreviewIconItem->show(); |
31 | 180 |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
181 |
QCRITICAL_WRITE("MsgConversationWidget::setPreviewIcon end.") |
34
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
182 |
} |
31 | 183 |
|
184 |
||
185 |
//--------------------------------------------------------------- |
|
186 |
// MsgConversationWidget::setPriority |
|
187 |
// @see header file |
|
188 |
//--------------------------------------------------------------- |
|
189 |
void MsgConversationWidget::setPriority(int priority) |
|
190 |
{ |
|
191 |
mPriority = priority; |
|
192 |
||
193 |
if (priority) |
|
194 |
{ |
|
195 |
HbStyle::setItemName(mPriorityIconItem, "priority"); |
|
196 |
if (ConvergedMessage::Low == priority) |
|
197 |
{ |
|
198 |
mPriorityIconItem->setIcon(HbIcon(MSG_LOW_PRIORITY_ICON)); |
|
199 |
} |
|
200 |
else if (ConvergedMessage::High == priority) |
|
201 |
{ |
|
202 |
mPriorityIconItem->setIcon(HbIcon(MSG_HIGH_PRIORITY_ICON)); |
|
203 |
} |
|
204 |
mPriorityIconItem->show(); |
|
205 |
} |
|
206 |
} |
|
207 |
||
208 |
//--------------------------------------------------------------- |
|
209 |
// MsgConversationWidget::priority |
|
210 |
// @see header file |
|
211 |
//--------------------------------------------------------------- |
|
212 |
int MsgConversationWidget::priority() |
|
213 |
{ |
|
214 |
return mPriority; |
|
215 |
} |
|
216 |
||
217 |
//--------------------------------------------------------------- |
|
218 |
// MsgConversationWidget::setAttachment |
|
219 |
// @see header file |
|
220 |
//--------------------------------------------------------------- |
|
221 |
void MsgConversationWidget::setAttachment(bool attachment) |
|
222 |
{ |
|
223 |
mHasAttachment = attachment; |
|
224 |
||
225 |
if (attachment) |
|
226 |
{ |
|
227 |
HbStyle::setItemName(mAttachmentIconItem, "attachment"); |
|
228 |
mAttachmentIconItem->setIcon(HbIcon(MSG_ATTACH_ICON)); |
|
229 |
mAttachmentIconItem->show(); |
|
230 |
} |
|
231 |
} |
|
232 |
||
233 |
//--------------------------------------------------------------- |
|
234 |
// MsgConversationWidget::hasAttachment |
|
235 |
// @see header file |
|
236 |
//--------------------------------------------------------------- |
|
237 |
bool MsgConversationWidget::hasAttachment() |
|
238 |
{ |
|
239 |
return mHasAttachment; |
|
240 |
} |
|
241 |
||
242 |
//--------------------------------------------------------------- |
|
243 |
// MsgConversationWidget::setImage |
|
244 |
// @see header file |
|
245 |
//--------------------------------------------------------------- |
|
246 |
void MsgConversationWidget::setImage(bool image) |
|
247 |
{ |
|
248 |
mHasImage = image; |
|
249 |
} |
|
250 |
||
251 |
//--------------------------------------------------------------- |
|
252 |
// MsgConversationWidget::hasImage |
|
253 |
// @see header file |
|
254 |
//--------------------------------------------------------------- |
|
255 |
bool MsgConversationWidget::hasImage() |
|
256 |
{ |
|
257 |
return mHasImage; |
|
258 |
} |
|
259 |
||
260 |
//--------------------------------------------------------------- |
|
261 |
// MsgConversationWidget::setAudio |
|
262 |
// @see header file |
|
263 |
//--------------------------------------------------------------- |
|
264 |
void MsgConversationWidget::setAudio(bool audio) |
|
265 |
{ |
|
266 |
mHasAudio = audio; |
|
267 |
} |
|
268 |
||
269 |
//--------------------------------------------------------------- |
|
270 |
// MsgConversationWidget::hasAudio |
|
271 |
// @see header file |
|
272 |
//--------------------------------------------------------------- |
|
273 |
bool MsgConversationWidget::hasAudio() |
|
274 |
{ |
|
275 |
return mHasAudio; |
|
276 |
} |
|
277 |
||
278 |
//--------------------------------------------------------------- |
|
279 |
// MsgConversationWidget::displayAudioIcon |
|
280 |
// @see header file |
|
281 |
//--------------------------------------------------------------- |
|
282 |
void MsgConversationWidget::displayAudioIcon(const QString &iconPath) |
|
283 |
{ |
|
284 |
if (hasAudio()) |
|
285 |
{ |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
286 |
if (!hasImage()) |
31 | 287 |
{ |
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
288 |
HbStyle::setItemName(mPreviewIconItem, "preview"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
289 |
if(iconPath.isEmpty()) |
31 | 290 |
{ |
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
291 |
qreal iconSize = 0; |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
292 |
style()->parameter("hb-param-graphic-size-primary-large",iconSize); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
293 |
HbIcon icon(MSG_AUDIO_PLAY_ICON); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
294 |
icon.setHeight(iconSize); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
295 |
icon.setWidth(iconSize); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
296 |
mPreviewIconItem->setIcon(icon); |
31 | 297 |
} |
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
298 |
else |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
299 |
{ |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
300 |
mPreviewIconItem->setIconName(iconPath); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
301 |
} |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
302 |
mPreviewIconItem->show(); |
31 | 303 |
} |
304 |
else |
|
305 |
{ |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
306 |
HbStyle::setItemName(mPlayIconItem, "playIcon"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
307 |
mPlayIconItem->setIconName(iconPath.isEmpty() ? MSG_AUDIO_PLAY_ICON : iconPath); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
308 |
mPlayIconItem->show(); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
309 |
} |
31 | 310 |
} |
311 |
} |
|
312 |
||
313 |
//--------------------------------------------------------------- |
|
314 |
// MsgConversationWidget::setVideo |
|
315 |
// @see header file |
|
316 |
//--------------------------------------------------------------- |
|
317 |
void MsgConversationWidget::setVideo(bool video) |
|
318 |
{ |
|
319 |
mHasVideo = video; |
|
320 |
} |
|
321 |
||
322 |
//--------------------------------------------------------------- |
|
323 |
// MsgConversationWidget::hasVideo |
|
324 |
// @see header file |
|
325 |
//--------------------------------------------------------------- |
|
326 |
bool MsgConversationWidget::hasVideo() |
|
327 |
{ |
|
328 |
return mHasVideo; |
|
329 |
} |
|
330 |
||
331 |
//--------------------------------------------------------------- |
|
332 |
// MsgConversationWidget::setPlayable |
|
333 |
// @see header file |
|
334 |
//--------------------------------------------------------------- |
|
335 |
void MsgConversationWidget::setPlayable(bool playable) |
|
336 |
{ |
|
337 |
mIsPlayable = playable; |
|
338 |
} |
|
339 |
||
340 |
//--------------------------------------------------------------- |
|
341 |
// MsgConversationWidget::isPlayable |
|
342 |
// @see header file |
|
343 |
//--------------------------------------------------------------- |
|
344 |
bool MsgConversationWidget::isPlayable() |
|
345 |
{ |
|
346 |
return mIsPlayable; |
|
347 |
} |
|
348 |
||
349 |
//--------------------------------------------------------------- |
|
350 |
// MsgConversationWidget::setIncoming |
|
351 |
// @see header file |
|
352 |
//--------------------------------------------------------------- |
|
353 |
void MsgConversationWidget::setIncoming(bool incoming) |
|
354 |
{ |
|
355 |
mIncoming = incoming; |
|
356 |
} |
|
357 |
||
358 |
//--------------------------------------------------------------- |
|
359 |
// MsgConversationWidget::isIncoming |
|
360 |
// @see header file |
|
361 |
//--------------------------------------------------------------- |
|
362 |
bool MsgConversationWidget::isIncoming() |
|
363 |
{ |
|
364 |
return mIncoming; |
|
365 |
} |
|
366 |
||
367 |
//--------------------------------------------------------------- |
|
368 |
// MsgConversationWidget::setUnread |
|
369 |
// @see header file |
|
370 |
//--------------------------------------------------------------- |
|
371 |
void MsgConversationWidget::setUnread(bool unread) |
|
372 |
{ |
|
373 |
mUnread = unread; |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
374 |
// Needed for colour group changes to be visible |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
375 |
QCoreApplication::postEvent(this, new HbEvent(HbEvent::ThemeChanged)); |
31 | 376 |
} |
377 |
||
378 |
//--------------------------------------------------------------- |
|
379 |
// MsgConversationWidget::isUnread |
|
380 |
// @see header file |
|
381 |
//--------------------------------------------------------------- |
|
382 |
bool MsgConversationWidget::isUnread() |
|
383 |
{ |
|
384 |
return mUnread; |
|
385 |
} |
|
386 |
||
387 |
//--------------------------------------------------------------- |
|
388 |
// MsgConversationWidget::setMMS |
|
389 |
// @see header file |
|
390 |
//--------------------------------------------------------------- |
|
391 |
void MsgConversationWidget::setMMS(bool isMMS) |
|
392 |
{ |
|
393 |
mIsMMS = isMMS; |
|
394 |
} |
|
395 |
||
396 |
//--------------------------------------------------------------- |
|
397 |
// MsgConversationWidget::isMMS |
|
398 |
// @see header file |
|
399 |
//--------------------------------------------------------------- |
|
400 |
bool MsgConversationWidget::isMMS() |
|
401 |
{ |
|
402 |
return mIsMMS; |
|
403 |
} |
|
404 |
||
405 |
//--------------------------------------------------------------- |
|
406 |
// MsgConversationWidget::setMMSNotification |
|
407 |
// @see header file |
|
408 |
//--------------------------------------------------------------- |
|
409 |
void MsgConversationWidget::setMMSNotification(bool isMMSNotification) |
|
410 |
{ |
|
411 |
mIsMMSNotification = isMMSNotification; |
|
412 |
} |
|
413 |
||
414 |
//--------------------------------------------------------------- |
|
415 |
// MsgConversationWidget::isMMS |
|
416 |
// @see header file |
|
417 |
//--------------------------------------------------------------- |
|
418 |
bool MsgConversationWidget::isMMSNotification() |
|
419 |
{ |
|
420 |
return mIsMMSNotification; |
|
421 |
} |
|
422 |
||
423 |
//--------------------------------------------------------------- |
|
424 |
// MsgConversationWidget::setSendingState |
|
425 |
// @see header file |
|
426 |
//--------------------------------------------------------------- |
|
427 |
void MsgConversationWidget::setSendingState(int state) |
|
428 |
{ |
|
429 |
switch (state) |
|
430 |
{ |
|
431 |
case ConvergedMessage::SentState: |
|
432 |
{ |
|
433 |
mSendingState = Sent; |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
434 |
// Needed for colour group changes to be visible |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
435 |
QCoreApplication::postEvent(this, new HbEvent(HbEvent::ThemeChanged)); |
31 | 436 |
break; |
437 |
} |
|
438 |
case ConvergedMessage::Sending: |
|
439 |
{ |
|
440 |
mSendingState = Sending; |
|
441 |
break; |
|
442 |
} |
|
443 |
case ConvergedMessage::Suspended: |
|
444 |
case ConvergedMessage::Resend: |
|
445 |
{ |
|
446 |
mSendingState = Pending; |
|
447 |
break; |
|
448 |
} |
|
449 |
case ConvergedMessage::Failed: |
|
450 |
{ |
|
451 |
mSendingState = Failed; |
|
452 |
break; |
|
453 |
} |
|
454 |
default: |
|
455 |
{ |
|
456 |
mSendingState = Unknown; |
|
457 |
break; |
|
458 |
} |
|
459 |
} |
|
460 |
} |
|
461 |
||
462 |
//--------------------------------------------------------------- |
|
463 |
// MsgConversationWidget::sendingState |
|
464 |
// @see header file |
|
465 |
//--------------------------------------------------------------- |
|
466 |
MsgConversationWidget::SendingState MsgConversationWidget::sendingState() |
|
467 |
{ |
|
468 |
return mSendingState; |
|
469 |
} |
|
470 |
||
471 |
//--------------------------------------------------------------- |
|
472 |
// MsgConversationWidget::setNotificationState |
|
473 |
// @see header file |
|
474 |
//--------------------------------------------------------------- |
|
475 |
void MsgConversationWidget::setNotificationState(int state) |
|
476 |
{ |
|
477 |
switch (state) |
|
478 |
{ |
|
479 |
case ConvergedMessage::NotifFailed: |
|
480 |
{ |
|
481 |
mNotificationState = NotifFailed; |
|
482 |
break; |
|
483 |
} |
|
484 |
case ConvergedMessage::NotifReadyForFetching: |
|
485 |
{ |
|
486 |
mNotificationState = NotifReadyForFetching; |
|
487 |
break; |
|
488 |
} |
|
489 |
case ConvergedMessage::NotifRetrieving: |
|
490 |
case ConvergedMessage::NotifWaiting: |
|
491 |
{ |
|
492 |
mNotificationState = NotifRetrieving; |
|
493 |
break; |
|
494 |
} |
|
495 |
case ConvergedMessage::NotifExpired: |
|
496 |
{ |
|
497 |
mNotificationState = NotifExpired; |
|
498 |
break; |
|
499 |
} |
|
500 |
default: |
|
501 |
{ |
|
502 |
mNotificationState = NotifUnknown; |
|
503 |
break; |
|
504 |
} |
|
505 |
} |
|
506 |
} |
|
507 |
||
508 |
//--------------------------------------------------------------- |
|
509 |
// MsgConversationWidget::notificationState |
|
510 |
// @see header file |
|
511 |
//--------------------------------------------------------------- |
|
512 |
int MsgConversationWidget::notificationState() |
|
513 |
{ |
|
514 |
return mNotificationState; |
|
515 |
} |
|
516 |
||
517 |
//--------------------------------------------------------------- |
|
518 |
// MsgConversationWidget::setTimeStamp |
|
519 |
// @see header file |
|
520 |
//--------------------------------------------------------------- |
|
521 |
void MsgConversationWidget::setTimeStamp(const QString &timeStamp) |
|
522 |
{ |
|
523 |
HbStyle::setItemName(mTimeStampTextItem, "timeStamp"); |
|
524 |
||
525 |
mTimeStampTextItem->setText(timeStamp); |
|
526 |
mTimeStampTextItem->show(); |
|
527 |
||
528 |
} |
|
529 |
||
530 |
//--------------------------------------------------------------- |
|
531 |
// MsgConversationWidget::drawNewItemFrame |
|
532 |
// @see header file |
|
533 |
//--------------------------------------------------------------- |
|
534 |
void MsgConversationWidget::drawNewItemFrame() |
|
535 |
{ |
|
536 |
if (mUnread) |
|
537 |
{ |
|
538 |
mNewFrameItem->frameDrawer().setFrameGraphicsName(NEW_ITEM_FRAME); |
|
539 |
} |
|
540 |
else |
|
541 |
{ |
|
542 |
mNewFrameItem->frameDrawer().setFrameGraphicsName(QString()); |
|
543 |
} |
|
544 |
} |
|
545 |
||
546 |
//--------------------------------------------------------------- |
|
547 |
// MsgConversationWidget::drawBubbleFrame |
|
548 |
// @see header file |
|
549 |
//--------------------------------------------------------------- |
|
550 |
void MsgConversationWidget::drawBubbleFrame() |
|
551 |
{ |
|
552 |
if(isIncoming()) |
|
553 |
{ |
|
554 |
if (mIsMMSNotification && (mNotificationState == NotifUnknown |
|
555 |
|| mNotificationState == NotifRetrieving )) |
|
556 |
{ |
|
557 |
mBubbleFrameItem->frameDrawer().setFrameGraphicsName( |
|
558 |
CV_RECEIVED_HIGHLIGHT_FR); |
|
559 |
//Inactive state bubble |
|
560 |
} |
|
561 |
else |
|
562 |
{ |
|
563 |
mBubbleFrameItem->frameDrawer().setFrameGraphicsName(CV_RECEIVED_NORMAL_FR); |
|
564 |
} |
|
565 |
} |
|
566 |
else |
|
567 |
{ |
|
568 |
if(mSendingState == Sending || mSendingState == Pending || |
|
569 |
mSendingState == Unknown || mSendingState == Failed) |
|
570 |
{ |
|
571 |
mBubbleFrameItem->frameDrawer().setFrameGraphicsName(CV_SENT_HIGHLIGHT_FR); |
|
572 |
} |
|
573 |
else |
|
574 |
{ |
|
575 |
mBubbleFrameItem->frameDrawer().setFrameGraphicsName(CV_SENT_NORMAL_FR); |
|
576 |
} |
|
577 |
} |
|
578 |
} |
|
579 |
||
580 |
//--------------------------------------------------------------- |
|
581 |
// MsgConversationWidget::drawPressedBubbleFrame |
|
582 |
// @see header file |
|
583 |
//--------------------------------------------------------------- |
|
584 |
void MsgConversationWidget::drawPressedBubbleFrame() |
|
585 |
{ |
|
586 |
if(isIncoming()) |
|
587 |
{ |
|
588 |
mBubbleFrameItem->frameDrawer().setFrameGraphicsName(CV_RECEIVED_PRESSED_FR); |
|
589 |
} |
|
590 |
else |
|
591 |
{ |
|
592 |
mBubbleFrameItem->frameDrawer().setFrameGraphicsName(CV_SENT_PRESSED_FR); |
|
593 |
} |
|
594 |
} |
|
595 |
||
596 |
//--------------------------------------------------------------- |
|
597 |
// MsgConversationWidget::pressStateChanged |
|
598 |
// @see header file |
|
599 |
//--------------------------------------------------------------- |
|
600 |
void MsgConversationWidget::pressStateChanged(bool pressed, bool animate) |
|
601 |
{ |
|
602 |
Q_UNUSED(animate) |
|
603 |
||
604 |
if (mBubbleFrameItem) { |
|
605 |
(pressed) ? drawPressedBubbleFrame() : drawBubbleFrame(); |
|
606 |
} |
|
607 |
} |
|
608 |
||
34
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
609 |
//--------------------------------------------------------------- |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
610 |
// MsgConversationWidget::resetProperties |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
611 |
// @see header file |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
612 |
//--------------------------------------------------------------- |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
613 |
void MsgConversationWidget::resetProperties() |
31 | 614 |
{ |
615 |
mHasAttachment = false; |
|
616 |
mHasImage = false; |
|
617 |
mHasAudio = false; |
|
618 |
mHasVideo = false; |
|
619 |
mIsPlayable =false; |
|
620 |
mIncoming =false; |
|
621 |
mUnread =false; |
|
622 |
mIsMMS = false; |
|
623 |
mIsMMSNotification= false; |
|
624 |
mPriority = 0; |
|
625 |
mSendingState =Unknown; |
|
626 |
mNotificationState =0; |
|
627 |
||
628 |
if(mBodyTextItem){ |
|
629 |
mBodyTextItem->setText(QString()); |
|
630 |
mBodyTextItem->hide(); |
|
631 |
HbStyle::setItemName(mBodyTextItem, ""); |
|
632 |
} |
|
633 |
||
634 |
if(mSubjectTextItem){ |
|
635 |
mSubjectTextItem->setText(QString()); |
|
636 |
mSubjectTextItem->hide(); |
|
637 |
HbStyle::setItemName(mSubjectTextItem, ""); |
|
638 |
} |
|
639 |
||
640 |
if(mTimeStampTextItem){ |
|
641 |
mTimeStampTextItem->setText(QString()); |
|
642 |
mTimeStampTextItem->hide(); |
|
643 |
HbStyle::setItemName(mTimeStampTextItem, ""); |
|
644 |
} |
|
645 |
||
646 |
if(mAttachmentIconItem){ |
|
647 |
mAttachmentIconItem->hide(); |
|
648 |
HbStyle::setItemName(mAttachmentIconItem, ""); |
|
649 |
} |
|
650 |
||
651 |
if(mPriorityIconItem){ |
|
652 |
HbStyle::setItemName(mPriorityIconItem, ""); |
|
653 |
mPriorityIconItem->hide(); |
|
654 |
} |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
655 |
|
31 | 656 |
if(mPlayIconItem){ |
657 |
HbStyle::setItemName(mPlayIconItem, ""); |
|
658 |
mPlayIconItem->hide(); |
|
659 |
} |
|
660 |
||
661 |
if(mPreviewIconItem){ |
|
662 |
HbStyle::setItemName(mPreviewIconItem, ""); |
|
663 |
mPreviewIconItem->hide(); |
|
664 |
} |
|
665 |
} |
|
34
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
666 |
|
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
667 |
//--------------------------------------------------------------- |
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
668 |
// MsgConversationWidget::orientationchanged |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
669 |
// @see header file |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
670 |
//--------------------------------------------------------------- |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
671 |
void MsgConversationWidget::orientationchanged(Qt::Orientation orientation) |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
672 |
{ |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
673 |
QDEBUG_WRITE("MsgConversationWidget:orientationchanged start.") |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
674 |
|
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
675 |
repolish(); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
676 |
|
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
677 |
QDEBUG_WRITE("MsgConversationWidget:orientationchanged end.") |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
678 |
} |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
679 |
|
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
680 |
//--------------------------------------------------------------- |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
681 |
// MsgConversationWidget::polish |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
682 |
// @see header file |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
683 |
//--------------------------------------------------------------- |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
684 |
void MsgConversationWidget::polish(HbStyleParameters ¶ms) |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
685 |
{ |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
686 |
QString bubbleOrig = HbStyle::itemName(mBubbleFrameItem); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
687 |
QString newItemIconOrig = HbStyle::itemName(mNewFrameItem); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
688 |
QString subjectOrig = HbStyle::itemName(mSubjectTextItem); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
689 |
QString bodyTextOrig = HbStyle::itemName(mBodyTextItem); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
690 |
QString previewOrig = HbStyle::itemName(mPreviewIconItem); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
691 |
QString priorityOrig = HbStyle::itemName(mPriorityIconItem); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
692 |
QString attachmentOrig = HbStyle::itemName(mAttachmentIconItem); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
693 |
QString timeStampOrig = HbStyle::itemName(mTimeStampTextItem); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
694 |
QString playIconOrig = HbStyle::itemName(mPlayIconItem); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
695 |
|
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
696 |
// Make sure that all the sub-items are polished in every polish. |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
697 |
HbStyle::setItemName(mBubbleFrameItem, "bubble"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
698 |
HbStyle::setItemName(mNewFrameItem, "newItemIcon"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
699 |
HbStyle::setItemName(mSubjectTextItem, "subject"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
700 |
HbStyle::setItemName(mBodyTextItem, "bodyText"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
701 |
HbStyle::setItemName(mPreviewIconItem, "preview"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
702 |
HbStyle::setItemName(mPriorityIconItem, "priority"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
703 |
HbStyle::setItemName(mAttachmentIconItem, "attachment"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
704 |
HbStyle::setItemName(mTimeStampTextItem, "timeStamp"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
705 |
HbStyle::setItemName(mPlayIconItem, "playIcon"); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
706 |
|
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
707 |
HbWidget::polish(params); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
708 |
|
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
709 |
HbStyle::setItemName(mBubbleFrameItem, bubbleOrig); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
710 |
HbStyle::setItemName(mNewFrameItem, newItemIconOrig); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
711 |
HbStyle::setItemName(mSubjectTextItem, subjectOrig); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
712 |
HbStyle::setItemName(mBodyTextItem, bodyTextOrig); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
713 |
HbStyle::setItemName(mPreviewIconItem, previewOrig); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
714 |
HbStyle::setItemName(mPriorityIconItem, priorityOrig); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
715 |
HbStyle::setItemName(mAttachmentIconItem, attachmentOrig); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
716 |
HbStyle::setItemName(mTimeStampTextItem, timeStampOrig); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
717 |
HbStyle::setItemName(mPlayIconItem, playIconOrig); |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
718 |
} |
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
719 |
|
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
720 |
//--------------------------------------------------------------- |
34
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
721 |
// MsgConversationWidget::repolishWidget |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
722 |
// @see header file |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
723 |
//--------------------------------------------------------------- |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
724 |
void MsgConversationWidget::repolishWidget() |
31 | 725 |
{ |
726 |
repolish(); |
|
727 |
} |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
728 |
|
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
729 |
|
31 | 730 |
// EOF |