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
|
constructs a root-item
Definition at line 14 of file kfoldertree.cpp. |
|
constructs a child-item
Definition at line 22 of file kfoldertree.cpp. |
Member Function Documentation
|
dnd
Definition at line 200 of file kfoldertree.h. |
|
compare
Definition at line 84 of file kfoldertree.cpp. |
|
recursive unread count
Definition at line 178 of file kfoldertree.cpp. |
|
paints the cell
Definition at line 192 of file kfoldertree.cpp. |
|
set/get the protocol of the item
Definition at line 185 of file kfoldertree.h. |
|
reimplement to use special squeezing algorithm for the folder name
Definition at line 281 of file kfoldertree.cpp. |
|
set/get the total-count
Definition at line 181 of file kfoldertree.h. |
|
set/get the type of the item
Definition at line 189 of file kfoldertree.h. |
|
set/get the unread-count
Definition at line 177 of file kfoldertree.h. |
The documentation for this class was generated from the following files: