|
1 /* |
|
2 * Copyright (c) 2002 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 * This view is created when user opens folder. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MCEMESSAGELISTVIEW_H |
|
22 #define MCEMESSAGELISTVIEW_H |
|
23 |
|
24 // INCLUDES |
|
25 //#include "MceBaseListView.h" |
|
26 #include <aknview.h> |
|
27 #include <msvapi.h> |
|
28 #include <AiwServiceHandler.h> |
|
29 #include <coemain.h> |
|
30 |
|
31 #include "MceMessageListContainer.h" |
|
32 |
|
33 #include "mcetemplate.h" |
|
34 #include "MceFolderItem.h" |
|
35 #include "MceListboxTypeObserver.h" |
|
36 |
|
37 #include <bldvariant.hrh> |
|
38 |
|
39 #include <AiwServiceHandler.h> |
|
40 |
|
41 // CONSTANTS |
|
42 |
|
43 #define TDRVIEWID TVwsViewId( \ |
|
44 TUid::Uid( KMceApplicationUidValue ), \ |
|
45 TUid::Uid( KMceDeliveryReportViewIdValue ) ) |
|
46 |
|
47 enum TMessageFolderMessageStatus |
|
48 { |
|
49 MessageFolderAllRead, |
|
50 MessageFolderAllUnread, |
|
51 MessageFolderReadUnread |
|
52 }; |
|
53 |
|
54 enum TMessageFolderDeleteMessageStatus |
|
55 { |
|
56 MessageFolderAllDelete, |
|
57 MessageFolderAllUnDelete, |
|
58 MessageFolderDeleteUnDelete |
|
59 }; |
|
60 |
|
61 enum TMceTemplatesDialogStatus |
|
62 { |
|
63 MceTemplatesDialogClose, |
|
64 MceTemplatesDialogOpen |
|
65 }; |
|
66 // DATA TYPES |
|
67 typedef CArrayFixFlat<TMceFolderItem> CMceFolderItemArray; |
|
68 |
|
69 // FORWARD DECLARATIONS |
|
70 class CMsvSession; |
|
71 class CMceBitmapResolver; |
|
72 class CMceMainViewListView; |
|
73 class CAknLocalScreenClearer; |
|
74 class CMceSessionHolder; |
|
75 class CMceUi; |
|
76 class CMceMessageListContainer; |
|
77 class CMceMessageListContainerBase; |
|
78 class CEnvironmentChangeNotifier; |
|
79 |
|
80 class CMceListboxTypeObserver; |
|
81 |
|
82 // CLASS DECLARATION |
|
83 |
|
84 /** |
|
85 * This view is created when user opens folder. |
|
86 */ |
|
87 class CMceMessageListView : |
|
88 public CAknView, |
|
89 public MEikListBoxObserver, |
|
90 public MMsvSessionObserver, |
|
91 public MMceListboxTypeObserver |
|
92 { |
|
93 public: // Constructors and destructor |
|
94 |
|
95 /** |
|
96 * Two-phased constructor. |
|
97 */ |
|
98 static CMceMessageListView* NewL( |
|
99 CMsvSessionPtr aSession, |
|
100 TMsvId aFolderId, |
|
101 CMceSessionHolder& aSessionHolder, |
|
102 CMceBitmapResolver& aBitmapResolver, |
|
103 CMceMainViewListView& aMainView ); |
|
104 |
|
105 /** |
|
106 * Destructor. |
|
107 */ |
|
108 virtual ~CMceMessageListView(); |
|
109 |
|
110 public: // New functions |
|
111 |
|
112 |
|
113 /** |
|
114 * Sets folder to be watched |
|
115 * @param aFolderId: folder id |
|
116 */ |
|
117 void SetFolderL( TMsvId aFolderId ); |
|
118 |
|
119 /** |
|
120 * Returns listbox type of the current folder. |
|
121 * @return Folder listbox type |
|
122 */ |
|
123 TInt GetFolderListBoxType(); |
|
124 |
|
125 |
|
126 /** |
|
127 * Returns pointer to list container. |
|
128 * @return Pointer to list container |
|
129 */ |
|
130 CMceMessageListContainerBase* ListContainer() const; |
|
131 |
|
132 /** |
|
133 * Should be called by mce after message server startup. |
|
134 * This adds view to session observer list and creates needed CMsvEntries. |
|
135 */ |
|
136 virtual void HandleMsgServerStartupL(); |
|
137 |
|
138 /** |
|
139 * Checks if there are unread messages in the given folder |
|
140 */ |
|
141 TBool HasUnreadMessagesL(); |
|
142 |
|
143 /** |
|
144 * Cancels remote mailbox timer. |
|
145 */ |
|
146 void CancelMailboxTimer() const; |
|
147 |
|
148 /** |
|
149 * Checks if folder aName already exists |
|
150 * @param aName folder name to be searched. |
|
151 * @param aId id of the folder. Should be set when renaming. |
|
152 * @return ETrue if name used. |
|
153 */ |
|
154 TBool IsFolderNameUsedL(const TDesC& aName, TMsvId aId = KErrNotFound) const; |
|
155 |
|
156 /** |
|
157 * Changes currently opened folder and redraws the list. |
|
158 * @param aNewFolderId: id of the folder name to be opened |
|
159 */ |
|
160 void ChangeFolderAndRefreshListboxL( TMsvId aNewFolderId ); |
|
161 |
|
162 /** |
|
163 * Finds and selects message entry |
|
164 * @param aMatchString: the matched string |
|
165 */ |
|
166 void FindAndSelectEntryL( const TDesC& aMatchString ) const; |
|
167 |
|
168 /** |
|
169 * Checks, if SyncMl folder |
|
170 * Returns ETrue, if SyncMl folder |
|
171 */ |
|
172 TBool IsSyncMl() const; |
|
173 |
|
174 /** |
|
175 * Checks, if SyncMl Outbox or Inbox folder |
|
176 * Returns ETrue, if SyncMl Outbox or Inbox folder |
|
177 * @param aFolder: id of the folder |
|
178 */ |
|
179 TBool SyncMlOutboxInbox( TMsvId aFolder ) const; |
|
180 |
|
181 /** |
|
182 * Checks, if MMS notification can be opened using selection key |
|
183 */ |
|
184 TBool CheckMMSNotificationOpenL( ) const; |
|
185 |
|
186 /** |
|
187 * Opens remote mailbox settings |
|
188 */ |
|
189 void OpenMailboxSettingsL(); |
|
190 |
|
191 /** |
|
192 * Is IMAP folder open |
|
193 */ |
|
194 TBool IsImapFolderOpenL( ) const; |
|
195 |
|
196 /** |
|
197 * From CAknView: Sets the new size of Rect |
|
198 */ |
|
199 void HandleStatusPaneSizeChange(); |
|
200 |
|
201 inline void UpdateViewL(); |
|
202 |
|
203 public: // Functions from base classes |
|
204 |
|
205 /** |
|
206 * From CAknView |
|
207 */ |
|
208 TUid Id() const; |
|
209 |
|
210 /** |
|
211 * From CAknView |
|
212 */ |
|
213 void DoActivateL( |
|
214 const TVwsViewId& aPrevViewId, |
|
215 TUid aCustomMessageId, |
|
216 const TDesC8& aCustomMessage ); |
|
217 |
|
218 /** |
|
219 * From CAknView |
|
220 */ |
|
221 void DoDeactivate(); |
|
222 |
|
223 /** |
|
224 * From CAknView |
|
225 */ |
|
226 void DynInitMenuPaneL( |
|
227 TInt aResourceId, |
|
228 CEikMenuPane* aMenuPane ); |
|
229 |
|
230 /** |
|
231 * From MEikCommandObserver |
|
232 */ |
|
233 void HandleCommandL( TInt aCommand ); |
|
234 |
|
235 /** |
|
236 * From MMsvSessionObserver |
|
237 */ |
|
238 virtual void HandleSessionEventL( |
|
239 TMsvSessionEvent aEvent, |
|
240 TAny* aArg1, |
|
241 TAny* aArg2, |
|
242 TAny* aArg3 ); |
|
243 |
|
244 /** |
|
245 * From MEikCommandObserver |
|
246 */ |
|
247 virtual void ProcessCommandL(TInt aCommand); |
|
248 |
|
249 /** |
|
250 * From CAknView ?member_description |
|
251 */ |
|
252 void HandleClientRectChange(); |
|
253 |
|
254 /** |
|
255 * Sets the label for the middle soft key in the folder view |
|
256 * @since S60 3.1 |
|
257 */ |
|
258 void SetMSKButtonL(); |
|
259 |
|
260 /** |
|
261 * Checks if current folder is emailmailbox for the middle soft key. |
|
262 * @since S60 3.1 |
|
263 * @return Etrue if mailbox |
|
264 */ |
|
265 TBool IsMSKMailBox(); |
|
266 |
|
267 /** |
|
268 * Checks if current folder is syncMLmailbox for the middle soft key. |
|
269 * @since S60 3.2 |
|
270 * @return Etrue if syncMLmailbox |
|
271 */ |
|
272 TBool IsMSKSyncMlMailBox(); |
|
273 |
|
274 /** |
|
275 * Store current item id for mailbox focus |
|
276 * @since S60 3.0 |
|
277 */ |
|
278 void SetCurrentItemId(); |
|
279 |
|
280 /** |
|
281 * Should be called by container when selection button is pressed so that |
|
282 * exit command is not showed in context sensitive menu. iHideExitCommand set |
|
283 * EFalse at the end of DynInitMenuPaneL function. |
|
284 * @param aHideExitCommand: ETrue if exit not shown next time option menu displayed |
|
285 */ |
|
286 void SetHideExitCommand( TBool aHideExitCommand ); |
|
287 |
|
288 /** |
|
289 * Check if the item is Unread |
|
290 * @para aId: the item id |
|
291 * @return ETrue if the item is unread, return EFalse if the item is read |
|
292 * @since Taco |
|
293 */ |
|
294 TBool IsItemUnread( TMsvId aId ); |
|
295 |
|
296 /** |
|
297 * Handle call by sendkey in email list |
|
298 * @para aEntryId: current entry id |
|
299 * @Since S60 5.0 |
|
300 */ |
|
301 void HandleSendkeyInMailboxL( TMsvId aEntryId ); |
|
302 |
|
303 /** |
|
304 * Call-back function for CEnvironmentChangeNotifier class. |
|
305 * @param object of CMceMessageListView. |
|
306 */ |
|
307 static TInt EnvironmentChanged( TAny* aObj ); |
|
308 |
|
309 /** |
|
310 * From MMceListboxTypeObserver |
|
311 */ |
|
312 virtual void ListboxTypeChangedL(); |
|
313 |
|
314 /** |
|
315 * For setting the ContextCommandFlag when clicked to get the context menu |
|
316 */ |
|
317 void SetContextCommandFlag(TBool aContextCommandFlag); |
|
318 |
|
319 protected: // Functions from base classes |
|
320 |
|
321 /** |
|
322 * From MEikListBoxObserver |
|
323 */ |
|
324 void HandleListBoxEventL( |
|
325 CEikListBox* aListBox, |
|
326 TListBoxEvent aEventType ); |
|
327 |
|
328 private: |
|
329 |
|
330 /** |
|
331 * Constructor is private. |
|
332 */ |
|
333 CMceMessageListView( |
|
334 CMsvSessionPtr aSession, |
|
335 TMsvId aFolderId, |
|
336 CMceSessionHolder& aSessionHolder, |
|
337 CMceBitmapResolver& aBitmapResolver, |
|
338 CMceMainViewListView& aMainView ); |
|
339 |
|
340 /** |
|
341 * Symbian OS constructor |
|
342 */ |
|
343 void ConstructL(); |
|
344 |
|
345 /** |
|
346 * Handles different 'open's: Open folder or open message |
|
347 */ |
|
348 void HandleOpenL(); |
|
349 |
|
350 /** |
|
351 * Called when user pressed Back and main view should be opened |
|
352 */ |
|
353 void HandleCloseL(); |
|
354 |
|
355 /** |
|
356 * Changes currently opened folder. |
|
357 * @param aOpenParent: ETrue if "CD .." wanted. |
|
358 */ |
|
359 void ChangeFolderL( TBool aOpenParent = EFalse ); |
|
360 |
|
361 /** |
|
362 * User wants to open message and this call's Ui's EditMtmEntry function. |
|
363 */ |
|
364 void EditEntryL(); |
|
365 |
|
366 /** |
|
367 * Called by DynInitMenuPaneL to delete unneccessary menu items. |
|
368 * @param aMenuPane menu pane |
|
369 */ |
|
370 void FetchMenuL( CEikMenuPane* aMenuPane ) const; |
|
371 |
|
372 /** |
|
373 * Called by DynInitMenuPaneL to delete unneccessary menu items. |
|
374 * @param aMenuPane menu pane |
|
375 */ |
|
376 void FolderMenuL( CEikMenuPane* aMenuPane ); |
|
377 |
|
378 /** |
|
379 * Called by FolderMenuL to delete unneccessary menu items. |
|
380 * @param aMenuPane menu pane |
|
381 */ |
|
382 void FolderMenuNoItemsL( CEikMenuPane* aMenuPane ) const; |
|
383 /** |
|
384 * Called by FolderMenuL to delete unneccessary menu items. |
|
385 * @param aMenuPane menu pane |
|
386 */ |
|
387 void FolderMenuOneItemL( |
|
388 CEikMenuPane* aMenuPane, |
|
389 TBool aRemoteMailboxOpened, |
|
390 TBool aThirdPartEmail ); |
|
391 /** |
|
392 * Called by FolderMenuL to delete unneccessary menu items. |
|
393 * @param aMenuPane menu pane |
|
394 */ |
|
395 void FolderMenuManyItemsL( |
|
396 CEikMenuPane* aMenuPane, |
|
397 TBool aRemoteMailboxOpened, |
|
398 TBool aThirdPartEmail, |
|
399 TBool aSetRead = EFalse ); |
|
400 |
|
401 /** |
|
402 * Called by FolderMenuL to delete unneccessary menu items. |
|
403 * @param aMenuPane menu pane, SyncML folder |
|
404 */ |
|
405 void FolderMenuSyncMLMain( CEikMenuPane *aMenuPane ); |
|
406 |
|
407 /** |
|
408 * Called by FolderMenuL to delete unneccessary menu items. |
|
409 * @param aMenuPane menu pane, SyncML folder |
|
410 */ |
|
411 void FolderMenuSyncMLFolderL( CEikMenuPane *aMenuPane ); |
|
412 |
|
413 /** |
|
414 * Called by DynInitMenuPaneL to delete unneccessary menu items. |
|
415 * @param aMenuPane menu pane |
|
416 */ |
|
417 void EditMenuL( CEikMenuPane* aMenuPane ) const; |
|
418 |
|
419 /** |
|
420 * Called by DynInitMenuPaneL to delete unneccessary menu items. |
|
421 * @param aMenuPane menu pane |
|
422 */ |
|
423 void OrganizeMenuL( CEikMenuPane* aMenuPane ); |
|
424 |
|
425 /** |
|
426 * Returns ETrue if folder is opened by this view and |
|
427 * back does not return to main view. |
|
428 * If EFalse returned then this view needs to be closed |
|
429 * and main view is activated. |
|
430 */ |
|
431 TBool FolderOpenedL(); |
|
432 |
|
433 /** |
|
434 * Returns folder count in currently opened folder |
|
435 */ |
|
436 TInt SubfolderCount() const; |
|
437 |
|
438 /** |
|
439 * Checks how many unread messages folder has. If only one then asks |
|
440 * MceUi to open it. If more than one, select first unread. If none select first |
|
441 * item of the folder |
|
442 * @return ETrue if there is one message in inbox/mailbox folder and trying to open it, |
|
443 * EFalse when just opening inbox/mailbox folder |
|
444 * @param aId: message id |
|
445 */ |
|
446 TBool FindUnreadMessageAndOpenItL( const TMsvId aId ); |
|
447 |
|
448 /** |
|
449 * Finds folder called 'Inbox' from current (IMAP4 remote mailbox) folder and opens it. |
|
450 * Do not confuse with local service inbox! |
|
451 */ |
|
452 void FindInboxAndOpenItL(); |
|
453 |
|
454 /** |
|
455 * Sets empty text of the list box. |
|
456 * Empty text is different in Remote mailboxes than other folders. |
|
457 */ |
|
458 void SetEmptyTextL() const; |
|
459 |
|
460 /** |
|
461 * Function for the CIdle class to be called, calls LaunchMceViewer. |
|
462 * @param aSelf: pointer to CMceMessageListView object. |
|
463 * @return see LaunchMceViewer. |
|
464 */ |
|
465 static TInt LaunchViewer( TAny* aSelf ); |
|
466 |
|
467 /** |
|
468 * Tries to launch viewer (by calling Mce's EditMtmEntryL) |
|
469 * for the unread message if there is only one unread |
|
470 * message in the folder. Otherwise does not do nothing |
|
471 * @return KErrNone if launch ok |
|
472 */ |
|
473 TInt LaunchMceViewer( ); |
|
474 |
|
475 /** |
|
476 * Checks if selected entry can be opened and dims 'send via' menu if it can |
|
477 * @param aEntryId: currently selected entry |
|
478 * @param aMenuPane: menupane |
|
479 */ |
|
480 void HandleSendViaMenuItemL( TMsvId aEntryId, CEikMenuPane* aMenuPane ) const; |
|
481 |
|
482 /** |
|
483 * Called by HandleSessionEventL if entries created or changed. |
|
484 * @param aParentId: id of the parent |
|
485 * @param aSelection: pointer to selection of messages changed. |
|
486 */ |
|
487 void MessageViewHandleEntriesCreatedOrChangedL( |
|
488 TMsvId aParentId, |
|
489 CMsvEntrySelection* aSelection ); |
|
490 |
|
491 /** |
|
492 * Handles EMceCmdSortByDate,EMceCmdSortBySubject and EMceCmdSortBySender |
|
493 * @param aCommand: id of the command |
|
494 */ |
|
495 void HandleSortCommandL( const TInt aCommand ); |
|
496 |
|
497 /** |
|
498 * Open SyncMl Inbox folder |
|
499 */ |
|
500 void SyncMlFindInboxAndOpenItL(); |
|
501 |
|
502 /** |
|
503 * |
|
504 */ |
|
505 TInt GetSetRead( const CMsvEntrySelection& aEntries ); |
|
506 |
|
507 /** |
|
508 * Checks are the selected messages deleted or undeleted |
|
509 * @since 3.2 |
|
510 * @return Index of the selected message deletetion status |
|
511 * otherwise KErrNotFound |
|
512 */ |
|
513 TInt GetDeleteFlagStatusL( const CMsvEntrySelection* aEntries ); |
|
514 |
|
515 /** |
|
516 * Checks if there is only one unread message in current folder |
|
517 * and starts viewer for it |
|
518 * @since 3.2 |
|
519 * @param aMsgMtmUid: filled with Message MTM Uid |
|
520 * @return Index of the message if only one unread, |
|
521 * otherwise KErrNotFound |
|
522 */ |
|
523 TInt LaunchViewerWhenOneUnreadL( TInt &aMsgMtmUid ); |
|
524 |
|
525 /** |
|
526 * registers MceMessageListContainer to Msk observer |
|
527 * @param aObserver: True if set MskObserver and False to remove it. |
|
528 * @since 3.2 |
|
529 */ |
|
530 void SetMskObserver( TBool aObserver ); |
|
531 |
|
532 |
|
533 /** |
|
534 * Input parameter list for AIW plugin |
|
535 */ |
|
536 CAiwGenericParamList* AiwSyncParamListLC(TInt aId, const TDesC& aText); |
|
537 |
|
538 /** |
|
539 * |
|
540 */ |
|
541 void HandleEntriesCreatedChangedL( const CMsvEntrySelection* aSelection ); |
|
542 |
|
543 /** |
|
544 * |
|
545 */ |
|
546 void HandleEntriesDeletedL( ); |
|
547 |
|
548 /** |
|
549 * |
|
550 */ |
|
551 void HandleEntriesMovedL( TMsvId aSourceFolderId, TMsvId aTargetFolderId ); |
|
552 |
|
553 |
|
554 /** |
|
555 * Creates either one row or two row listbox and sets it to iMsgListContainer |
|
556 */ |
|
557 void CreateListboxL(); |
|
558 |
|
559 /** |
|
560 * Find all read messages and mark |
|
561 * |
|
562 * @since Taco |
|
563 */ |
|
564 void FindAllReadMsgAndMarkL(); |
|
565 |
|
566 /** |
|
567 * Check if there is any selected item visible in current view |
|
568 * @ msgIndexArray: the array of the index of selected item |
|
569 * @since S60 5.0 |
|
570 */ |
|
571 TBool AnySelectedItemsVisible( CArrayFixFlat<TInt>* msgIndexArray ); |
|
572 |
|
573 /** |
|
574 * Check if it is in Inbox, Documents and user's own foldermark, |
|
575 * if it is, enable mark read msg option from menu |
|
576 * @currentEntry: current entry |
|
577 * @currentfolderId: current Folder Id |
|
578 * @aMenuPane: Menu pane to show the mark all read command |
|
579 * @since S60 5.0 |
|
580 */ |
|
581 void EnableMarkAllReadMsgInInboxAndDocument( |
|
582 TMsvEntry currentEntry, |
|
583 TMsvId currentFolderId, |
|
584 CEikMenuPane* aMenuPane ); |
|
585 |
|
586 |
|
587 /** |
|
588 * Set correct menu items for expand/collapse options |
|
589 * @param aMenuPane: |
|
590 * @since S60 5.0 |
|
591 */ |
|
592 void HandleContainerOptionsMenuL( CEikMenuPane* aMenuPane ); |
|
593 |
|
594 /** |
|
595 * |
|
596 */ |
|
597 void HandleContainerOptionsCommandL( TInt aCommand ); |
|
598 |
|
599 /** |
|
600 * called from EnvironmentChanged. |
|
601 */ |
|
602 TInt HandleEnvironmentChanged(); |
|
603 |
|
604 /* |
|
605 * Check and Set Forward command for the selected item |
|
606 * Forward is currently only available in Sent Item folder |
|
607 * Since 5.0 |
|
608 */ |
|
609 void SetForwardMenuL( CEikMenuPane* aMenuPane, TMsvEntry& aEntry ); |
|
610 |
|
611 /* |
|
612 * Dim Read/Unread command from options menu, prepare for further settings |
|
613 * Since 5.0 |
|
614 */ |
|
615 void DimReadUnreadOptionsMenu( CEikMenuPane *aMenuPane ); |
|
616 |
|
617 /* |
|
618 * Set Read/Unread command for options menu, when multiple msg/emails are selected |
|
619 * Since 5.0 |
|
620 */ |
|
621 void SetReadUnreadOptionsMenu( CEikMenuPane *aMenuPane, TBool aIsEmail, TBool aSetRead ); |
|
622 public: |
|
623 /** |
|
624 * Set the iReadUnread variable if Mark as read/unread appears twice |
|
625 * if it is, enable mark read msg option from menu |
|
626 * @aValue: The value to be set to iReadUnread variable |
|
627 * Since 3.2 |
|
628 */ |
|
629 void SetMarkReadUnread( TBool aValue ); |
|
630 |
|
631 private: // Data |
|
632 |
|
633 CMceUi* iMceUi; |
|
634 CMceMessageListContainerBase* iMsgListContainer; |
|
635 |
|
636 TInt iCurrentListboxId; |
|
637 CMsvSessionPtr iSession; |
|
638 TMsvId iFolderId; |
|
639 CMceSessionHolder& iSessionHolder; |
|
640 CMceBitmapResolver& iBitmapResolver; |
|
641 TBool iMceViewActivated; |
|
642 TBool iMsvSessionReady; |
|
643 CAiwServiceHandler* iAiwServiceHandler; |
|
644 TMceFlags iListViewFlags; |
|
645 TMsvId iCurrentItemId; |
|
646 |
|
647 TInt iSelectedIndex; // index of the cursor when deactivated |
|
648 |
|
649 HBufC* iInboxName; |
|
650 HBufC* iRemoteMailboxEmptyText; |
|
651 HBufC* iEmptyText; |
|
652 CMceMainViewListView& iMainViewListView; |
|
653 TBool iHideExitCommand; |
|
654 TBool iFetchMenuSelectionKeyPressed; |
|
655 CPeriodic* iMessageViewerLauncher; |
|
656 CAknLocalScreenClearer* iLocalScreenClearer; |
|
657 TInt iLaunchViewerCounter; |
|
658 CMceFolderItemArray* iFolderItemArray; |
|
659 TBool iConnectionNote; |
|
660 |
|
661 TInt iSortOrder; |
|
662 TBool iOrdering; |
|
663 TBool iRunningEditFunction; |
|
664 TBool iIsUnread; |
|
665 |
|
666 TInt iCurrentListType; |
|
667 CMceListboxTypeObserver* iListboxMailTypeObserver; |
|
668 CMceListboxTypeObserver* iListboxInboxTypeObserver; |
|
669 |
|
670 CEnvironmentChangeNotifier* iDateTimeNotifier; |
|
671 //Variable that get set when Mark as read/unread appears twice |
|
672 TBool iReadUnread; |
|
673 //Variable for context command |
|
674 TBool iContextCommand; |
|
675 }; |
|
676 |
|
677 inline void CMceMessageListView::UpdateViewL() |
|
678 { |
|
679 if ( iMsgListContainer ) |
|
680 { |
|
681 iMsgListContainer->SetAnchorItemIdL( |
|
682 CMceMessageListContainerBase::EMessageListOperationCompleted ); |
|
683 iMsgListContainer->RefreshListbox(); |
|
684 } |
|
685 } |
|
686 |
|
687 |
|
688 |
|
689 #endif |
|
690 |
|
691 // End of file |