# class KFile

###

Module | kio
Namespace |
Class | KFile
Inherits |

KFile is a class which provides a namespace for some enumerated values associated with the kfile library. You will never need to construct a KFile object itself.

### enums

- FileView { Default, Simple, Detail, SeparateDirs, PreviewContents, PreviewInfo, FileViewMax }
- Mode { File, Directory, Files, ExistingOnly, LocalOnly, ModeMax }
  typesafe object: Modes
- SelectionMode { Single, Multi, Extended, NoSelection }

enum details

### methods

- KFile ( )

  returns ctor
  Not implemented

- isDefaultView (view)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  view | KFile.FileView |

- isDetailView (view)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  view | KFile.FileView |

- isPreviewContents (view)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  view | KFile.FileView |

- isPreviewInfo (view)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  view | KFile.FileView |

- isSeparateDirs (view)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  view | KFile.FileView |

- isSimpleView (view)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  view | KFile.FileView |

- isSortByDate (sort)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  sort | QDir.SortFlags |

- isSortByName (sort)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  sort | QDir.SortFlags |

- isSortBySize (sort)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  sort | QDir.SortFlags |

- isSortByType (sort)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  sort | QDir.SortFlags |

- isSortCaseInsensitive (sort)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  sort | QDir.SortFlags |

- isSortDirsFirst (sort)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  sort | QDir.SortFlags |

### enums - detail

- FileView { Default, Simple, Detail, SeparateDirs, PreviewContents, PreviewInfo, FileViewMax }

  | Default | - 0 | - |
  | Simple | - 1 | - |
  | Detail | - 2 | - |
  | SeparateDirs | - 4 | - |
  | PreviewContents | - 8 | - |
  | PreviewInfo | - 16 | - |
  | FileViewMax | - 65536 | - |

- Mode { File, Directory, Files, ExistingOnly, LocalOnly, ModeMax }

  Modes of operation for the dialog.

- File - Get a single file name from the user.
- Directory - Get a directory name from the user.
- Files - Get multiple file names from the user.
- ExistingOnly - Never return a filename which does not exist yet
- LocalOnly - Don't return remote filenames

typesafe object: Modes
| File | - 1 | - |
| Directory | - 2 | - |
| Files | - 4 | - |
| ExistingOnly | - 8 | - |
| LocalOnly | - 16 | - |
| ModeMax | - 65536 | - |

- SelectionMode { Single, Multi, Extended, NoSelection }

  | Single | - 1 | - |
  | Multi | - 2 | - |
  | Extended | - 4 | - |
  | NoSelection | - 8 | - |