#### PyKDE - Python Bindings for KDE

# class KMimeType |
Table of contents
Modules
tdeio Classes
All Classes

Module | tdeio
Class | KMimeType
Inherits | KServiceType

### methods

- KMimeType (_fullpath, _type, _icon, _comment, _patterns)

  returns a KMimeType instance
  Argument | Type | Default
  --- | --- | ---
  _fullpath | TQString |
  _type | TQString |
  _icon | TQString |
  _comment | TQString |
  _patterns | TQStringList |

- KMimeType (_fullpath)

  returns a KMimeType instance
  Argument | Type | Default
  --- | --- | ---
  _fullpath | TQString |

- KMimeType (config)

  returns a KMimeType instance
  Argument | Type | Default
  --- | --- | ---
  config | KDesktopFile |

- KMimeType (_str, offset)

  returns a KMimeType instance
  Argument | Type | Default
  --- | --- | ---
  _str | TQDataStream |
  offset | int |

- allMimeTypes ()

  returns (KMimeType.List)
  static

- buildDefaultType ()

  returns nothing
  static

- checkEssentialMimeTypes ()

  returns nothing
  static

- comment ()

  returns (TQString)

- comment (a0, a1)

  returns (TQString)
  Argument | Type | Default
  --- | --- | ---
  a0 | TQString |
  a1 | bool |

- comment (a0, a1)

  returns (TQString)
  Argument | Type | Default
  --- | --- | ---
  a0 | KURL |
  a1 | bool |

- defaultMimeType ()

  returns (TQString)
  static

- defaultMimeTypePtr ()

  returns (KMimeType.Ptr)
  In versions KDE 3.2.0 and above only
  static

- diagnoseFileName (file, pattern)

  returns (KMimeType.Ptr)
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  file | TQString |
  pattern | TQString |

- errorMissingMimeType (_type)

  returns nothing
  static
  Argument | Type | Default
  --- | --- | ---
  _type | TQString |

- favIconForURL (url)

  returns (TQString)
  static
  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- findByContent (data)

  returns (KMimeType.Ptr) accuracy (int)
  static
  Argument | Type | Default
  --- | --- | ---
  data | TQByteArray |

- findByFileContent (fileName)

  returns (KMimeType.Ptr) accuracy (int)
  static
  Argument | Type | Default
  --- | --- | ---
  fileName | TQString |

- findByPath (path, mode = 0, fast_mode = 0)

  returns (KMimeType.Ptr)
  static
  Argument | Type | Default
  --- | --- | ---
  path | TQString |
  mode | mode_t | 0
  fast_mode | bool | 0

- findByURL (_url, _mode = 0, _is_local_file = 0, _fast_mode = 0)

  returns (KMimeType.Ptr)
  static
  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  _mode | mode_t | 0
  _is_local_file | bool | 0
  _fast_mode | bool | 0

- findByURL (_url, _mode, _is_local_file, _fast_mode)

  returns (KMimeType.Ptr) accurate (bool)
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  _mode | mode_t |
  _is_local_file | bool |
  _fast_mode | bool |

- findFormatByFileContent (fileName)

  Not Implemented

- icon (a0, a1)

  returns (TQString)
  Argument | Type | Default
  --- | --- | ---
  a0 | TQString |
  a1 | bool |

- icon (a0, a1)

  returns (TQString)
  Argument | Type | Default
  --- | --- | ---
  a0 | KURL |
  a1 | bool |

- iconForURL (_url, _mode = 0)

  returns (TQString)
  static
  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  _mode | mode_t | 0

- init (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | KDesktopFile |

- is_ (mimeTypeName)

  returns (bool)
  Renamed: was ' is' in C++
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  mimeTypeName | TQString |

- load (qs)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  qs | TQDataStream |

- loadInternal (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | TQDataStream |

- mimeType (_name)

  returns (KMimeType.Ptr)
  static
  Argument | Type | Default
  --- | --- | ---
  _name | TQString |

- parentMimeType ()

  returns (TQString)
  In versions KDE 3.2.0 and above only

- patterns ()

  returns (TQStringList)

- patternsAccuracy ()

  returns (int)
  In versions KDE 3.2.0 and above only

- pixmap (group, force_size = 0, state = 0, path = 0)

  returns (TQPixmap)
  Argument | Type | Default
  --- | --- | ---
  group | TDEIcon.Group |
  force_size | int | 0
  state | int | 0
  path | TQString | 0

- pixmap (_url, _group, _force_size = 0, _state = 0, _path = 0)

  returns (TQPixmap)
  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  _group | TDEIcon.Group |
  _force_size | int | 0
  _state | int | 0
  _path | TQString | 0

- pixmapForURL (_url, _mode = 0, _group = TDEIcon .Desktop, _force_size = 0, _state = 0, _path = 0)

  returns (TQPixmap)
  static
  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  _mode | mode_t | 0
  _group | TDEIcon.Group | TDEIcon .Desktop
  _force_size | int | 0
  _state | int | 0
  _path | TQString | 0

- property (_name)

  returns (TQVariant)
  Argument | Type | Default
  --- | --- | ---
  _name | TQString |

- propertyNames ()

  returns (TQStringList)

- save (qs)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  qs | TQDataStream |