Changeset View
Changeset View
Standalone View
Standalone View
src/services/kserviceoffer.h
| Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
|---|---|---|---|---|---|
| 72 | */ | 72 | */ | ||
| 73 | bool operator< (const KServiceOffer &) const; | 73 | bool operator< (const KServiceOffer &) const; | ||
| 74 | 74 | | |||
| 75 | /** | 75 | /** | ||
| 76 | * Assignment operator | 76 | * Assignment operator | ||
| 77 | */ | 77 | */ | ||
| 78 | KServiceOffer &operator=(const KServiceOffer &other); | 78 | KServiceOffer &operator=(const KServiceOffer &other); | ||
| 79 | 79 | | |||
| 80 | #if KSERVICE_ENABLE_DEPRECATED_SINCE(5, 67) | ||||
| 80 | /** | 81 | /** | ||
| 81 | * Is it allowed to use this service for default actions | 82 | * Is it allowed to use this service for default actions | ||
| 82 | * (e.g. Left Click in a file manager, or KRun in general). | 83 | * (e.g. Left Click in a file manager, or KRun in general). | ||
| 83 | * @return true if the service is a allowed as default | 84 | * @return true if the service is a allowed as default | ||
| 85 | * @deprecated since 5.67, no know use case. | ||||
| 84 | */ | 86 | */ | ||
| 87 | KSERVICE_DEPRECATED_VERSION(5, 67, "No known use case") | ||||
| 85 | bool allowAsDefault() const; | 88 | bool allowAsDefault() const; | ||
| 89 | #endif | ||||
| 86 | 90 | | |||
| 87 | /** | 91 | /** | ||
| 88 | * The bigger this number is, the better is this service. | 92 | * The bigger this number is, the better is this service. | ||
| 89 | * @return the preference number (negative numbers will be | 93 | * @return the preference number (negative numbers will be | ||
| 90 | * returned by invalid service offers) | 94 | * returned by invalid service offers) | ||
| 91 | */ | 95 | */ | ||
| 92 | int preference() const; | 96 | int preference() const; | ||
| 93 | 97 | | |||
| ▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines | |||||