# class KAbstractFileModule

### abstract

Module | kio
Namespace |
Class | KAbstractFileModule
Inherits | QObject

Interface to the module that contains the file widget.

libkfilemodule returns an object that derives from KAbstractFileModule.

This is internal to KFileDialog.

### methods

- KAbstractFileModule (parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  parent | QObject |

- createFileWidget (startDir, parent)

  returns QWidget
  pure virtual

  Argument | Type | Default
  --- | --- | ---
  startDir | KUrl |
  parent | QWidget |

  the returned widget implements the KAbstractFileWidget interface

- getStartUrl (startDir, recentDirClass)

  returns KUrl
  pure virtual

  Argument | Type | Default
  --- | --- | ---
  startDir | KUrl |
  recentDirClass | QString |

- selectDirectory (startDir, localOnly, parent, caption)

  returns KUrl
  pure virtual

  Argument | Type | Default
  --- | --- | ---
  startDir | KUrl |
  localOnly | bool |
  parent | QWidget |
  caption | QString |

  Creates a modal file dialog and returns the selected directory or an empty string if none was chosen.

- setStartDir (directory)

  returns Nothing
  pure virtual

  Argument | Type | Default
  --- | --- | ---
  directory | KUrl |