Changeset View
Changeset View
Standalone View
Standalone View
src/services/kservicetypeprofile.cpp
Show First 20 Lines • Show All 160 Lines • ▼ Show 20 Line(s) | 123 | { | |||
---|---|---|---|---|---|
161 | } | 161 | } | ||
162 | 162 | | |||
163 | std::stable_sort(offers.begin(), offers.end()); | 163 | std::stable_sort(offers.begin(), offers.end()); | ||
164 | 164 | | |||
165 | //qDebug() << "KServiceTypeProfile::offers returning " << offers.count() << " offers"; | 165 | //qDebug() << "KServiceTypeProfile::offers returning " << offers.count() << " offers"; | ||
166 | return offers; | 166 | return offers; | ||
167 | } | 167 | } | ||
168 | 168 | | |||
169 | #if KSERVICE_ENABLE_DEPRECATED_SINCE(5, 65) | ||||
169 | bool KServiceTypeProfile::hasProfile(const QString &serviceType) | 170 | bool KServiceTypeProfile::hasProfile(const QString &serviceType) | ||
170 | { | 171 | { | ||
171 | return s_serviceTypeProfiles()->hasProfile(serviceType); | 172 | return s_serviceTypeProfiles()->hasProfile(serviceType); | ||
172 | } | 173 | } | ||
173 | 174 | | |||
174 | void KServiceTypeProfile::writeServiceTypeProfile(const QString &serviceType, | 175 | void KServiceTypeProfile::writeServiceTypeProfile(const QString &serviceType, | ||
175 | const KService::List &services, | 176 | const KService::List &services, | ||
176 | const KService::List &disabledServices) | 177 | const KService::List &disabledServices) | ||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 220 | { | |||
222 | config.sync(); | 223 | config.sync(); | ||
223 | 224 | | |||
224 | // Not threadsafe, but well the whole idea of using this method isn't | 225 | // Not threadsafe, but well the whole idea of using this method isn't | ||
225 | // threadsafe in the first place. | 226 | // threadsafe in the first place. | ||
226 | if (s_serviceTypeProfiles.exists()) { | 227 | if (s_serviceTypeProfiles.exists()) { | ||
227 | delete s_serviceTypeProfiles()->take(serviceType); | 228 | delete s_serviceTypeProfiles()->take(serviceType); | ||
228 | } | 229 | } | ||
229 | } | 230 | } | ||
231 | #endif |