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