knode
KNCollection Class Reference
#include <kncollection.h>

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
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] |
| 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] |
| 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] |
| 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] |
KNCollection* KNCollection::p_arent [protected] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference