kmail Library API Documentation

kmfoldernode.h

00001 /* Basic Node for folder directory tree. Childs are KMFolder and KMFolderDir. 00002 * The owner of such nodes are usually objects of type KMFolderDir 00003 * 00004 * Author: Stefan Taferner <taferner@alpin.or.at> 00005 */ 00006 #ifndef kmfoldernode_h 00007 #define kmfoldernode_h 00008 00009 #include <qobject.h> 00010 #include <qstring.h> 00011 #include <qptrlist.h> 00012 00013 class KMFolderDir; 00014 00015 class KMFolderNode: public QObject 00016 { 00017 Q_OBJECT 00018 00019 public: 00020 KMFolderNode(KMFolderDir* parent, const QString& name); 00021 virtual ~KMFolderNode(); 00022 00027 virtual bool isDir(void) const; 00028 virtual void setDir(bool aDir) { mDir = aDir; } 00029 00032 KMFolderDir* parent(void) const ; 00033 void setParent( KMFolderDir* aParent ); 00034 // { return (KMFolderDir*)KMFolderNodeInherited::parent(); } 00035 00040 virtual QString path() const; 00041 00050 virtual const char* type(void) const; 00051 virtual void setType(const char*); 00052 00054 QString name() const { return mName; } 00055 void setName(const QString& aName) { mName = aName; } 00056 00059 virtual QString label(void) const; 00060 00061 protected: 00062 QString mName; 00063 const char* mType; 00064 KMFolderDir *mParent; 00065 bool mDir; 00066 }; 00067 00068 typedef QPtrList<KMFolderNode> KMFolderNodeList; 00069 00070 00071 #endif /*kmfoldernode_h*/
KDE Logo
This file is part of the documentation for kmail Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:01 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003