Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/krun.h
Show First 20 Lines • Show All 228 Lines • ▼ Show 20 Line(s) | 65 | public: | |||
---|---|---|---|---|---|
229 | * @param urls the list of URLs, can be empty (app launched | 229 | * @param urls the list of URLs, can be empty (app launched | ||
230 | * without argument) | 230 | * without argument) | ||
231 | * @param window The top-level widget of the app that invoked this object. | 231 | * @param window The top-level widget of the app that invoked this object. | ||
232 | * @param tempFiles if true and urls are local files, they will be deleted | 232 | * @param tempFiles if true and urls are local files, they will be deleted | ||
233 | * when the application exits. | 233 | * when the application exits. | ||
234 | * @param suggestedFileName see setSuggestedFileName | 234 | * @param suggestedFileName see setSuggestedFileName | ||
235 | * @param asn Application startup notification id, if any (otherwise ""). | 235 | * @param asn Application startup notification id, if any (otherwise ""). | ||
236 | * @return 0 on error, the process ID on success | 236 | * @return 0 on error, the process ID on success | ||
237 | * @deprecated since 5.61, consider using runApplication instead | ||||
237 | * @since 5.6 | 238 | * @since 5.6 | ||
238 | */ | 239 | */ | ||
broulik: Add `@deprecated since` and what should be used instead | |||||
239 | static qint64 runService(const KService &service, const QList<QUrl> &urls, QWidget *window, | 240 | #ifndef KIOWIDGETS_NO_DEPRECATED | ||
241 | static qint64 KIOWIDGETS_DEPRECATED runService(const KService &service, const QList<QUrl> &urls, QWidget *window, | ||||
240 | bool tempFiles = false, const QString &suggestedFileName = QString(), | 242 | bool tempFiles = false, const QString &suggestedFileName = QString(), | ||
241 | const QByteArray &asn = QByteArray()); // TODO KF6: deprecate/remove | 243 | const QByteArray &asn = QByteArray()); | ||
244 | #endif | ||||
242 | 245 | | |||
243 | enum RunFlag { | 246 | enum RunFlag { | ||
244 | DeleteTemporaryFiles = 0x1, ///< the URLs passed to the service will be deleted when it exits (if the URLs are local files) | 247 | DeleteTemporaryFiles = 0x1, ///< the URLs passed to the service will be deleted when it exits (if the URLs are local files) | ||
245 | RunExecutables = 0x2, ///< Whether to run URLs that are executable scripts or binaries @see isExecutableFile() @since 5.31 | 248 | RunExecutables = 0x2, ///< Whether to run URLs that are executable scripts or binaries @see isExecutableFile() @since 5.31 | ||
246 | }; | 249 | }; | ||
247 | Q_DECLARE_FLAGS(RunFlags, RunFlag) | 250 | Q_DECLARE_FLAGS(RunFlags, RunFlag) | ||
248 | 251 | | |||
249 | /** | 252 | /** | ||
▲ Show 20 Lines • Show All 410 Lines • Show Last 20 Lines |
Add @deprecated since and what should be used instead