kmail

#include <kmfolderdir.h>

Inherits KMFolderNode, and TQPtrList< T >.

Inherited by KMFolderRootDir.

Public Member Functions

 KMFolderDir (KMFolder *owner, KMFolderDir *parent=0, const TQString &path=TQString(), KMFolderDirType=KMStandardDir)
 
virtual bool isDir () const
 
void addDirToParent (const TQString &dirName, KMFolder *parentFolder)
 
virtual bool reload ()
 
virtual TQString path () const
 
TQString label () const
 
virtual TQString prettyURL () const
 
virtual KMFoldercreateFolder (const TQString &folderName, bool sysFldr=false, KMFolderType folderType=KMFolderTypeMbox)
 
virtual KMFolderNode * hasNamedFolder (const TQString &name)
 
virtual KMFolderMgr * manager () const
 
KMFolderowner () const
 
virtual KMFolderDirType type () const
 
- Public Member Functions inherited from KMFolderNode
 KMFolderNode (KMFolderDir *parent, const TQString &name)
 
virtual bool isDir (void) const
 
virtual void setDir (bool aDir)
 
KMFolderDirparent (void) const
 
void setParent (KMFolderDir *aParent)
 
virtual TQString path () const
 
TQString name () const
 
void setName (const TQString &aName)
 
virtual TQString label () const
 
virtual TQString prettyURL () const =0
 
uint id () const
 
void setId (uint id)
 

Protected Attributes

KMFoldermOwner
 
KMFolderDirType mDirType
 
- Protected Attributes inherited from KMFolderNode
TQString mName
 
KMFolderDirmParent
 
bool mDir
 
uint mId
 

Detailed Description

KMail list that manages the contents of one directory that may contain folders and/or other directories.

Definition at line 15 of file kmfolderdir.h.

Member Function Documentation

void KMFolderDir::addDirToParent ( const TQString &  dirName,
KMFolder parentFolder 
)

Adds the given subdirectory of this directory to the associated folder.

Definition at line 167 of file kmfolderdir.cpp.

KMFolder * KMFolderDir::createFolder ( const TQString &  folderName,
bool  sysFldr = false,
KMFolderType  folderType = KMFolderTypeMbox 
)
virtual

Create a mail folder in this directory with given name.

If sysFldr==TRUE the folder is marked as a (KMail) system folder. Returns Folder on success.

Definition at line 95 of file kmfolderdir.cpp.

KMFolderNode * KMFolderDir::hasNamedFolder ( const TQString &  name)
virtual

Returns folder with given name or zero if it does not exist.

Definition at line 343 of file kmfolderdir.cpp.

TQString KMFolderDir::label ( void  ) const

Returns the label of the folder for visualization.

Definition at line 145 of file kmfolderdir.cpp.

KMFolderMgr * KMFolderDir::manager ( ) const
virtual

Returns the folder manager that manages this folder.

Definition at line 355 of file kmfolderdir.cpp.

KMFolder* KMFolderDir::owner ( ) const
inline

Returns the folder whose children we are holding.

Definition at line 59 of file kmfolderdir.h.

TQString KMFolderDir::path ( ) const
virtual

Return full pathname of this directory.

Definition at line 128 of file kmfolderdir.cpp.

TQString KMFolderDir::prettyURL ( ) const
virtual

URL of the node for visualization purposes.

Definition at line 155 of file kmfolderdir.cpp.

bool KMFolderDir::reload ( void  )
virtual

Read contents of directory.

Definition at line 193 of file kmfolderdir.cpp.


The documentation for this class was generated from the following files: