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 );
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
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 KServiceTypeProfile * serviceTypeProfile(const TQString &servicetype, const TQString &genericServiceType=TQString::null)
Returns the profile for the requested service type.
Definition kuserprofile.cpp:243
int preference(const TQString &_service) const
Definition kuserprofile.cpp:213
static const TQPtrList< KServiceTypeProfile > & serviceTypeProfiles()
Returns a list of all KServiceTypeProfiles.
Definition kuserprofile.h:194
static void unsetConfigurationMode()
This method deactivates the special mode above of KServiceTypeProfile It is meant for the configurati...
Definition kuserprofile.h:215
KServiceTypeProfile(const TQString &serviceType, const TQString &genericServiceType=TQString::null)
Constructor is called when the user profile is read for the first time.
Definition kuserprofile.cpp:194
static KService::Ptr preferredService(const TQString &serviceType, const TQString &genericServiceType)
Returns the preferred service for _serviceType and _genericServiceType ("Application",...
Definition kuserprofile.cpp:303
bool allowAsDefault(const TQString &_service) const
Definition kuserprofile.cpp:225
OfferList offers() const
Returns the list of all service offers for the service types that are represented by this profile.
Definition kuserprofile.cpp:260
Trinity API Reference