Changeset View
Changeset View
Standalone View
Standalone View
src/gui/applicationlauncherjob.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | * should use KRun::runApplication rather than using ApplicationLauncherJob directly. | 42 | * should use KRun::runApplication rather than using ApplicationLauncherJob directly. | ||
43 | * | 43 | * | ||
44 | * When passing multiple URLs to an application that doesn't support opening | 44 | * When passing multiple URLs to an application that doesn't support opening | ||
45 | * multiple files, the application will be launched once for each URL. | 45 | * multiple files, the application will be launched once for each URL. | ||
46 | * | 46 | * | ||
47 | * The job finishes when the application is successfully started. At that point you can | 47 | * The job finishes when the application is successfully started. At that point you can | ||
48 | * query the PID(s). | 48 | * query the PID(s). | ||
49 | * | 49 | * | ||
50 | * For error handling, either connect to the result() signal, or for a simple messagebox on error, | ||||
broulik: Please add this in a separate commit | |||||
Done in https://commits.kde.org/kio/01a4b70803d5bc9144a7ca7aec12081b4356c638 dfaure: Done in https://commits.kde.org/kio/01a4b70803d5bc9144a7ca7aec12081b4356c638
(also in… | |||||
51 | * you can do | ||||
52 | * @code | ||||
53 | * auto *delegate = new KDialogJobUiDelegate; | ||||
54 | * delegate->setAutoErrorHandlingEnabled(true); | ||||
55 | * job->setUiDelegate(delegate); | ||||
56 | * @endcode | ||||
57 | * | ||||
50 | * @since 5.69 | 58 | * @since 5.69 | ||
51 | */ | 59 | */ | ||
52 | class KIOGUI_EXPORT ApplicationLauncherJob : public KJob | 60 | class KIOGUI_EXPORT ApplicationLauncherJob : public KJob | ||
53 | { | 61 | { | ||
54 | public: | 62 | public: | ||
55 | /** | 63 | /** | ||
56 | * @brief Creates a ApplicationLauncherJob | 64 | * @brief Creates a ApplicationLauncherJob | ||
57 | * @param service the service (application desktop file) to run | 65 | * @param service the service (application desktop file) to run | ||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |
Please add this in a separate commit