#### PyKDE - Python Bindings for KDE

# class KDEDesktopMimeType

Table of contents
Modules
kio Classes
All Classes

Module | kio
Class | KDEDesktopMimeType
Inherits | KMimeType

### enums

- ServiceType = {ST_MOUNT, ST_UNMOUNT, ST_USER_DEFINED }

### methods

- KDEDesktopMimeType (config)

  returns a KDEDesktopMimeType instance

  Argument | Type | Default
  --- | --- | ---
  config | KDesktopFile |

- KDEDesktopMimeType (_str, offset)

  returns a KDEDesktopMimeType instance

  Argument | Type | Default
  --- | --- | ---
  _str | QDataStream |
  offset | int |

- builtinServices (_url)

  returns (QValueList<KDEDesktopMimeType.Service>)
  static

  Argument | Type | Default
  --- | --- | ---
  _url | KURL |

- comment (_url, _is_local)

  returns (QString)

  Argument | Type | Default
  --- | --- | ---
  _url | QString |
  _is_local | bool |

- comment (_url, _is_local)

  returns (QString)

  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  _is_local | bool |

- executeService (path, service)

  returns nothing
  static

  Argument | Type | Default
  --- | --- | ---
  path | QString |
  service | KDEDesktopMimeType.Service |

- executeService (urls, service)

  returns nothing
  static

  Argument | Type | Default
  --- | --- | ---
  urls | KURL.List |
  service | KDEDesktopMimeType.Service |

- icon (_url, _is_local)

  returns (QString)

  Argument | Type | Default
  --- | --- | ---
  _url | QString |
  _is_local | bool |

- icon (_url, _is_local)

  returns (QString)

  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  _is_local | bool |

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

  returns (QPixmap)

  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  _group | KIcon.Group |
  _force_size | int | 0
  _state | int | 0
  _path | QString | 0

- pixmap (group, force_size, state, path)

  returns (QPixmap)

  Argument | Type | Default
  --- | --- | ---
  group | KIcon.Group |
  force_size | int |
  state | int |
  path | QString |

- run (_url, _is_local)

  returns (pid_t)
  static

  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  _is_local | bool |

- runApplication (_url, _serviceFile)

  returns (pid_t)
  static

  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  _serviceFile | QString |

- runFSDevice (_url, cfg)

  returns (pid_t)
  static

  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  cfg | KSimpleConfig |

- runLink (_url, cfg)

  returns (pid_t)
  static

  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  cfg | KSimpleConfig |

- runMimeType (_url, cfg)

  returns (pid_t)
  static

  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  cfg | KSimpleConfig |

- userDefinedServices (path, bLocalFiles)

  returns (QValueList<KDEDesktopMimeType.Service>)
  static

  Argument | Type | Default
  --- | --- | ---
  path | QString |
  bLocalFiles | bool |

- userDefinedServices (path, config, bLocalFiles)

  returns (QValueList<KDEDesktopMimeType.Service>)
  In versions KDE 3.4.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  path | QString |
  config | KConfig |
  bLocalFiles | bool |

- userDefinedServices (path, config, bLocalFiles, file_list)

  returns (QValueList<KDEDesktopMimeType.Service>)
  In versions KDE 3.5.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  path | QString |
  config | KConfig |
  bLocalFiles | bool |
  file_list | KURL.List |