[Kde-pim] PIM Sprint report: Akonadi Next
Aaron J. Seigo
aseigo at kde.org
Mon Dec 1 10:00:29 GMT 2014
On Monday, December 1, 2014 10.34:33 Milian Wolff wrote:
> Could this be added to KJobs instead of reinventing the wheel completely? Or
the API of KJob is a bit different from what is needed here, though KJobs may
be able to be used in the implementations. that said, a lot of what KJob does,
particularly the things like optionally updating a global job tracker GUI and
suspension, is not directly relevant to the majority of use cases in kdepim.
so ... kind of an awkward fit imo. KJob exists, +1; it is well known, +1; it
doesn't really map to the use case here ...
i'm reminded of kdepim's usage of kio everywhere once upon a time. it was
there, it was well known, it basically worked, but didn't really map to the
use case ...
what would really be useful in many cases is something not a job-oriented API
but a process flow oriented one, like several of the common patterns
implemented in this node library:
https://github.com/caolan/async
we have some of these in C++ / Qt, but the various composition patterns for
sets of tasks with sinks and generic error handlers are generally missing in
our toolbox.
these new classes could be folded into KCoreAddons at some point, though, if
they are found to be valuable and useful enough. and yes, they may even use
KJobs internally or within the API .. the topics are a bit orthogonal in that
way.
for more context and some experiments Christian did earlier in the year, see:
https://cmollekopf.wordpress.com/2014/10/03/putting-the-code-where-it-belongs/
--
Aaron J. Seigo/opt/kde5/include/KF5/KCoreAddons/KJob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20141201/9d84718b/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list