D14661: Force reevaluation of Predicates if interfaces are removed

Stefan BrĂ¼ns noreply at phabricator.kde.org
Sun Aug 12 13:50:47 BST 2018


bruns added inline comments.

INLINE COMMENTS

> anthonyfieroni wrote in udisksmanager.cpp:239
> Your  code seems to work, but i don't get it - why device is added again? How predicate will work on removed device?

Adding it again allows the Predicate to determine if this device is still relevant.
If e.g. the Predicate is "give me all block devices, independent if it is formatted or not", then the device will be added, if the Predicate only allows formatted devices, the device will be filtered out.
The policy is left to the Predicate and not to the backend.

REPOSITORY
  R245 Solid

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

To: bruns, #frameworks, broulik, ngraham
Cc: anthonyfieroni, kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180812/d06fb8e8/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list