Changeset View
Changeset View
Standalone View
Standalone View
src/services/kservice.h
Show First 20 Lines • Show All 269 Lines • ▼ Show 20 Line(s) | 200 | #endif | |||
---|---|---|---|---|---|
270 | /** | 270 | /** | ||
271 | * Checks whether the service supports this mime type | 271 | * Checks whether the service supports this mime type | ||
272 | * @param mimeType The name of the mime type you are | 272 | * @param mimeType The name of the mime type you are | ||
273 | * interested in determining whether this service supports. | 273 | * interested in determining whether this service supports. | ||
274 | * @since 4.6 | 274 | * @since 4.6 | ||
275 | */ | 275 | */ | ||
276 | bool hasMimeType(const QString &mimeType) const; | 276 | bool hasMimeType(const QString &mimeType) const; | ||
277 | 277 | | |||
278 | #if KSERVICE_ENABLE_DEPRECATED_SINCE(5, 67) | ||||
278 | /** | 279 | /** | ||
279 | * Set to true if it is allowed to use this service as the default (main) | 280 | * Set to true if it is allowed to use this service as the default (main) | ||
280 | * action for the files it supports (e.g. Left Click in a file manager, or KRun in general). | 281 | * action for the files it supports (e.g. Left Click in a file manager, or KRun in general). | ||
281 | * | 282 | * | ||
282 | * If not, then this service is only available in RMB popups, so it must | 283 | * If not, then this service is only available in RMB popups, so it must | ||
283 | * be selected explicitly by the user in order to be used. | 284 | * be selected explicitly by the user in order to be used. | ||
284 | * Note that servicemenus supersede this functionality though, at least in konqueror. | 285 | * Note that servicemenus supersede this functionality though, at least in konqueror. | ||
285 | * | 286 | * | ||
286 | * @return true if the service may be used as the default (main) handler | 287 | * @return true if the service may be used as the default (main) handler | ||
288 | * @deprecated since 5.67 due to no known use case | ||||
287 | */ | 289 | */ | ||
290 | KSERVICE_DEPRECATED_VERSION(5, 67, "No known use case") | ||||
288 | bool allowAsDefault() const; | 291 | bool allowAsDefault() const; | ||
292 | #endif | ||||
289 | 293 | | |||
290 | /** | 294 | /** | ||
291 | * Returns the actions defined in this desktop file | 295 | * Returns the actions defined in this desktop file | ||
292 | */ | 296 | */ | ||
293 | QList<KServiceAction> actions() const; | 297 | QList<KServiceAction> actions() const; | ||
294 | 298 | | |||
295 | /** | 299 | /** | ||
296 | * Checks whether this service can handle several files as | 300 | * Checks whether this service can handle several files as | ||
▲ Show 20 Lines • Show All 304 Lines • Show Last 20 Lines |