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

libkdepim

KPIM::FolderTreeWidgetItem

KPIM::FolderTreeWidgetItem Class Reference

#include <foldertreewidget.h>

Inheritance diagram for KPIM::FolderTreeWidgetItem:

Inheritance graph
[legend]

List of all members.


Detailed Description

A folder tree node to be used with FolderTreeWidget.

Author:
: Szymon Tomasz Stefanek <pragma@kvirc.net>

Definition at line 68 of file foldertreewidget.h.


Public Types

enum  FolderType {
  Inbox, Outbox, SentMail, Trash,
  Drafts, Templates, Root, Calendar,
  Tasks, Journals, Contacts, Notes,
  Other
}
enum  Protocol {
  Imap, Local, News, CachedImap,
  Search, NONE
}

Public Member Functions

 FolderTreeWidgetItem (FolderTreeWidgetItem *parent, const QString &label=QString(), Protocol protocol=NONE, FolderType folderType=Other, int unread=0, int total=0)
 FolderTreeWidgetItem (FolderTreeWidget *parent, const QString &label=QString(), Protocol protocol=NONE, FolderType folderType=Root)
FolderType folderType () const
virtual bool operator< (const QTreeWidgetItem &other) const
Protocol protocol () const
void setFolderType (FolderType folderType)
void setProtocol (Protocol protocol)

Member Enumeration Documentation

enum KPIM::FolderTreeWidgetItem::FolderType

Folder type information.

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

Definition at line 86 of file foldertreewidget.h.

enum KPIM::FolderTreeWidgetItem::Protocol

Protocol information associated to the item.

Enumerator:
Imap 
Local 
News 
CachedImap 
Search 
NONE 

Definition at line 74 of file foldertreewidget.h.


Constructor & Destructor Documentation

KPIM::FolderTreeWidgetItem::FolderTreeWidgetItem ( FolderTreeWidget *  parent,
const QString &  label = QString(),
Protocol  protocol = NONE,
FolderType  folderType = Root 
) [explicit]

Constructs a root-item.

Definition at line 47 of file foldertreewidget.cpp.

KPIM::FolderTreeWidgetItem::FolderTreeWidgetItem ( FolderTreeWidgetItem *  parent,
const QString &  label = QString(),
Protocol  protocol = NONE,
FolderType  folderType = Other,
int  unread = 0,
int  total = 0 
) [explicit]

Constructs a child-item.

Definition at line 56 of file foldertreewidget.cpp.


Member Function Documentation

FolderType KPIM::FolderTreeWidgetItem::folderType (  )  const [inline]

Returns the type of the folder.

Definition at line 145 of file foldertreewidget.h.

bool KPIM::FolderTreeWidgetItem::operator< ( const QTreeWidgetItem &  other  )  const [virtual]

Operator used for item sorting.

Definition at line 67 of file foldertreewidget.cpp.

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

Returns the protocol associated to the folder item.

Definition at line 133 of file foldertreewidget.h.

void KPIM::FolderTreeWidgetItem::setFolderType ( FolderType  folderType  )  [inline]

Sets the type of the folder.

Definition at line 151 of file foldertreewidget.h.

void KPIM::FolderTreeWidgetItem::setProtocol ( Protocol  protocol  )  [inline]

Sets the protocol associated to the folder item.

Definition at line 139 of file foldertreewidget.h.


The documentation for this class was generated from the following files:
  • foldertreewidget.h
  • foldertreewidget.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
  •   doc
  • 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