D28295: Introduce KNotificationJobUiDelegate

Kai Uwe Broulik noreply at phabricator.kde.org
Thu Mar 26 08:27:06 GMT 2020


broulik created this revision.
broulik added reviewers: Frameworks, nicolasfella, dfaure.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
broulik requested review of this revision.

REVISION SUMMARY
  This can be used for job error reporting using `KNotification` rather than a `KDialog`.

TEST PLAN
  F8199446: Screenshot_20200326_092153.png <https://phabricator.kde.org/F8199446>
  
  As discussed in D28286 <https://phabricator.kde.org/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.

REPOSITORY
  R289 KNotifications

REVISION DETAIL
  https://phabricator.kde.org/D28295

AFFECTED FILES
  src/CMakeLists.txt
  src/knotificationjobuidelegate.cpp
  src/knotificationjobuidelegate.h

To: broulik, #frameworks, nicolasfella, dfaure
Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200326/0cc1304c/attachment.html>


More information about the Kde-frameworks-devel mailing list