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

David Faure faure at kde.org
Wed Aug 20 21:55:05 UTC 2014


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

Review request for KDE Frameworks.


Repository: kio


Description
-------

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

REVIEW: 119876


Diffs
-----

  src/core/CMakeLists.txt 1c24d62eaac4a4b448d0cc07dd61fd9d1bda0dff 
  src/core/emptytrashjob.h PRE-CREATION 
  src/core/emptytrashjob.cpp PRE-CREATION 
  src/filewidgets/kfileplacesview.h ace7350f87d212d877aaa9a29f852e028ca387a8 
  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/20140820/e98de9ab/attachment.html>


More information about the Kde-frameworks-devel mailing list