class KServiceTypeProfile

This class holds the offers for a service type (e. More...

Definition#include <kuserprofile.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Static Methods

Protected Methods


Detailed Description

This class holds the offers for a service type (e.g. in old terms "the bindings for a mimetype")

typedef QValueList<KServiceOffer> OfferList

KServiceTypeProfile ()

int  preference ( const QString& _service )

[const]

Returns: the users preference of this special service or 0 if the service is unknown.

bool  allowAsDefault ( const QString& _service )

[const]

OfferList  offers ()

[const]

QString  serviceType ()

[const]

Returns: the service type for which this profile is responsible.

KService::Ptr  preferredService ( const QString & _serviceType, bool needApp )

[static]

Parameters:
needAppif we need an service of type Application (as opposed to any service, including non-app services)

Returns: the preferred service (convenience method)

KServiceTypeProfile*  serviceTypeProfile ( const QString& _servicetype )

[static]

Returns: the profile for the requested service type.

OfferList  offers ( const QString& _servicetype )

[static]

Returns: the offers associated with a given servicetype

const QList<KServiceTypeProfile>&  serviceTypeProfiles ()

[static]

void  clear ()

[static]

Clear all cached information

 KServiceTypeProfile ( const QString& _servicetype )

[protected]

Constructor is called when the user profile is read for the first time.

void  addService ( const QString& _service, int _preference = 1, bool _allow_as_default = TRUE )

[protected]

Add a service to this profile.


Generated by: prospector@porky.devel.redhat.com on Thu Aug 24 05:36:06 2000, using kdoc 2.0a36.