# Namespace KServiceTypeProfile

Module | kdecore
Namespace | KServiceTypeProfile

KServiceTypeProfile represents the user's preferences for services of a service type. It consists of a list of services (service offers) for the service type that is sorted by the user's preference. KServiceTypeTrader uses KServiceTypeProfile to get results sorted according to the user's preference.

See also KService

See also KServiceType

See also KServiceTypeTrader Represents the user's preferences for services of a service type

### methods

- clearCache ( )

  returns Nothing
  Not implemented

  Clear all cached information @internal, for KServiceTypeFactory

- configurationMode ( )

  returns bool

  Internal

- deleteServiceTypeProfile (serviceType)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  serviceType | QString |

  Delete the complete profile for a given servicetype, reverting to the default preference order (the one specified by InitialPreference in the .desktop files).

  Do not use this for mimetypes.

  serviceType - The name of the servicetype.

- hasProfile (serviceType)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  serviceType | QString |

  @internal, for KServiceTypeTrader

- setConfigurationMode ( )

  returns Nothing

  This method activates a special mode of KServiceTypeProfile, in which all/all and all/allfiles are excluded from the results of the queries. It is meant for the configuration module _only_. Internal

- writeServiceTypeProfile (serviceType, services, disabledServices)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  serviceType | QString |
  services | KService.List |
  disabledServices | KService.List | KService.List()

  Write the complete profile for a given servicetype. Do not use this for mimetypes.

  serviceType - The name of the servicetype.

  services - Ordered list of services, from the preferred one to the least preferred one.

  disabledServices - List of services which are normally associated with this serviceType, but which should be disabled, i.e. trader queries will not return them.