#include <kuserprofile.h>
Public Methods | |
| int | preference (const QString &_service) const |
Static Public Methods | |
| KService::Ptr | preferredService (const QString &serviceType, const QString &genericServiceType) |
| KServiceTypeProfile * | serviceTypeProfile (const QString &servicetype, const QString &genericServiceType=QString::null) |
| OfferList | offers (const QString &servicetype, const QString &genericServiceType=QString::null) |
| void | clear () |
| void | setConfigurationMode () |
Protected Methods | |
| KServiceTypeProfile (const QString &_servicetype, const QString &_genericServiceType=QString::null) | |
| void | addService (const QString &_service, int _preference=1, bool _allow_as_default=TRUE) |
Definition at line 76 of file kuserprofile.h.
|
||||||||||||
|
Constructor is called when the user profile is read for the first time. |
|
||||||||||||||||
|
Add a service to this profile. |
|
|
Clear all cached information Definition at line 127 of file kuserprofile.h. |
|
||||||||||||
|
genericServiceType is specified a list is returned with the offers associated with the combination of the two service types. This is almost like an "foo in ServiceTypes" constraint in the Trader, but the difference is that to order the offers, we will look at entries specifically for those two service types. Typically, this is used for getting the list of embeddable components that can handle a given mimetype. In that case, servicetype is the mimetype and genericServiceType is "KParts/ReadOnlyPart". |
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
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 134 of file kuserprofile.h. |
1.2.18