Re: KIO::listDir, ioslaves, KIO::KDirLister
On Friday 05 August 2005 14:53, Maurizio Colucci wrote:[color=blue]
> 1. I can't seem to obtain the contents of an ioslave such as media://
> by using KIO::listDir(). Is this normal? (I suspect the problem is
> that I am using pykde compiled for kde 3.3).[/color]
If you're running a kde-3.4, I can't see why this wouldn't work.
> 2. Could someone please explain the difference between KIO::listDir
> and KDirLister? It seems like a replication of functionality and is
> confusing for who is approaching KDE development.[/color]
There's no duplication of functionality there - KDirLister is a layer on top
KIO::listDir is the low-level "list this directory now, and give me the ite=
KDirLister does that for you, and it stores the result (into KFileItems), a=
it tells you when items have been updated (by re-listing the dir and compar=
the results), and it can do multiple directories etc.
So KDirLister is what file managers (Konqueror, KFileDialog, and any direct=
listing that is visible on screen in a KDE app) use.
David Faure, [email]firstname.lastname@example.org[/email], sponsored by Trolltech to work on KDE,
Konqueror ([url]http://www.konqueror.org[/url]), and KOffice ([url]http://www.koffice.org[/url]).
>> Visit [url]http://mail.kde.org/mailman/listinfo/kde-devel#unsub[/url] to unsubscrib=[/color][/color]