From kde-devel Wed Apr 04 17:56:22 2001 From: Alexandre Sagala Date: Wed, 04 Apr 2001 17:56:22 +0000 To: kde-devel Subject: Re: Listing the local filesystem X-MARC-Message: https://marc.info/?l=kde-devel&m=98640715724951 I know I meant in the html file package that comes with kde . The=20 KDirLister is not there At 18:40 01-04-04 +0100, you wrote: >On Wednesday 04 April 2001 18:33, Alexandre Sagala wrote: > > How come this class is not documented??? > >??? > >/** > * The dir lister deals with the kiojob used to list and update a= directory, > * handles the timer, and has signals for the user of this class (e.g. > * konqueror view or kdesktop) to create/destroy its items when asked. > * > * This class is independent from the graphical representation of the dir > * (icon container, tree view, ...) and it stores the items (as= KFileItems). > * > * Typical usage : > * Create an instance, > * Connect to at least update, clear, newItem, and deleteItem > * Call openURL - the signals will be called > * Reuse the instance when opening a new url (openURL) > * Destroy the instance when not needed anymore (usually destructor) > * > * Advanced usage : call openURL with _keep =3D true to list directories > * without forgetting the ones previously read (e.g. for a tree view) > * > *@short Helper class for the kiojob used to list and update a directory. > */ >class KDirLister : public QObject, public KDirNotify >{ > Q_OBJECT >public: > /** > * Create a directory lister > */ > KDirLister( bool _delayedMimeTypes =3D false ); > /** > * Destroy the directory lister > */ > virtual ~KDirLister(); > > /** > * Run the directory lister on the given url > * @param _url the directory URL > * @param _showDotFiles whether to return the "hidden" files > * @param _keep if true the previous directories aren't forgotten > * (they are still watched by kdirwatch and their items are kept in > * m_lstFileItems) > * > * The @ref newItems() signal may be emitted more than once to supply= you > * with KFileItems, up until the signal @ref completed() is emitted > * (and isFinished() returns true). > */ > virtual void openURL( const KURL& _url, bool _showDotFiles, bool _keep= =20 > =3D false ); > >etc. > >-- >David FAURE, david@mandrakesoft.com, faure@kde.org >http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/ >KDE, Making The Future of Computing Available Today > > > >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to=20 > unsubscribe << ------------------------------------------------ Alexandre Sagala - Eclipsys Sp=E9cialiste Linux asagala@eclipsys.qc.ca >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<