• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

Functions
KServiceTypeProfile Namespace Reference

Functions

void clearCache ()
 
bool configurationMode ()
 
void deleteServiceTypeProfile (const QString &serviceType)
 
bool hasProfile (const QString &serviceType)
 
void setConfigurationMode ()
 
KServiceOfferList sortServiceTypeOffers (const KServiceOfferList &list, const QString &servicetype)
 
void writeServiceTypeProfile (const QString &serviceType, const KService::List &services, const KService::List &disabledServices=KService::List())
 

Detailed Description

Returns the offers in the profile for the requested service type.

KServiceTypeProfile represents the user's preferences for services of a service type.

Parameters
listlist of offers (including initialPreference)
servicetypethe service type
Returns
the weighted and sorted offer list

used by KServiceTypeTrader

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
KServiceType
KServiceTypeTrader Represents the user's preferences for services of a service type

Function Documentation

void KServiceTypeProfile::clearCache ( )

Clear all cached information.

, for KServiceTypeFactory

Definition at line 103 of file kservicetypeprofile.cpp.

bool KServiceTypeProfile::configurationMode ( )

Definition at line 238 of file kservicetypeprofile.cpp.

void KServiceTypeProfile::deleteServiceTypeProfile ( const QString &  serviceType)

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.

Parameters
serviceTypeThe name of the servicetype.

Definition at line 220 of file kservicetypeprofile.cpp.

bool KServiceTypeProfile::hasProfile ( const QString &  serviceType)

, for KServiceTypeTrader

Definition at line 171 of file kservicetypeprofile.cpp.

void KServiceTypeProfile::setConfigurationMode ( )

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.

Definition at line 233 of file kservicetypeprofile.cpp.

KServiceOfferList KServiceTypeProfile::sortServiceTypeOffers ( const KServiceOfferList &  list,
const QString &  servicetype 
)

Definition at line 120 of file kservicetypeprofile.cpp.

void KServiceTypeProfile::writeServiceTypeProfile ( const QString &  serviceType,
const KService::List &  services,
const KService::List &  disabledServices = KService::List() 
)

Write the complete profile for a given servicetype.

Do not use this for mimetypes.

Parameters
serviceTypeThe name of the servicetype.
servicesOrdered list of services, from the preferred one to the least preferred one.
disabledServicesList of services which are normally associated with this serviceType, but which should be disabled, i.e. trader queries will not return them.

Definition at line 176 of file kservicetypeprofile.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal