FallbackComponent: caching, and doing something more permanent with it

Aaron J. Seigo aseigo at kde.org
Wed Sep 5 22:11:23 UTC 2012


hi..

since reviewboard is not accepting my diff to plasma-mobile (either from the 
website or via the usual post-review; it seems to think there is no 
components/mobilecomponents/fallbackcomponent.cpp file... :/) i'm posting a 
patch here that implements some basic caching to avoid hitting disk more often 
than necessary. it uses QCache so as to prevent unlimited memory usage.

also, this seems to be the only thing from the plasma-mobile repository that 
SLC now uses. since it is so trivial, i'm considering just copying it into SLC 
wholesale. the only other thing that uses FallbackComponent is the 
ResourceDelegate that is used extensively in plasma-mobile, so the 
functionality of FallbackComponent is indeed needed, though i wonder if it 
needs to be its own entire componet just to access that one small bit of code. 
might be nicer if it were it were just part of ResourceDelegate .. but that's 
pure QML so probably not possible.

anyways ... patch and SLC usage -> thoughts?

-- 
Aaron J. Seigo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fallbackcomonent_cache.diff
Type: text/x-patch
Size: 1878 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20120906/2c12ff9b/attachment.diff>
-------------- 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/plasma-devel/attachments/20120906/2c12ff9b/attachment.sig>


More information about the Plasma-devel mailing list