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

knode

Public Member Functions | Protected Member Functions | List of all members
KNCollectionViewItem Class Reference

#include <kncollectionviewitem.h>

Inheritance diagram for KNCollectionViewItem:
Inheritance graph
[legend]

Public Member Functions

 KNCollectionViewItem (FolderTreeWidget *parent, Protocol protocol=NONE, FolderType type=Root)
 
 KNCollectionViewItem (FolderTreeWidgetItem *parent, Protocol protocol=NONE, FolderType type=Other, int unread=0, int total=0)
 
 ~KNCollectionViewItem ()
 
KNCollection::Ptr collection () const
 
bool operator< (const QTreeWidgetItem &other) const
 
void setCollection (KNCollection::Ptr c)
 
- Public Member Functions inherited from KPIM::FolderTreeWidgetItem
 FolderTreeWidgetItem (FolderTreeWidget *parent, const QString &label, Protocol protocol, FolderType folderType)
 
 FolderTreeWidgetItem (FolderTreeWidgetItem *parent, const QString &label, Protocol protocol, FolderType folderType)
 
bool alwaysDisplayCounts () const
 
qint64 childrenDataSize () const
 
int childrenTotalCount () const
 
int childrenUnreadCount () const
 
qint64 dataSize () const
 
FolderType folderType () const
 
bool isCloseToQuota () const
 
const QString & labelText () const
 
bool labelTextElided () const
 
Protocol protocol () const
 
QString protocolDescription () const
 
void setAlwaysDisplayCounts (bool alwaysDisplayCounts)
 
void setDataSize (qint64 s)
 
void setFolderType (FolderType folderType)
 
void setIsCloseToQuota (bool closeToQuota)
 
void setLabelText (const QString &label)
 
void setProtocol (Protocol protocol)
 
void setTotalCount (int totalCount)
 
void setUnreadCount (int unreadCount)
 
int totalCount () const
 
int unreadCount () const
 
bool updateChildrenCounts ()
 
void updateColumn (int columnIndex)
 
void updateExpandedState ()
 

Protected Member Functions

virtual QString elidedLabelText (const QFontMetrics &fm, unsigned int width) const
 
- Protected Member Functions inherited from KPIM::FolderTreeWidgetItem
void setLabelTextElided (bool labelTextElided)
 

Additional Inherited Members

- Public Types inherited from KPIM::FolderTreeWidgetItem
enum  FolderType {
  Inbox, Outbox, SentMail, Trash,
  Drafts, Templates, Root, Calendar,
  Tasks, Journals, Contacts, Notes,
  Other
}
 
enum  Protocol {
  Local, Imap, CachedImap, News,
  Search, NONE
}
 

Detailed Description

Folder tree item.

Definition at line 25 of file kncollectionviewitem.h.

Constructor & Destructor Documentation

KNCollectionViewItem::KNCollectionViewItem ( FolderTreeWidget *  parent,
Protocol  protocol = NONE,
FolderType  type = Root 
)
explicit

Definition at line 25 of file kncollectionviewitem.cpp.

KNCollectionViewItem::KNCollectionViewItem ( FolderTreeWidgetItem *  parent,
Protocol  protocol = NONE,
FolderType  type = Other,
int  unread = 0,
int  total = 0 
)
explicit

Definition at line 32 of file kncollectionviewitem.cpp.

KNCollectionViewItem::~KNCollectionViewItem ( )

Definition at line 41 of file kncollectionviewitem.cpp.

Member Function Documentation

KNCollection::Ptr KNCollectionViewItem::collection ( ) const
inline

Returns the collection this item represents.

Definition at line 46 of file kncollectionviewitem.h.

QString KNCollectionViewItem::elidedLabelText ( const QFontMetrics &  fm,
unsigned int  width 
) const
protectedvirtual

Elid names of group according to usenet habit.

(e.g. fr.comp.lang.perl is elided to f.c.lang.perl)

Reimplemented from KPIM::FolderTreeWidgetItem.

Definition at line 107 of file kncollectionviewitem.cpp.

bool KNCollectionViewItem::operator< ( const QTreeWidgetItem &  other) const
virtual

Sort newsgroups before local folders.

Reimplemented from FolderTreeWidgetItem.

Reimplemented from KPIM::FolderTreeWidgetItem.

Definition at line 81 of file kncollectionviewitem.cpp.

void KNCollectionViewItem::setCollection ( KNCollection::Ptr  c)

Sets the collection this item represents.

Definition at line 100 of file kncollectionviewitem.cpp.


The documentation for this class was generated from the following files:
  • kncollectionviewitem.h
  • kncollectionviewitem.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

knode

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal