class KFileItem

#### PyKDE - Python Bindings for KDE

# class KFileItem |
Table of contents
Modules
kio Classes
All Classes

Module | kio
Class | KFileItem
Inherits |

### enums

- (anonymous) = {Unknown = -1 }

### methods

- KFileItem (_entry, _url, _determineMimeTypeOnDemand = 0, _urlIsDirectory = 0)

  returns a KFileItem instance
  Argument | Type | Default
  --- | --- | ---
  _entry | KIO.UDSEntry |
  _url | KURL |
  _determineMimeTypeOnDemand | bool | 0
  _urlIsDirectory | bool | 0

- KFileItem (_mode, _permissions, _url, _determineMimeTypeOnDemand = 0)

  returns a KFileItem instance
  Argument | Type | Default
  --- | --- | ---
  _mode | mode_t |
  _permissions | mode_t |
  _url | KURL |
  _determineMimeTypeOnDemand | bool | 0

- KFileItem (url, mimeType, mode)

  returns a KFileItem instance
  Argument | Type | Default
  --- | --- | ---
  url | KURL |
  mimeType | QString |
  mode | mode_t |

- KFileItem (item)

  returns a KFileItem instance
  Argument | Type | Default
  --- | --- | ---
  item | KFileItem |

- acceptsDrops ()

  returns (bool)

- assign (item)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  item | KFileItem |

- cmp (item)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  item | KFileItem |

- determineMimeType ()

  returns (KMimeType.Ptr)

- entry ()

  returns (KIO.UDSEntry)

- extraData (key)

  Not Implemented

- getStatusBarInfo ()

  returns (QString)

- getToolTipText (maxcount = 6)

  returns (QString)
  Argument | Type | Default
  --- | --- | ---
  maxcount | int | 6

- group ()

  returns (QString)

- iconName ()

  returns (QString)

- init (_determineMimeTypeOnDemand)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  _determineMimeTypeOnDemand | bool |

- isDir ()

  returns (bool)

- isFile ()

  returns (bool)

- isHidden ()

  returns (bool)
  In versions KDE 3.3.0 and above only

- isLink ()

  returns (bool)

- isLocalFile ()

  returns (bool)

- isMarked ()

  returns (bool)

- isMimeTypeKnown ()

  returns (bool)

- isReadable ()

  returns (bool)

- linkDest ()

  returns (QString)

- mark ()

  returns nothing

- metaInfo (autoget = 1, what = KFileMetaInfo .Fastest)

  returns (KFileMetaInfo)
  Argument | Type | Default
  --- | --- | ---
  autoget | bool | 1
  what | int | KFileMetaInfo .Fastest

- mimeComment ()

  returns (QString)

- mimeTypePtr ()

  returns (KMimeType.Ptr)

- mimetype ()

  returns (QString)

- mode ()

  returns (mode_t)

- name (lowerCase = 0)

  returns (QString)
  Argument | Type | Default
  --- | --- | ---
  lowerCase | bool | 0

- overlays ()

  returns (int)

- parsePermissions (perm)

  returns (QString)
  Argument | Type | Default
  --- | --- | ---
  perm | mode_t |

- permissions ()

  returns (mode_t)

- permissionsString ()

  returns (QString)

- pixmap (_size, _state = 0)

  returns (QPixmap)
  Argument | Type | Default
  --- | --- | ---
  _size | int |
  _state | int | 0

- refresh ()

  returns nothing

- refreshMimeType ()

  returns nothing

- removeExtraData (key)

  Not Implemented

- run ()

  returns nothing

- setExtraData (key, value)

  Not Implemented

- setMetaInfo (info)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  info | KFileMetaInfo |

- setName (name)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  name | QString |

- setURL (url)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- size ()

  returns (KIO.filesize_t)

- text ()

  returns (QString)

- time (which)

  returns (time_t)
  Argument | Type | Default
  --- | --- | ---
  which | uint |

- timeString (which = KIO .UDS_MODIFICATION_TIME)

  returns (QString)
  Argument | Type | Default
  --- | --- | ---
  which | uint | KIO .UDS_MODIFICATION_TIME

- unmark ()

  returns nothing

- url ()

  returns (KURL)

- user ()

  returns (QString)