• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

libkdepim

KPIM::KFolderTreeItem

KPIM::KFolderTreeItem Class Reference

#include <kfoldertree.h>

Inheritance diagram for KPIM::KFolderTreeItem:

Inheritance graph
[legend]

List of all members.


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

enum KPIM::KFolderTreeItem::Protocol

Protocol information.

Enumerator:
Imap 
Local 
News 
CachedImap 
Search 
NONE 

Definition at line 143 of file kfoldertree.h.

enum KPIM::KFolderTreeItem::Type

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]

constructs a root-item

Definition at line 42 of file kfoldertree.cpp.

KFolderTreeItem::KFolderTreeItem ( KFolderTreeItem *  parent,
const QString &  label = QString(),
Protocol  protocol = NONE,
Type  type = Other,
int  unread = 0,
int  total = 0 
) [explicit]

constructs a child-item

Definition at line 50 of file kfoldertree.cpp.


Member Function Documentation

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

dnd

Definition at line 210 of file kfoldertree.h.

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

compare

Definition at line 113 of file kfoldertree.cpp.

int KFolderTreeItem::countUnreadRecursive (  )  [virtual]

recursive unread count

Definition at line 261 of file kfoldertree.cpp.

bool KFolderTreeItem::folderIsCloseToQuota (  )  const

Definition at line 377 of file kfoldertree.cpp.

qint64 KPIM::KFolderTreeItem::folderSize (  )  [inline]

set/get the total-count

Definition at line 189 of file kfoldertree.h.

void KFolderTreeItem::paintCell ( QPainter *  p,
const QColorGroup &  cg,
int  column,
int  width,
int  align 
) [virtual]

paints the cell

Definition at line 273 of file kfoldertree.cpp.

Protocol KPIM::KFolderTreeItem::protocol (  )  const [inline]

set/get the protocol of the item

Definition at line 193 of file kfoldertree.h.

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]

set/get the total-count

Definition at line 185 of file kfoldertree.h.

Type KPIM::KFolderTreeItem::type (  )  const [inline]

set/get the type of the item

Definition at line 197 of file kfoldertree.h.

int KPIM::KFolderTreeItem::unreadCount (  )  [inline]

set/get the unread-count

Definition at line 181 of file kfoldertree.h.


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:
  • kfoldertree.h
  • kfoldertree.cpp

libkdepim

Skip menu "libkdepim"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal