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

KDECore

KServiceTypeProfile Namespace Reference

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


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:
list list of offers (including initialPreference)
servicetype the service type
Returns:
the weighted and sorted offer list

For internal use only.

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 internal use only.

, for KServiceTypeFactory

Definition at line 94 of file kservicetypeprofile.cpp.

bool KServiceTypeProfile::configurationMode (  ) 

For internal use only.

Definition at line 222 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:
serviceType The name of the servicetype.

Definition at line 207 of file kservicetypeprofile.cpp.

bool KServiceTypeProfile::hasProfile ( const QString &  serviceType  ) 

For internal use only.

, for KServiceTypeTrader

Definition at line 161 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_.

For internal use only.

Definition at line 217 of file kservicetypeprofile.cpp.

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

Definition at line 111 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:
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.

Definition at line 167 of file kservicetypeprofile.cpp.

KDECore

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal