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
Constructor & Destructor Documentation
KFolderTreeItem::KFolderTreeItem | ( | KFolderTree * | parent, | |
const QString & | label = QString::null , |
|||
Protocol | protocol = NONE , |
|||
Type | type = Root | |||
) |
KFolderTreeItem::KFolderTreeItem | ( | KFolderTreeItem * | parent, | |
const QString & | label = QString::null , |
|||
Protocol | protocol = NONE , |
|||
Type | type = Other , |
|||
int | unread = 0 , |
|||
int | total = 0 | |||
) |
Member Function Documentation
int KFolderTreeItem::compare | ( | QListViewItem * | i, | |
int | col, | |||
bool | ascending | |||
) | const [virtual] |
int KFolderTreeItem::unreadCount | ( | ) | [inline] |
int KFolderTreeItem::totalCount | ( | ) | [inline] |
Protocol KFolderTreeItem::protocol | ( | ) | const [inline] |
Type KFolderTreeItem::type | ( | ) | const [inline] |
int KFolderTreeItem::countUnreadRecursive | ( | ) | [virtual] |
void KFolderTreeItem::paintCell | ( | QPainter * | p, | |
const QColorGroup & | cg, | |||
int | column, | |||
int | width, | |||
int | align | |||
) | [virtual] |
virtual bool KFolderTreeItem::acceptDrag | ( | QDropEvent * | ) | const [inline, virtual] |
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: