knode
#include <kncollection.h>
Public Types | |
enum | collectionType { CTnntpAccount, CTgroup, CTfolder, CTcategory, CTvirtualGroup } |
typedef boost::shared_ptr < KNCollection > | Ptr |
Public Member Functions | |
KNCollection (KNCollection::Ptr p) | |
virtual | ~KNCollection () |
int | count () const |
void | decCount (int i) |
void | incCount (int i) |
KNCollectionViewItem * | listItem () const |
virtual const QString & | name () |
KNCollection::Ptr | parent () const |
virtual QString | path ()=0 |
virtual bool | readInfo (const QString &confPath)=0 |
void | setCount (int i) |
void | setListItem (KNCollectionViewItem *i) |
void | setName (const QString &s) |
virtual void | setParent (KNCollection::Ptr p) |
virtual collectionType | type ()=0 |
virtual void | updateListItem () |
virtual void | writeConfig ()=0 |
Protected Member Functions | |
virtual KNCollection::Ptr | selfPtr ()=0 |
Protected Attributes | |
int | c_ount |
KNCollectionViewItem * | l_istItem |
QString | n_ame |
KNCollection::Ptr | p_arent |
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 30 of file kncollection.h.
Member Typedef Documentation
typedef boost::shared_ptr<KNCollection> KNCollection::Ptr |
Shared pointer to a KNCollection.
To be used instead of raw KNCollection*.
Definition at line 40 of file kncollection.h.
Member Enumeration Documentation
Enumerator | |
---|---|
CTnntpAccount | |
CTgroup | |
CTfolder | |
CTcategory | |
CTvirtualGroup |
Definition at line 33 of file kncollection.h.
Constructor & Destructor Documentation
|
explicit |
Create a new collection.
- Parameters
-
p The parent collection.
Definition at line 18 of file kncollection.cpp.
|
virtual |
Definition at line 27 of file kncollection.cpp.
Member Function Documentation
|
inline |
Definition at line 81 of file kncollection.h.
|
inline |
Definition at line 84 of file kncollection.h.
|
inline |
Definition at line 83 of file kncollection.h.
|
inline |
Returns the listview item representing this collection in the folder tree.
Definition at line 55 of file kncollection.h.
|
inlinevirtual |
Returns the collection name.
Reimplemented in KNGroup.
Definition at line 76 of file kncollection.h.
|
inline |
Returns the parent collection.
Definition at line 71 of file kncollection.h.
|
pure virtual |
Implemented in KNNntpAccount, KNGroup, and KNFolder.
|
pure virtual |
Load the properties/settings of this collection.
Implemented in KNNntpAccount, KNGroup, and KNFolder.
|
protectedpure virtual |
Returns a shared pointer pointing to this collection.
Implemented in KNGroup, and KNNntpAccount.
|
inline |
Definition at line 82 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.
|
inline |
Sets the collection name.
Definition at line 78 of file kncollection.h.
|
inlinevirtual |
Sets the parent collection.
Reimplemented in KNFolder.
Definition at line 73 of file kncollection.h.
|
pure virtual |
Returns the collection type.
Implemented in KNNntpAccount, KNGroup, and KNFolder.
|
virtual |
Updates the listview item after the collection has changed.
Reimplemented in KNGroup, and KNFolder.
Definition at line 45 of file kncollection.cpp.
|
pure virtual |
Save the properties/settings of this collection.
Implemented in KNNntpAccount, KNFolder, and KNGroup.
Member Data Documentation
|
protected |
Definition at line 98 of file kncollection.h.
|
protected |
The list view item representing this collection in the folder tree.
Definition at line 95 of file kncollection.h.
|
protected |
The name of this collection.
Definition at line 97 of file kncollection.h.
|
protected |
A pointer to the parent collection.
Definition at line 93 of file kncollection.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.