class KDirListerCache

Design of the cache: There is a single KDirListerCache for the whole process. More...

Definition#include <kdirlister_p.h>
InheritsKDirNotify [private], QObject (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods


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)

 KDirListerCache ( int maxCount = 10 )

KDirListerCache

 ~KDirListerCache ()

~KDirListerCache

void  listDir ( KDirLister* lister, const KURL &_url, bool _keep, bool _reload )

listDir

void  stop ( KDirLister *lister )

stop

void  stop ( KDirLister *lister, const KURL &_url )

stop

void  setAutoUpdate ( KDirLister *lister, bool enable )

setAutoUpdate

void  forgetDirs ( KDirLister *lister )

forgetDirs

void  forgetDirs ( KDirLister *lister, const KURL &_url, bool notify )

forgetDirs

void  updateDirectory ( const KURL &_dir )

updateDirectory

KFileItemList*  itemsForDir ( const KURL &_dir )

itemsForDir

[const]

KFileItem*  findByName ( const KDirLister *lister, const QString &_name )

findByName

[const]

KFileItem*  findByURL ( const KDirLister *lister, const KURL &_url )

findByURL

[const]

void  FilesAdded ( const KURL &directory )

FilesAdded

[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.

Reimplemented from KDirNotify.

void  FilesRemoved ( const KURL::List &fileList )

FilesRemoved

[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.

Reimplemented from KDirNotify.

void  FilesChanged ( const KURL::List &fileList )

FilesChanged

[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

Reimplemented from KDirNotify.

void  FileRenamed ( const KURL &src, const KURL &dst )

FileRenamed

[virtual]

Reimplemented from KDirNotify.

KDirListerCache*  self ()

self

[static]


Generated by: dfaure on faure on Tue Apr 16 08:49:48 2002, using kdoc 2.0a53.