129 TInt instId = ResolveWidgetInstance( aContentId ); |
128 TInt instId = ResolveWidgetInstance( aContentId ); |
130 if ( instId >= 0 ) |
129 if ( instId >= 0 ) |
131 { |
130 { |
132 TFSMailMsgId dummy; |
131 TFSMailMsgId dummy; |
133 iPublisher.PublishMailboxIconL( instId, KNullDesC ); |
132 iPublisher.PublishMailboxIconL( instId, KNullDesC ); |
134 iPublisher.PublishActiveMailboxNameL( instId, 1, KNullDesC, 0, dummy, dummy ); |
133 iPublisher.PublishActiveMailboxNameL( instId, 1, KNullDesC); |
135 iPublisher.PublishIndicatorIconL( instId, 1, KNullIcon ); |
134 iPublisher.PublishIndicatorIconL( instId, 1, KNullIcon ); |
136 |
135 |
137 ResetMessageRowL( instId, 2 ); // 1st message row |
136 ResetMessageRowL( instId, 2 ); // 1st message row |
138 ResetMessageRowL( instId, 3 ); // 2nd.. |
137 ResetMessageRowL( instId, 3 ); // 2nd.. |
139 } |
138 } |
236 { |
235 { |
237 // make sure this row is empty |
236 // make sure this row is empty |
238 TFSMailMsgId dummy; |
237 TFSMailMsgId dummy; |
239 iPublisher.PublishMailboxIconL( aWidgetInstanceId, i+2, KNullIcon, dummy ); |
238 iPublisher.PublishMailboxIconL( aWidgetInstanceId, i+2, KNullIcon, dummy ); |
240 iPublisher.PublishMailDetailL( aWidgetInstanceId, i+2, KNullDesC, ESender ); |
239 iPublisher.PublishMailDetailL( aWidgetInstanceId, i+2, KNullDesC, ESender ); |
|
240 iPublisher.PublishMailDetailL( aWidgetInstanceId, i+2, KNullDesC, ESubject ); |
241 iPublisher.PublishMailDetailL( aWidgetInstanceId, i+2, KNullDesC, ETime ); |
241 iPublisher.PublishMailDetailL( aWidgetInstanceId, i+2, KNullDesC, ETime ); |
242 } |
242 } |
243 } |
243 } |
244 } |
244 } |
245 |
245 |
259 aMessageData.Replied(), |
259 aMessageData.Replied(), |
260 aMessageData.Forwarded() ); |
260 aMessageData.Forwarded() ); |
261 |
261 |
262 iPublisher.PublishMailboxIconL( aWidgetInstanceId, aRow, iconId, dummy ); |
262 iPublisher.PublishMailboxIconL( aWidgetInstanceId, aRow, iconId, dummy ); |
263 iPublisher.PublishMailDetailL( aWidgetInstanceId, aRow, aMessageData.Sender(), ESender ); |
263 iPublisher.PublishMailDetailL( aWidgetInstanceId, aRow, aMessageData.Sender(), ESender ); |
|
264 iPublisher.PublishMailDetailL( aWidgetInstanceId, aRow, aMessageData.Subject(), ESubject ); |
264 HBufC* timeString = CMailCpsHandler::GetMessageTimeStringL( aMessageData.TimeStamp() ); |
265 HBufC* timeString = CMailCpsHandler::GetMessageTimeStringL( aMessageData.TimeStamp() ); |
265 CleanupStack::PushL( timeString ); |
266 CleanupStack::PushL( timeString ); |
266 iPublisher.PublishMailDetailL( aWidgetInstanceId, aRow, *timeString, ETime ); |
267 iPublisher.PublishMailDetailL( aWidgetInstanceId, aRow, *timeString, ETime ); |
267 CleanupStack::PopAndDestroy( timeString ); |
268 CleanupStack::PopAndDestroy( timeString ); |
268 } |
269 } |