kuserprofile.h
157 static KService::Ptr preferredService( const TQString & serviceType, const TQString & genericServiceType );
167 static KServiceTypeProfile* serviceTypeProfile( const TQString& servicetype, const TQString & genericServiceType = TQString::null );
188 static OfferList offers( const TQString& servicetype, const TQString& genericServiceType = TQString::null );
242 void addService( const TQString& _service, int _preference = 1, bool _allow_as_default = true );
This class holds the user-specific preferences of a service (whether it can be a default offer or not...
Definition: kuserprofile.h:41
bool allowAsDefault() const
Is it allowed to use this service for default actions (e.g.
Definition: kuserprofile.h:75
int preference() const
The bigger this number is, the better is this service.
Definition: kuserprofile.h:81
KServiceTypeProfile represents the user's preferences for services of a service type.
Definition: kuserprofile.h:118
static const TQPtrList< KServiceTypeProfile > & serviceTypeProfiles()
Returns a list of all KServiceTypeProfiles.
Definition: kuserprofile.h:194
static void setConfigurationMode()
This method activates a special mode of KServiceTypeProfile, in which all/all and all/allfiles are ex...
Definition: kuserprofile.h:207
static void unsetConfigurationMode()
This method deactivates the special mode above of KServiceTypeProfile It is meant for the configurati...
Definition: kuserprofile.h:215