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:

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: baudens@ke.mandrakesoft.com on Thu Oct 26 17:36:34 2000, using kdoc 2.0a40.