#### PyKDE - Python Bindings for KDE

# class KService

Table of contents
Modules
kio Classes
All Classes

Module | kio
Class | KService
Inherits | KSycocaEntry

### enums

- DCOPServiceType_t = {DCOP_None, DCOP_Unique, DCOP_Multi, DCOP_Wait }

### methods

- DCOPServiceType ()

  returns (DCOPServiceType_t)

- KService (_name, _exec, _icon)

  returns a KService instance

  Argument | Type | Default
  --- | --- | ---
  _name | QString |
  _exec | QString |
  _icon | QString |

- KService (_fullpath)

  returns a KService instance

  Argument | Type | Default
  --- | --- | ---
  _fullpath | QString |

- KService (config)

  returns a KService instance

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

- KService (_str, offset)

  returns a KService instance

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

- KService (a0)

  returns a KService instance
  In versions KDE 3.1.1 and above only

  Argument | Type | Default
  --- | --- | ---
  a0 | KService |

- accessServiceTypes ()

  returns (QStringList)

- allInitServices ()

  returns (KService.List)
  static

- allServices ()

  returns (KService.List)
  static

- allowAsDefault ()

  returns (bool)

- allowMultipleFiles ()

  returns (bool)

- categories ()

  returns (QStringList)
  In versions KDE 3.1.0 and above only

- comment ()

  returns (QString)

- desktopEntryName ()

  returns (QString)

- desktopEntryPath ()

  returns (QString)

- exec_ ()

  returns (QString)
  Renamed: was ' exec ' in C++

- genericName ()

  returns (QString)

- hasServiceType (_service)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  _service | QString |

- icon ()

  returns (QString)

- init ()

  returns (QString)

- init (config)

  returns nothing

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

- initialPreference ()

  returns (int)

- initialPreferenceForMimeType (mimeType)

  returns (int)
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  mimeType | QString |

- isValid ()

  returns (bool)

- keywords ()

  returns (QStringList)

- library ()

  returns (QString)

- load (a0)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QDataStream |

- locateLocal ()

  returns (QString)
  In versions KDE 3.2.0 and above only

- menuId ()

  returns (QString)
  In versions KDE 3.2.0 and above only

- name ()

  returns (QString)

- newServicePath (showInMenu, suggestedName, menuId = 0, reservedMenuIds = 0)

  returns (QString)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  showInMenu | bool |
  suggestedName | QString |
  menuId | QString | 0
  reservedMenuIds | QStringList | 0

- noDisplay ()

  returns (bool)

- parentApp ()

  returns (QString)
  In versions KDE 3.1.0 and above only

- path ()

  returns (QString)

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

  returns (QPixmap)

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

- property (_name)

  returns (QVariant)

  Argument | Type | Default
  --- | --- | ---
  _name | QString |

- property (_name, t)

  returns (QVariant)
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  _name | QString |
  t | QVariant.Type |

- propertyNames ()

  returns (QStringList)

- rebuildKSycoca (parent)

  returns nothing
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |

- save (a0)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QDataStream |

- serviceByDesktopName (_name)

  returns (KService.Ptr)
  static

  Argument | Type | Default
  --- | --- | ---
  _name | QString |

- serviceByDesktopPath (_path)

  returns (KService.Ptr)
  static

  Argument | Type | Default
  --- | --- | ---
  _path | QString |

- serviceByMenuId (_menuId)

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

  Argument | Type | Default
  --- | --- | ---
  _menuId | QString |

- serviceByName (_name)

  returns (KService.Ptr)
  static

  Argument | Type | Default
  --- | --- | ---
  _name | QString |

- serviceByStorageId (_storageId)

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

  Argument | Type | Default
  --- | --- | ---
  _storageId | QString |

- serviceTypes ()

  returns (QStringList)

- setInitialPreference (i)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  i | int |

- setMenuId (menuId)

  returns nothing
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  menuId | QString |

- setTerminal (b)

  returns nothing
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  b | bool |

- setTerminalOptions (options)

  returns nothing
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  options | QString |

- storageId ()

  returns (QString)
  In versions KDE 3.2.0 and above only

- substituteUid ()

  returns (bool)

- terminal ()

  returns (bool)

- terminalOptions ()

  returns (QString)

- type ()

  returns (QString)

- untranslatedGenericName ()

  returns (QString)
  In versions KDE 3.2.0 and above only

- username ()

  returns (QString)