KServiceOffer Class Reference
This class holds the user-specific preferences of a service (whether it can be a default offer or not, how big is the preference for this offer, ...). Holds the user's preference of a service. More...
#include <kuserprofile.h>
Public Member Functions | |
KServiceOffer () | |
KServiceOffer (const KServiceOffer &) | |
KServiceOffer (KService::Ptr _service, int _pref, bool _default) | |
bool | operator< (const KServiceOffer &) const |
bool | allowAsDefault () const |
int | preference () const |
KService::Ptr | service () const |
bool | isValid () const |
Detailed Description
This class holds the user-specific preferences of a service (whether it can be a default offer or not, how big is the preference for this offer, ...). Holds the user's preference of a service.Basically it is a reference to a KService, a number that represents the user's preference (bigger is better) and a flag whether the KService can be used as default.
- See also:
- KService
Definition at line 40 of file kuserprofile.h.
Constructor & Destructor Documentation
|
Create an invalid service offer.
Definition at line 309 of file kuserprofile.cpp. |
|
Copy constructor. Shallow copy (the KService will not be copied). Definition at line 314 of file kuserprofile.cpp. References m_bAllowAsDefault, m_iPreference, and m_pService. |
|
Creates a new KServiceOffer.
Definition at line 321 of file kuserprofile.cpp. |
Member Function Documentation
|
A service is bigger that the other when it can be default (and the other is not) and its preference value it higher.
Definition at line 329 of file kuserprofile.cpp. References m_bAllowAsDefault, and m_iPreference. |
|
Is it allowed to use this service for default actions (e.g. Left Click in a file manager, or KRun in general).
Definition at line 75 of file kuserprofile.h. |
|
The bigger this number is, the better is this service.
Definition at line 81 of file kuserprofile.h. |
|
The service which this offer is about.
Definition at line 87 of file kuserprofile.h. |
|
Check whether the entry is valid. A service is valid if its preference value is positive.
Definition at line 93 of file kuserprofile.h. |
The documentation for this class was generated from the following files: