Changeset View
Changeset View
Standalone View
Standalone View
src/services/kserviceoffer.cpp
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Line(s) | 75 | { | |||
---|---|---|---|---|---|
89 | } | 89 | } | ||
90 | // Both offers are allowed or not allowed as default | 90 | // Both offers are allowed or not allowed as default | ||
91 | 91 | | |||
92 | // Finally, use preference to sort them | 92 | // Finally, use preference to sort them | ||
93 | // The bigger the better, but we want the better FIRST | 93 | // The bigger the better, but we want the better FIRST | ||
94 | return _o.d->preference < d->preference; | 94 | return _o.d->preference < d->preference; | ||
95 | } | 95 | } | ||
96 | 96 | | |||
97 | #if KSERVICE_ENABLE_DEPRECATED_SINCE(5, 65) | ||||
kossebau: KSERVICE_BUILD_DEPRECATED_SINCE | |||||
97 | bool KServiceOffer::allowAsDefault() const | 98 | bool KServiceOffer::allowAsDefault() const | ||
98 | { | 99 | { | ||
99 | return d->bAllowAsDefault; | 100 | return d->bAllowAsDefault; | ||
100 | } | 101 | } | ||
102 | #endif | ||||
101 | 103 | | |||
102 | int KServiceOffer::preference() const | 104 | int KServiceOffer::preference() const | ||
103 | { | 105 | { | ||
104 | return d->preference; | 106 | return d->preference; | ||
105 | } | 107 | } | ||
106 | 108 | | |||
107 | void KServiceOffer::setPreference(int p) | 109 | void KServiceOffer::setPreference(int p) | ||
108 | { | 110 | { | ||
Show All 23 Lines |
KSERVICE_BUILD_DEPRECATED_SINCE