emailuis/emailui/inc/FreestyleEmailUiMailListVisualiser.h
branchRCL_3
changeset 12 4ce476e64c59
parent 10 f5907b1a1053
child 16 b5fbb9b25d57
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
   376 	void SortOrderChangedL( TFSMailSortField aSortField,
   376 	void SortOrderChangedL( TFSMailSortField aSortField,
   377 	 					   TFSEmailUiCtrlBarResponse aResponse );
   377 	 					   TFSEmailUiCtrlBarResponse aResponse );
   378 	TRect SortButtonRect();
   378 	TRect SortButtonRect();
   379 
   379 
   380 	// Update theme colors
   380 	// Update theme colors
   381 	void UpdateTheme(const TBool aSystemUpdate = ETrue);
   381 	void UpdateThemeL(const TBool aSystemUpdate = ETrue);
   382 
   382 
   383 	// Navigation functions, used mainly from viewer
   383 	// Navigation functions, used mainly from viewer
   384 	TBool IsNextMsgAvailable( TFSMailMsgId aCurrentMsgId, TFSMailMsgId& aFoundNextMsgId, TFSMailMsgId& aFoundNextMsgFolder ) const;
   384 	TBool IsNextMsgAvailable( TFSMailMsgId aCurrentMsgId, TFSMailMsgId& aFoundNextMsgId, TFSMailMsgId& aFoundNextMsgFolder ) const;
   385 	TBool IsPreviousMsgAvailable( TFSMailMsgId aCurrentMsgId, TFSMailMsgId& aFoundPreviousMsgId, TFSMailMsgId& aFoundPrevMsgFolder ) const;
   385 	TBool IsPreviousMsgAvailable( TFSMailMsgId aCurrentMsgId, TFSMailMsgId& aFoundPreviousMsgId, TFSMailMsgId& aFoundPrevMsgFolder ) const;
   386 	TInt MoveToNextMsgL( TFSMailMsgId aCurrentMsgId, TFSMailMsgId& aFoundNextMsgId );
   386 	TInt MoveToNextMsgL( TFSMailMsgId aCurrentMsgId, TFSMailMsgId& aFoundNextMsgId );
   536 	void ExpandAllNodesL();
   536 	void ExpandAllNodesL();
   537 	void CollapseAllNodesL();
   537 	void CollapseAllNodesL();
   538 	void ExpandOrCollapseL();
   538 	void ExpandOrCollapseL();
   539 
   539 
   540 	// Mark control functions
   540 	// Mark control functions
       
   541     /**
       
   542      * Mark all items
       
   543      */	
   541 	void MarkAllItemsL();
   544 	void MarkAllItemsL();
       
   545 
       
   546     /**
       
   547      * Unmark all items
       
   548      */	
   542 	void UnmarkAllItemsL();
   549 	void UnmarkAllItemsL();
       
   550 	
       
   551     /**
       
   552      * Exit from marking mode
       
   553 	 * @return TInt count of marked items
       
   554      */	
   543 	TInt CountMarkedItemsL();
   555 	TInt CountMarkedItemsL();
   544 
   556 
       
   557     /**
       
   558      * Check if all items are marked
       
   559      */    
       
   560 	TBool AreAllItemsMarked();
       
   561 	
       
   562     /**
       
   563      * Check if all items are unmarked
       
   564      */
       
   565 	TBool AreAllItemsUnmarked();
       
   566 	
       
   567     /**
       
   568      * Check if all marked items are read
       
   569      */	
       
   570 	TBool AreAllMarkedItemsReadL();
       
   571 
       
   572     /**
       
   573      * Check if all marked items are unread
       
   574      */	
       
   575 	TBool AreAllMarkedItemsUnreadL();
       
   576 	
       
   577     /**
       
   578      * Exit from marking mode
       
   579      */
       
   580 	void ExitMarkingModeL();
       
   581 	
       
   582     /**
       
   583      * Enter to marking mode
       
   584      */	
       
   585 	void EnterMarkingModeL();
       
   586 	
       
   587     /**
       
   588      * Refresh marking mode
       
   589      */	
       
   590 	void RefreshMarkingModeL();
       
   591 	
       
   592     /**
       
   593      * Display marking mode title text
       
   594      */ 
       
   595     void DisplayMarkingModeTitleTextL();
       
   596     
       
   597     /**
       
   598      * Remove marking mode title text
       
   599      */ 
       
   600     void RemoveMarkingModeTitleTextL();
       
   601 
       
   602     /**
       
   603      * Displays or remove marking mode background
       
   604      */
       
   605     void DisplayMarkingModeBgL( TBool aDisplay );
       
   606     
       
   607     /**
       
   608      * Mark/unmark items under current separator.
       
   609      *
       
   610      * @param aMarked If ETrue mark all items else unmark.
       
   611      * @param aSeparatorId Id of the separator.
       
   612      */
       
   613     void MarkItemsUnderSeparatorL( TBool aMarked, TInt aSeparatorId );
       
   614 	
       
   615     /**
       
   616      * Check if all items are marked under separator
       
   617      *
       
   618      * @param aSeparatorId Id of the separator.
       
   619      * @return TBool ETrue if all items are marked under separator
       
   620      */	
       
   621     TBool AreAllItemsMarkedUnderSeparatorL( TInt aSeparatorId );
       
   622     
       
   623     /**
       
   624      * Restore marking status
       
   625      */
   545 	void MarkMessagesIfFoundL( const RArray<TFSMailMsgId>& aMessageIDs );
   626 	void MarkMessagesIfFoundL( const RArray<TFSMailMsgId>& aMessageIDs );
   546 
   627 
   547 	// Message deletion internal functions
   628 	// Message deletion internal functions
   548 	void DeleteFocusedMessageL();
   629 	void DeleteFocusedMessageL();
   549 	void DeleteMarkedMessagesL();
   630 	void DeleteMarkedMessagesL();
   647 
   728 
   648     // Either marks or unmarks the current item depending on the current marking state
   729     // Either marks or unmarks the current item depending on the current marking state
   649     // as stored in iListMarkItemsState. Used for marking when shift is depressed while
   730     // as stored in iListMarkItemsState. Used for marking when shift is depressed while
   650     // scrolling. Returns ETrue if the highlighted item is markable.
   731     // scrolling. Returns ETrue if the highlighted item is markable.
   651     TBool DoScrollMarkUnmarkL();
   732     TBool DoScrollMarkUnmarkL();
   652 
       
   653     /**
       
   654      * Mark/unmark items under current separator.
       
   655      *
       
   656      * @param aMarked If ETrue mark all items else unmark.
       
   657      * @param aSeparatorId Id of the separator.
       
   658      */
       
   659     void MarkItemsUnderSeparatorL( TBool aMarked, TInt aSeparatorId );
       
   660 
   733 
   661     //When maillist is activated this method handles the connection icon change
   734     //When maillist is activated this method handles the connection icon change
   662     void ConnectionIconHandling();
   735     void ConnectionIconHandling();
   663 
   736 
   664     void SetListAndCtrlBarFocusL();
   737     void SetListAndCtrlBarFocusL();
   806     TBool iForceRefresh;
   879     TBool iForceRefresh;
   807     // true if message viewer/editor is open to disable background list updates
   880     // true if message viewer/editor is open to disable background list updates
   808     TBool iMailOpened;
   881     TBool iMailOpened;
   809     // tactile feed back -- not owned
   882     // tactile feed back -- not owned
   810     MTouchFeedback* iTouchFeedBack;
   883     MTouchFeedback* iTouchFeedBack;
       
   884 	// Is device in marking mode
       
   885 	TBool iMarkingMode;
       
   886 	// Exit marking mode when view is back to mail list view
       
   887 	TBool iMarkingModeWaitingToExit;
       
   888 	// Marking mode title variables
       
   889 	CAlfTextVisual* iMarkingModeTextVisual;
       
   890 	CAlfLayout* iMarkingModeTextParentLayout;
       
   891 	CAlfAnchorLayout* iMarkingModeTextContentLayout;
       
   892 	TPoint iMarkingModeTextPos;
       
   893 	TSize iMarkingModeTextSize;
       
   894 	TRect iMarkingModeTextRect;
   811   	};
   895   	};
   812 
   896 
   813 
   897 
   814 // Definition of the mail updater timer. This timer is used for
   898 // Definition of the mail updater timer. This timer is used for
   815 // delayed drawing of the mail list to avoid viewsrv:11 panics.
   899 // delayed drawing of the mail list to avoid viewsrv:11 panics.