KServiceTypeProfile Class Reference
#include <kuserprofile.h>
Detailed Description
KServiceTypeProfile represents the user's preferences for services of a service type.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. KTrader uses KServiceTypeProfile to sort its results, so usually you can just use KTrader to find the user's preferred service.
- See also:
- KService
Definition at line 117 of file kuserprofile.h.
Public Types | |
typedef QValueList< KServiceOffer > | OfferList |
Public Member Functions | |
~KServiceTypeProfile () | |
int | preference (const QString &_service) const |
bool | allowAsDefault (const QString &_service) const |
OfferList | offers () const |
Static Public Member Functions | |
static KService::Ptr | preferredService (const QString &serviceType, const QString &genericServiceType) |
static KServiceTypeProfile * | serviceTypeProfile (const QString &servicetype, const QString &genericServiceType=QString::null) |
static OfferList | offers (const QString &servicetype, const QString &genericServiceType=QString::null) |
static const QPtrList< KServiceTypeProfile > & | serviceTypeProfiles () |
static void | clear () |
static void | setConfigurationMode () |
static void | unsetConfigurationMode () |
static bool | configurationMode () |
Protected Member Functions | |
KServiceTypeProfile (const QString &serviceType, const QString &genericServiceType=QString::null) | |
void | addService (const QString &_service, int _preference=1, bool _allow_as_default=true) |
Constructor & Destructor Documentation
|
Constructor is called when the user profile is read for the first time.
Definition at line 194 of file kuserprofile.cpp. |
Member Function Documentation
|
Add a service to this profile.
Definition at line 206 of file kuserprofile.cpp. |
|
Definition at line 225 of file kuserprofile.cpp. |
|
Clear all cached information.
Definition at line 99 of file kuserprofile.cpp. |
|
Returns the offers associated with a given servicetype, sorted by preference. This is what KTrader uses to get the list of offers, before applying the constraints and preferences.
If
Definition at line 110 of file kuserprofile.cpp. |
|
Returns the list of all service offers for the service types that are represented by this profile.
Definition at line 260 of file kuserprofile.cpp. |
|
Definition at line 213 of file kuserprofile.cpp. |
|
Returns the preferred service for
Definition at line 303 of file kuserprofile.cpp. |
|
Returns the profile for the requested service type.
Definition at line 243 of file kuserprofile.cpp. |
|
Returns a list of all KServiceTypeProfiles.
Definition at line 194 of file kuserprofile.h. |
|
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 207 of file kuserprofile.h. |
|
This method deactivates the special mode above of KServiceTypeProfile It is meant for the configuration module _only_.
Definition at line 215 of file kuserprofile.h. |
The documentation for this class was generated from the following files: