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

knode

KNCollection Class Reference

#include <kncollection.h>

Inheritance diagram for KNCollection:

Inheritance graph
[legend]

List of all members.


Detailed Description

Abstract base class for everything that is visible in the folder tree.

This includes:

  • news groups
  • folders
  • news server accounts

Definition at line 29 of file kncollection.h.


Public Types

enum  collectionType {
  CTnntpAccount, CTgroup, CTfolder, CTcategory,
  CTvirtualGroup
}

Public Member Functions

int count () const
void decCount (int i)
void incCount (int i)
 KNCollection (KNCollection *p)
KNCollectionViewItem * listItem () const
virtual const QString & name ()
KNCollection * parent () const
virtual QString path ()=0
virtual bool readInfo (const QString &confPath)=0
virtual void saveInfo ()=0
void setCount (int i)
void setListItem (KNCollectionViewItem *i)
void setName (const QString &s)
virtual void setParent (KNCollection *p)
virtual collectionType type ()=0
virtual void updateListItem ()
virtual ~KNCollection ()

Protected Attributes

int c_ount
KNCollectionViewItem * l_istItem
QString n_ame
KNCollection * p_arent

Member Enumeration Documentation

enum KNCollection::collectionType

Enumerator:
CTnntpAccount 
CTgroup 
CTfolder 
CTcategory 
CTvirtualGroup 

Definition at line 32 of file kncollection.h.


Constructor & Destructor Documentation

KNCollection::KNCollection ( KNCollection *  p  ) 

Create a new collection.

Parameters:
p The parent collection.

Definition at line 18 of file kncollection.cpp.

KNCollection::~KNCollection (  )  [virtual]

Definition at line 27 of file kncollection.cpp.


Member Function Documentation

int KNCollection::count (  )  const [inline]

Definition at line 74 of file kncollection.h.

void KNCollection::decCount ( int  i  )  [inline]

Definition at line 77 of file kncollection.h.

void KNCollection::incCount ( int  i  )  [inline]

Definition at line 76 of file kncollection.h.

KNCollectionViewItem* KNCollection::listItem (  )  const [inline]

Returns the listview item representing this collection in the folder tree.

Definition at line 48 of file kncollection.h.

virtual const QString& KNCollection::name (  )  [inline, virtual]

Returns the collection name.

Reimplemented in KNGroup.

Definition at line 69 of file kncollection.h.

KNCollection* KNCollection::parent (  )  const [inline]

Returns the parent collection.

Definition at line 64 of file kncollection.h.

virtual QString KNCollection::path (  )  [pure virtual]

Implemented in KNFolder, KNGroup, and KNNntpAccount.

virtual bool KNCollection::readInfo ( const QString &  confPath  )  [pure virtual]

Load the properties/settings of this collection.

Implemented in KNFolder, KNGroup, and KNNntpAccount.

virtual void KNCollection::saveInfo (  )  [pure virtual]

Save the properties/settings of this collection.

Implemented in KNFolder, KNGroup, and KNNntpAccount.

void KNCollection::setCount ( int  i  )  [inline]

Definition at line 75 of file kncollection.h.

void KNCollection::setListItem ( KNCollectionViewItem *  i  ) 

Sets the listview item which represents this collection in the folder tree.

Definition at line 34 of file kncollection.cpp.

void KNCollection::setName ( const QString &  s  )  [inline]

Sets the collection name.

Definition at line 71 of file kncollection.h.

virtual void KNCollection::setParent ( KNCollection *  p  )  [inline, virtual]

Sets the parent collection.

Reimplemented in KNFolder.

Definition at line 66 of file kncollection.h.

virtual collectionType KNCollection::type (  )  [pure virtual]

Returns the collection type.

Implemented in KNFolder, KNGroup, and KNNntpAccount.

void KNCollection::updateListItem (  )  [virtual]

Updates the listview item after the collection has changed.

Reimplemented in KNFolder, and KNGroup.

Definition at line 45 of file kncollection.cpp.


Member Data Documentation

int KNCollection::c_ount [protected]

Definition at line 86 of file kncollection.h.

KNCollectionViewItem* KNCollection::l_istItem [protected]

The list view item representing this collection in the folder tree.

Definition at line 83 of file kncollection.h.

QString KNCollection::n_ame [protected]

The name of this collection.

Definition at line 85 of file kncollection.h.

KNCollection* KNCollection::p_arent [protected]

A pointer to the parent collection.

Definition at line 81 of file kncollection.h.


The documentation for this class was generated from the following files:
  • kncollection.h
  • kncollection.cpp

knode

Skip menu "knode"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • 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