• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kmail

KMail::SortCacheItem

KMail::SortCacheItem Class Reference

#include <headeritem.h>

List of all members.


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 KMail::HeaderItem, which holds the graphical representation of each item (mail). This is what the threading trees are built of.

Definition at line 59 of file headeritem.h.


Public Member Functions

void addSortedChild (SortCacheItem *i)
void addUnsortedChild (SortCacheItem *i)
void clearChildren ()
bool hasChildren () const
int id () const
bool isImperfectlyThreaded () const
HeaderItem * item () const
const QString & key () const
int offset () const
SortCacheItem * parent () const
void setId (int id)
void setImperfectlyThreaded (bool val)
void setItem (HeaderItem *i)
void setKey (const QString &key)
void setOffset (int x)
void setSubjectThreadingList (QList< SortCacheItem * > *list)
 SortCacheItem (int i, QString k, int o=-1)
 SortCacheItem ()
const QList< SortCacheItem * > * sortedChildren () const
QList< SortCacheItem * > * subjectThreadingList () const
SortCacheItem ** unsortedChildren (int &count) const
void updateSortFile (FILE *sortStream, KMFolder *folder, bool waiting_for_parent=false, bool update_discovered_count=false)
 ~SortCacheItem ()

Constructor & Destructor Documentation

KMail::SortCacheItem::SortCacheItem (  )  [inline]

Definition at line 62 of file headeritem.h.

KMail::SortCacheItem::SortCacheItem ( int  i,
QString  k,
int  o = -1 
) [inline]

Definition at line 65 of file headeritem.h.

KMail::SortCacheItem::~SortCacheItem (  )  [inline]

Definition at line 69 of file headeritem.h.


Member Function Documentation

void KMail::SortCacheItem::addSortedChild ( SortCacheItem *  i  )  [inline]

Add an item to this itme's list of already sorted children.

Definition at line 97 of file headeritem.h.

void KMail::SortCacheItem::addUnsortedChild ( SortCacheItem *  i  )  [inline]

Add an item to this itme's list of unsorted children.

Definition at line 102 of file headeritem.h.

void KMail::SortCacheItem::clearChildren (  )  [inline]

Clear the sorted and unsorted children datastructures.

Definition at line 113 of file headeritem.h.

bool KMail::SortCacheItem::hasChildren (  )  const [inline]

Returns whether the item has other items below it.

Definition at line 86 of file headeritem.h.

int KMail::SortCacheItem::id (  )  const [inline]

Definition at line 130 of file headeritem.h.

bool KMail::SortCacheItem::isImperfectlyThreaded (  )  const [inline]

Returs whether the item is so far imperfectly threaded.

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.

Definition at line 79 of file headeritem.h.

HeaderItem* KMail::SortCacheItem::item (  )  const [inline]

The corresponding KMail::HeaderItem.

Definition at line 121 of file headeritem.h.

const QString& KMail::SortCacheItem::key (  )  const [inline]

sort key as used by the listview

Definition at line 126 of file headeritem.h.

int KMail::SortCacheItem::offset (  )  const [inline]

offset in the cache file stream

Definition at line 134 of file headeritem.h.

SortCacheItem* KMail::SortCacheItem::parent ( void   )  const [inline]

The parent node of the item in the threading hierarchy.

0 if the item is at top level, which is the default. Can only be set by parents.

Definition at line 73 of file headeritem.h.

void KMail::SortCacheItem::setId ( int  id  )  [inline]

Definition at line 131 of file headeritem.h.

void KMail::SortCacheItem::setImperfectlyThreaded ( bool  val  )  [inline]

Set whether the item is currently imperfectly threaded (by References or Subject, not by In-Reply-To).

Definition at line 83 of file headeritem.h.

void KMail::SortCacheItem::setItem ( HeaderItem *  i  )  [inline]

Set the corresponding KMail::HeaderItem.

Definition at line 123 of file headeritem.h.

void KMail::SortCacheItem::setKey ( const QString &  key  )  [inline]

Set the sort key used by the list view.

Definition at line 128 of file headeritem.h.

void KMail::SortCacheItem::setOffset ( int  x  )  [inline]

Definition at line 135 of file headeritem.h.

void KMail::SortCacheItem::setSubjectThreadingList ( QList< SortCacheItem * > *  list  )  [inline]

Set the list of mails with a certain subject that this item is on.

Used to remove the item from that list on deletion.

Definition at line 143 of file headeritem.h.

const QList<SortCacheItem*>* KMail::SortCacheItem::sortedChildren (  )  const [inline]

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 ).

Definition at line 90 of file headeritem.h.

QList<SortCacheItem*>* KMail::SortCacheItem::subjectThreadingList (  )  const [inline]

The list of mails with a certain subject that this item is on.

Definition at line 145 of file headeritem.h.

SortCacheItem** KMail::SortCacheItem::unsortedChildren ( int &  count  )  const [inline]

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.

Definition at line 94 of file headeritem.h.

void KMail::SortCacheItem::updateSortFile ( FILE *  sortStream,
KMFolder *  folder,
bool  waiting_for_parent = false,
bool  update_discovered_count = false 
)


The documentation for this class was generated from the following file:
  • headeritem.h

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal