Add a Grantlee callback tag for nesting templates
ClosedPublic

Authored by vkrause on Oct 3 2017, 3:26 PM.

Details

Summary

This allows us to write continuously to one single stream rather than
buffering the nested content first.

So far only used for encapsulated messages, all other usages have yet to
be ported.

Diff Detail

Repository
R94 PIM: Message Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
vkrause created this revision.Oct 3 2017, 3:26 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptOct 3 2017, 3:26 PM
Restricted Application added a subscriber: KDE PIM. · View Herald Transcript
vkrause updated this revision to Diff 20305.Oct 3 2017, 3:54 PM

Port signed/encrypted rendering to use the callback mechanism.

knauss added inline comments.Oct 4 2017, 9:09 AM
messageviewer/src/messagepartthemes/default/messagepartrenderermanager.cpp
109

why messagevier and not also into libmessageviewer?

I think it is better to have everything in the same directory.

vkrause added inline comments.Oct 4 2017, 12:14 PM
messageviewer/src/messagepartthemes/default/messagepartrenderermanager.cpp
109

I agree on having everything in the same place of course. This specific file ends up in the plugin install dir, we are currently using "messageviewer" for that. Same for include/ and half of share/. I only see assets of the enterprise style in share/libmessageviewer here. So, that's probably the thing we want to fix.

knauss added inline comments.Oct 4 2017, 2:16 PM
messageviewer/src/messagepartthemes/default/messagepartrenderermanager.cpp
109

yes that is the better approch to move everything to messageviewer

knauss accepted this revision.Oct 4 2017, 4:50 PM
This revision is now accepted and ready to land.Oct 4 2017, 4:50 PM
This revision was automatically updated to reflect the committed changes.