libkdepim

KFolderTreeItem Class Reference

List of all members.

Detailed Description

Definition at line 134 of file kfoldertree.h.


Public Types

enum  Protocol {
  Imap, Local, News, CachedImap,
  Search, NONE
}
enum  Type {
  Inbox, Outbox, SentMail, Trash,
  Drafts, Templates, Root, Calendar,
  Tasks, Journals, Contacts, Notes,
  Other
}

Public Member Functions

 KFolderTreeItem (KFolderTree *parent, const QString &label=QString::null, Protocol protocol=NONE, Type type=Root)
 KFolderTreeItem (KFolderTreeItem *parent, const QString &label=QString::null, Protocol protocol=NONE, Type type=Other, int unread=0, int total=0)
virtual int compare (QListViewItem *i, int col, bool ascending) const
int unreadCount ()
virtual void setUnreadCount (int aUnread)
int totalCount ()
virtual void setTotalCount (int aTotal)
Protocol protocol () const
virtual void setProtocol (Protocol aProtocol)
Type type () const
virtual void setType (Type aType)
virtual int countUnreadRecursive ()
virtual void paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align)
virtual bool acceptDrag (QDropEvent *) const

Protected Member Functions

virtual QString squeezeFolderName (const QString &text, const QFontMetrics &fm, uint width) const

Protected Attributes

Protocol mProtocol
Type mType
int mUnread
int mTotal

Member Enumeration Documentation

Protocol information.

Definition at line 138 of file kfoldertree.h.

Type information.

Definition at line 148 of file kfoldertree.h.


Constructor & Destructor Documentation

KFolderTreeItem::KFolderTreeItem ( KFolderTree parent,
const QString &  label = QString::null,
Protocol  protocol = NONE,
Type  type = Root 
)

constructs a root-item

Definition at line 14 of file kfoldertree.cpp.

KFolderTreeItem::KFolderTreeItem ( KFolderTreeItem parent,
const QString &  label = QString::null,
Protocol  protocol = NONE,
Type  type = Other,
int  unread = 0,
int  total = 0 
)

constructs a child-item

Definition at line 22 of file kfoldertree.cpp.


Member Function Documentation

int KFolderTreeItem::compare ( QListViewItem *  i,
int  col,
bool  ascending 
) const [virtual]

compare

Definition at line 84 of file kfoldertree.cpp.

int KFolderTreeItem::unreadCount (  )  [inline]

set/get the unread-count

Definition at line 177 of file kfoldertree.h.

int KFolderTreeItem::totalCount (  )  [inline]

set/get the total-count

Definition at line 181 of file kfoldertree.h.

Protocol KFolderTreeItem::protocol (  )  const [inline]

set/get the protocol of the item

Definition at line 185 of file kfoldertree.h.

Type KFolderTreeItem::type (  )  const [inline]

set/get the type of the item

Definition at line 189 of file kfoldertree.h.

int KFolderTreeItem::countUnreadRecursive (  )  [virtual]

recursive unread count

Definition at line 178 of file kfoldertree.cpp.

void KFolderTreeItem::paintCell ( QPainter *  p,
const QColorGroup &  cg,
int  column,
int  width,
int  align 
) [virtual]

paints the cell

Definition at line 192 of file kfoldertree.cpp.

virtual bool KFolderTreeItem::acceptDrag ( QDropEvent *   )  const [inline, virtual]

dnd

Definition at line 200 of file kfoldertree.h.

QString KFolderTreeItem::squeezeFolderName ( const QString &  text,
const QFontMetrics &  fm,
uint  width 
) const [protected, virtual]

reimplement to use special squeezing algorithm for the folder name

Definition at line 281 of file kfoldertree.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys