class KDirLister


Table of contents
Modules
kio Classes
All Classes
Module kio
Namespace global
Class KDirLister
Inherits QObject

Helper class for the kiojob used to list and update a directory.

The dir lister deals with the kiojob used to list and update a directory 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 = true to list directories without forgetting the ones previously read (e.g. for a tree view)

    Author Michael Brade



    enums

    enum details

    methods