libkdepim
KPIM::KFolderTreeItem Class Reference
#include <kfoldertree.h>

Detailed Description
Definition at line 139 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 | |
| virtual bool | acceptDrag (QDropEvent *) const |
| virtual int | compare (Q3ListViewItem *i, int col, bool ascending) const |
| virtual int | countUnreadRecursive () |
| bool | folderIsCloseToQuota () const |
| qint64 | folderSize () |
| KFolderTreeItem (KFolderTreeItem *parent, const QString &label=QString(), Protocol protocol=NONE, Type type=Other, int unread=0, int total=0) | |
| KFolderTreeItem (KFolderTree *parent, const QString &label=QString(), Protocol protocol=NONE, Type type=Root) | |
| virtual void | paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align) |
| Protocol | protocol () const |
| virtual qint64 | recursiveFolderSize () const |
| void | setFolderIsCloseToQuota (bool) |
| virtual void | setFolderSize (qint64 aSize) |
| virtual void | setProtocol (Protocol aProtocol) |
| virtual void | setTotalCount (int aTotal) |
| virtual void | setType (Type aType) |
| virtual void | setUnreadCount (int aUnread) |
| int | totalCount () |
| Type | type () const |
| int | unreadCount () |
Protected Member Functions | |
| virtual QString | squeezeFolderName (const QString &text, const QFontMetrics &fm, uint width) const |
Protected Attributes | |
| bool | mFolderIsCloseToQuota |
| Protocol | mProtocol |
| qint64 | mSize |
| int | mTotal |
| Type | mType |
| int | mUnread |
Member Enumeration Documentation
Type information.
- Enumerator:
-
Inbox Outbox SentMail Trash Drafts Templates Root Calendar Tasks Journals Contacts Notes Other
Definition at line 153 of file kfoldertree.h.
Constructor & Destructor Documentation
| KFolderTreeItem::KFolderTreeItem | ( | KFolderTree * | parent, | |
| const QString & | label = QString(), |
|||
| Protocol | protocol = NONE, |
|||
| Type | type = Root | |||
| ) | [explicit] |
| KFolderTreeItem::KFolderTreeItem | ( | KFolderTreeItem * | parent, | |
| const QString & | label = QString(), |
|||
| Protocol | protocol = NONE, |
|||
| Type | type = Other, |
|||
| int | unread = 0, |
|||
| int | total = 0 | |||
| ) | [explicit] |
Member Function Documentation
| virtual bool KPIM::KFolderTreeItem::acceptDrag | ( | QDropEvent * | ) | const [inline, virtual] |
| int KFolderTreeItem::compare | ( | Q3ListViewItem * | i, | |
| int | col, | |||
| bool | ascending | |||
| ) | const [virtual] |
| int KFolderTreeItem::countUnreadRecursive | ( | ) | [virtual] |
| bool KFolderTreeItem::folderIsCloseToQuota | ( | ) | const |
Definition at line 377 of file kfoldertree.cpp.
| qint64 KPIM::KFolderTreeItem::folderSize | ( | ) | [inline] |
| void KFolderTreeItem::paintCell | ( | QPainter * | p, | |
| const QColorGroup & | cg, | |||
| int | column, | |||
| int | width, | |||
| int | align | |||
| ) | [virtual] |
| Protocol KPIM::KFolderTreeItem::protocol | ( | ) | const [inline] |
| qint64 KFolderTreeItem::recursiveFolderSize | ( | ) | const [virtual] |
Definition at line 250 of file kfoldertree.cpp.
| void KFolderTreeItem::setFolderIsCloseToQuota | ( | bool | v | ) |
Definition at line 382 of file kfoldertree.cpp.
| void KFolderTreeItem::setFolderSize | ( | qint64 | aSize | ) | [virtual] |
Definition at line 213 of file kfoldertree.cpp.
| virtual void KPIM::KFolderTreeItem::setProtocol | ( | Protocol | aProtocol | ) | [inline, virtual] |
Definition at line 194 of file kfoldertree.h.
| void KFolderTreeItem::setTotalCount | ( | int | aTotal | ) | [virtual] |
Definition at line 193 of file kfoldertree.cpp.
| virtual void KPIM::KFolderTreeItem::setType | ( | Type | aType | ) | [inline, virtual] |
Definition at line 198 of file kfoldertree.h.
| void KFolderTreeItem::setUnreadCount | ( | int | aUnread | ) | [virtual] |
Definition at line 173 of file kfoldertree.cpp.
| 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 370 of file kfoldertree.cpp.
| int KPIM::KFolderTreeItem::totalCount | ( | ) | [inline] |
| Type KPIM::KFolderTreeItem::type | ( | ) | const [inline] |
| int KPIM::KFolderTreeItem::unreadCount | ( | ) | [inline] |
Member Data Documentation
bool KPIM::KFolderTreeItem::mFolderIsCloseToQuota [protected] |
Definition at line 232 of file kfoldertree.h.
Protocol KPIM::KFolderTreeItem::mProtocol [protected] |
Definition at line 227 of file kfoldertree.h.
qint64 KPIM::KFolderTreeItem::mSize [protected] |
Definition at line 231 of file kfoldertree.h.
int KPIM::KFolderTreeItem::mTotal [protected] |
Definition at line 230 of file kfoldertree.h.
Type KPIM::KFolderTreeItem::mType [protected] |
Definition at line 228 of file kfoldertree.h.
int KPIM::KFolderTreeItem::mUnread [protected] |
Definition at line 229 of file kfoldertree.h.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference