libkdepim

KFolderTreeItem Class Reference

Inherits KListViewItem.

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)
int folderSize ()
virtual void setFolderSize (int aSize)
Protocol protocol () const
virtual void setProtocol (Protocol aProtocol)
Type type () const
virtual void setType (Type aType)
virtual int countUnreadRecursive ()
virtual size_t 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
int mSize
bool mFolderIsCloseToQuota

Member Enumeration Documentation

Protocol information.

Enumerator:
Imap 
Local 
News 
CachedImap 
Search 
NONE 

Definition at line 140 of file kfoldertree.h.

Type information.

Enumerator:
Inbox 
Outbox 
SentMail 
Trash 
Drafts 
Templates 
Root 
Calendar 
Tasks 
Journals 
Contacts 
Notes 
Other 

Definition at line 150 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 15 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 23 of file kfoldertree.cpp.


Member Function Documentation

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

compare

Definition at line 85 of file kfoldertree.cpp.

int KFolderTreeItem::unreadCount (  )  [inline]

set/get the unread-count

Definition at line 179 of file kfoldertree.h.

int KFolderTreeItem::totalCount (  )  [inline]

set/get the total-count

Definition at line 183 of file kfoldertree.h.

int KFolderTreeItem::folderSize (  )  [inline]

set/get the total-count

Definition at line 187 of file kfoldertree.h.

Protocol KFolderTreeItem::protocol (  )  const [inline]

set/get the protocol of the item

Definition at line 191 of file kfoldertree.h.

Type KFolderTreeItem::type (  )  const [inline]

set/get the type of the item

Definition at line 195 of file kfoldertree.h.

int KFolderTreeItem::countUnreadRecursive (  )  [virtual]

recursive unread count

Definition at line 227 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 241 of file kfoldertree.cpp.

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

dnd

Definition at line 208 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 338 of file kfoldertree.cpp.


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