Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KDirListerCache Class Reference

#include <kdirlister_p.h>

Inheritance diagram for KDirListerCache:

KDirNotify List of all members.

Public Methods

virtual void FilesAdded (const KURL &directory)
virtual void FilesRemoved (const KURL::List &fileList)
virtual void FilesChanged (const KURL::List &fileList)
virtual void FileRenamed (const KURL &src, const KURL &dst)

Detailed Description

Design of the cache: There is a single KDirListerCache for the whole process. It holds all the items used by the dir listers (itemsInUse) as well as a cache of the recently used items (itemsCached). Those items are grouped by directory (a DirItem represents a whole directory).

KDirListerCache also runs all the jobs for listing directories, whether they are for normal listing or for updates. For faster lookups, it also stores two dicts: a URL -> dirlister holding that URL (urlsCurrentlyHeld) a URL -> dirlister currently listing that URL (urlsCurrentlyListed)

Definition at line 123 of file kdirlister_p.h.


Member Function Documentation

virtual void KDirListerCache::FileRenamed const KURL   src,
const KURL   dst
[virtual]
 

Notify that a file has been renamed. Note: this is ASYNC so that it can be used with a broadcast

Reimplemented from KDirNotify.

virtual void KDirListerCache::FilesAdded const KURL   directory [virtual]
 

Notify that files have been added in directory The receiver will list that directory again to find the new items (since it needs more than just the names anyway). Reimplemented from KDirNotify.

Implements KDirNotify.

virtual void KDirListerCache::FilesChanged const KURL::List   fileList [virtual]
 

Notify that files have been changed. At the moment, this is only used for new icon, but it could be used for size etc. as well. Note: this is ASYNC so that it can be used with a broadcast

Implements KDirNotify.

virtual void KDirListerCache::FilesRemoved const KURL::List   fileList [virtual]
 

Notify that files have been deleted. This call passes the exact urls of the deleted files so that any view showing them can simply remove them or be closed (if its current dir was deleted) Reimplemented from KDirNotify.

Implements KDirNotify.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:09 2003 for kdelibs by doxygen1.2.18