Changeset View
Changeset View
Standalone View
Standalone View
src/services/kservice.h
Show First 20 Lines • Show All 310 Lines • ▼ Show 20 Line(s) | 199 | #endif | |||
---|---|---|---|---|---|
311 | * Whether the entry should be suppressed in the K menu. | 311 | * Whether the entry should be suppressed in the K menu. | ||
312 | * @return true to suppress this service | 312 | * @return true to suppress this service | ||
313 | * | 313 | * | ||
314 | * Such services still appear in trader queries, i.e. in | 314 | * Such services still appear in trader queries, i.e. in | ||
315 | * "Open With" popup menus for instance. | 315 | * "Open With" popup menus for instance. | ||
316 | */ | 316 | */ | ||
317 | bool noDisplay() const; | 317 | bool noDisplay() const; | ||
318 | 318 | | |||
319 | #if KSERVICE_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
319 | /** | 320 | /** | ||
320 | * Whether the service should be shown in KDE at all | 321 | * Whether the service should be shown in KDE at all | ||
321 | * (including in context menus). | 322 | * (including in context menus). | ||
322 | * @return true if the service should be shown. | 323 | * @return true if the service should be shown. | ||
323 | * | 324 | * | ||
324 | * KMimeTypeTrader honors this and removes such services | 325 | * KMimeTypeTrader honors this and removes such services | ||
325 | * from its results. | 326 | * from its results. | ||
326 | * | 327 | * | ||
327 | * @since 4.5 | 328 | * @since 4.5 | ||
328 | * @deprecated since 5.0, use showInCurrentDesktop() | 329 | * @deprecated since 5.0, use showInCurrentDesktop() | ||
329 | */ | 330 | */ | ||
330 | #ifndef KSERVICE_NO_DEPRECATED | 331 | KSERVICE_DEPRECATED_VERSION(5, 0, "Use KService::showInCurrentDesktop()") | ||
331 | KSERVICE_DEPRECATED bool showInKDE() const { return showInCurrentDesktop(); } | 332 | bool showInKDE() const { return showInCurrentDesktop(); } | ||
332 | #endif | 333 | #endif | ||
333 | 334 | | |||
334 | /** | 335 | /** | ||
335 | * Whether the service should be shown in the current desktop | 336 | * Whether the service should be shown in the current desktop | ||
336 | * (including in context menus). | 337 | * (including in context menus). | ||
337 | * @return true if the service should be shown. | 338 | * @return true if the service should be shown. | ||
338 | * | 339 | * | ||
339 | * KMimeTypeTrader honors this and removes such services | 340 | * KMimeTypeTrader honors this and removes such services | ||
▲ Show 20 Lines • Show All 259 Lines • Show Last 20 Lines |