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

knode

  • sources
  • kde-4.12
  • kdepim
  • knode
kncollectionviewitem.h
Go to the documentation of this file.
1 /*
2  KNode, the KDE newsreader
3  Copyright (c) 1999-2005 the KNode authors.
4  See file AUTHORS for details
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10  You should have received a copy of the GNU General Public License
11  along with this program; if not, write to the Free Software Foundation,
12  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
13 */
14 
15 #ifndef KNCOLLECTIONVIEWITEM_H
16 #define KNCOLLECTIONVIEWITEM_H
17 
18 #include "kncollection.h"
19 
20 #include <foldertreewidget.h>
21 
22 using namespace KPIM;
23 
25 class KNCollectionViewItem : public FolderTreeWidgetItem {
26 
27  public:
28  explicit KNCollectionViewItem( FolderTreeWidget *parent, Protocol protocol = NONE, FolderType type = Root);
29  explicit KNCollectionViewItem( FolderTreeWidgetItem *parent, Protocol protocol = NONE,
30  FolderType type = Other, int unread = 0, int total = 0 );
31  ~KNCollectionViewItem();
32 
37  bool operator<( const QTreeWidgetItem &other ) const;
38 
42  void setCollection( KNCollection::Ptr c );
46  KNCollection::Ptr collection() const
47  { return coll; };
48 
49  protected:
54  virtual QString elidedLabelText( const QFontMetrics &fm, unsigned int width ) const;
55 
56  private:
58  void setUp();
59 
60  KNCollection::Ptr coll;
61 };
62 
63 #endif
KPIM::FolderTreeWidgetItem
A folder tree node to be used with FolderTreeWidget.
Definition: foldertreewidget.h:225
KPIM::FolderTreeWidget
A tree widget useful for displaying a tree of folders containing messages.
Definition: foldertreewidget.h:73
KNCollectionViewItem::collection
KNCollection::Ptr collection() const
Returns the collection this item represents.
Definition: kncollectionviewitem.h:46
KPIM::FolderTreeWidgetItem::FolderType
FolderType
Folder type information Please note that this list should be kept in the order of items that one want...
Definition: foldertreewidget.h:245
foldertreewidget.h
A basic implementation of an UI for a tree of folders.
QTreeWidgetItem
KPIM::FolderTreeWidgetItem::Protocol
Protocol
Protocol information associated to the item.
Definition: foldertreewidget.h:234
KNCollection::Ptr
boost::shared_ptr< KNCollection > Ptr
Shared pointer to a KNCollection.
Definition: kncollection.h:40
kncollection.h
KNCollectionViewItem
Folder tree item.
Definition: kncollectionviewitem.h:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 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