KMail::SortCacheItem Class Reference
Represents an item in the set of mails to be displayed but only as far as sorting, threading and reading/writing of the current sort order to a disk cache is concerned. More...
#include <headeritem.h>
Public Member Functions
- SortCacheItem (int i, QString k, int o=-1)
- SortCacheItem * parent () const
- bool isImperfectlyThreaded () const
- void setImperfectlyThreaded (bool val)
- bool hasChildren () const
- const QPtrList< SortCacheItem > * sortedChildren () const
- SortCacheItem ** unsortedChildren (int &count) const
- void addSortedChild (SortCacheItem *i)
- void addUnsortedChild (SortCacheItem *i)
- void clearChildren ()
- HeaderItem * item () const
- void setItem (HeaderItem *i)
- const QString & key () const
- void setKey (const QString &key)
- int id () const
- void setId (int id)
- int offset () const
- void setOffset (int x)
- void updateSortFile (FILE *sortStream, KMFolder *folder, bool waiting_for_parent=false, bool update_discovered_count=false)
- void setSubjectThreadingList (QPtrList< SortCacheItem > *list)
- QPtrList< SortCacheItem > * subjectThreadingList () const
Detailed Description
Represents an item in the set of mails to be displayed but only as far as sorting, threading and reading/writing of the current sort order to a disk cache is concerned.Each such item is paired with a HeaderItem, which holds the graphical representation of each item (mail). This is what the threading trees are built of.
Member Function Documentation
|
if an item is imperfectly threaded (by References or subject, not by In-Reply-To) it will be reevalutated when a new mail comes in. It could be the perfect parent. |
|
The sorted children are an array of sortcache items we know are below the current one and are already properly sorted (as read from the cache ).
|
|
The unsorted children are an array of sortcache items we know are below the current one, but are yet to be threaded and sorted properly.
|
|
Clear the sorted and unsorted children datastructures.
|
|
the corresponding HeaderItem
|
|
sort key as used by the listview
|
|
offset in the cache file stream
|
The documentation for this class was generated from the following file:
- headeritem.h