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

knode

  • sources
  • kde-4.14
  • kdepim
  • knode
kncollection.cpp
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 #include "kncollection.h"
16 #include "kncollectionviewitem.h"
17 
18 KNCollection::KNCollection( KNCollection::Ptr p )
19 {
20  p_arent=p;
21  l_istItem=0;
22  c_ount=0;
23 }
24 
25 
26 
27 KNCollection::~KNCollection()
28 {
29  delete l_istItem;
30 }
31 
32 
33 
34 void KNCollection::setListItem(KNCollectionViewItem *i)
35 {
36  l_istItem=i;
37  if(i) {
38  i->setCollection( selfPtr() );
39  i->setLabelText( name() );
40  }
41 }
42 
43 
44 
45 void KNCollection::updateListItem()
46 {
47  if ( l_istItem ) {
48  l_istItem->setLabelText( name() );
49  }
50 }
KNCollection::selfPtr
virtual KNCollection::Ptr selfPtr()=0
Returns a shared pointer pointing to this collection.
KNCollection::p_arent
KNCollection::Ptr p_arent
A pointer to the parent collection.
Definition: kncollection.h:95
KNCollection::KNCollection
KNCollection(KNCollection::Ptr p)
Create a new collection.
Definition: kncollection.cpp:18
KNCollectionViewItem::setCollection
void setCollection(KNCollection::Ptr c)
Sets the collection this item represents.
Definition: kncollectionviewitem.cpp:100
KNCollection::updateListItem
virtual void updateListItem()
Updates the listview item after the collection has changed.
Definition: kncollection.cpp:45
KNCollection::name
virtual const QString & name()
Returns the collection name.
Definition: kncollection.h:78
KNCollection::l_istItem
KNCollectionViewItem * l_istItem
The list view item representing this collection in the folder tree.
Definition: kncollection.h:97
KNCollection::~KNCollection
virtual ~KNCollection()
Definition: kncollection.cpp:27
kncollectionviewitem.h
KNCollection::Ptr
boost::shared_ptr< KNCollection > Ptr
Shared pointer to a KNCollection.
Definition: kncollection.h:42
KNCollection::setListItem
void setListItem(KNCollectionViewItem *i)
Sets the listview item which represents this collection in the folder tree.
Definition: kncollection.cpp:34
KPIM::FolderTreeWidgetItem::setLabelText
void setLabelText(const QString &label)
Sets the textual data for the "Label" column of the parent FolderTreeWidget.
Definition: foldertreewidget.cpp:439
kncollection.h
KNCollection::c_ount
int c_ount
Definition: kncollection.h:100
KNCollectionViewItem
Folder tree item.
Definition: kncollectionviewitem.h:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:18 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
  • pimprint

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