Review Request 119876: KIO: add KIO::EmptyTrashJob* KIO::emptyTrash().

David Faure faure at kde.org
Thu Aug 21 07:41:46 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119876/
-----------------------------------------------------------

(Updated Aug. 21, 2014, 7:41 a.m.)


Review request for KDE Frameworks.


Changes
-------

port the msgbox to KIO::JobUiDelegate.askDeleteConfirmation()


Repository: kio


Description (updated)
-------

This allows to remove duplicated code in
kfileplacesview (kio), libkonq (dolphin, homerun), dolphin's placespanel,
ktrash, plasma's trash applet, krusader, plasma-mobile's filebrowser.
All of them had to duplicate the magic KIO::special call with hardcoded value 1.

This commit makes KFilePlacesView use KIO::emptyTrash() and
KIO::JobUiDelegate.askDeleteConfirmation() for the msgbox.

REVIEW: 119876


Diffs (updated)
-----

  src/core/emptytrashjob.h PRE-CREATION 
  src/core/emptytrashjob.cpp PRE-CREATION 
  src/filewidgets/kfileplacesview.h ace7350f87d212d877aaa9a29f852e028ca387a8 
  src/core/CMakeLists.txt 1c24d62eaac4a4b448d0cc07dd61fd9d1bda0dff 
  src/filewidgets/kfileplacesview.cpp 543dfd04d39f6ce93a0852705967624f00b142d5 

Diff: https://git.reviewboard.kde.org/r/119876/diff/


Testing
-------

frameworkintegration/tests/qfiledialogtest, to bring up KFileWidget with its places view, RMB, empty trash -> worked.

No unit tests possible, even with a different XDG_DATA_HOME it would find the user's trash dirs on other partitions and empty them.


Thanks,

David Faure

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140821/9097dca2/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list