This can be used for job error reporting using KNotification rather than a KDialog.
As discussed in D28286
auto *job = new KIO::ApplicationLauncherJob(service); auto *delegate = new KNotificationJobUiDelegate; delegate->setAutoErrorHandlingEnabled(true); job->setUiDelegate(delegate); job->start();
Is there a way to get the job description/title outside of its description emission? I kinda would like to show the job title in the notification but I don't see how.
Not using a nested class Private but a normal separate one like here to be named KNotificationJobUiDelegatePrivate seems more simple, avoids the need for things like Q_DECL_HIDDEN.
At least recently most code uses the latter, so would be good to standardize on that.