libkdepim
KFolderTreeItem Class Reference
List of all members.Detailed Description
Definition at line 136 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) |
Q_INT64 | folderSize () |
virtual void | setFolderSize (Q_INT64 aSize) |
Protocol | protocol () const |
virtual void | setProtocol (Protocol aProtocol) |
Type | type () const |
virtual void | setType (Type aType) |
virtual int | countUnreadRecursive () |
virtual Q_INT64 | recursiveFolderSize () const |
virtual void | paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align) |
virtual bool | acceptDrag (QDropEvent *) const |
void | setFolderIsCloseToQuota (bool) |
bool | folderIsCloseToQuota () 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 |
Q_INT64 | mSize |
bool | mFolderIsCloseToQuota |
Member Enumeration Documentation
|
Protocol information.
Definition at line 140 of file kfoldertree.h. |
|
Type information.
Definition at line 150 of file kfoldertree.h. |
Constructor & Destructor Documentation
|
constructs a root-item
Definition at line 15 of file kfoldertree.cpp. |
|
constructs a child-item
Definition at line 23 of file kfoldertree.cpp. |
Member Function Documentation
|
dnd
Definition at line 208 of file kfoldertree.h. |
|
compare
Definition at line 85 of file kfoldertree.cpp. |
|
recursive unread count
Definition at line 227 of file kfoldertree.cpp. |
|
set/get the total-count
Definition at line 187 of file kfoldertree.h. |
|
paints the cell
Definition at line 241 of file kfoldertree.cpp. |
|
set/get the protocol of the item
Definition at line 191 of file kfoldertree.h. |
|
reimplement to use special squeezing algorithm for the folder name
Definition at line 338 of file kfoldertree.cpp. |
|
set/get the total-count
Definition at line 183 of file kfoldertree.h. |
|
set/get the type of the item
Definition at line 195 of file kfoldertree.h. |
|
set/get the unread-count
Definition at line 179 of file kfoldertree.h. |
The documentation for this class was generated from the following files: