Review Request: This patch adds the Storage class for Plasma::DataEngine caching. This current implementation caches to disk. Soon, it will be akonadi.

Brian Pritchett batenkaitos at gmail.com
Mon Jul 12 22:10:05 CEST 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/4548/
-----------------------------------------------------------

(Updated 2010-07-12 20:10:03.795472)


Review request for Plasma.


Changes
-------

I updated the apidox; changed the every three minute timer to a single shot timer when data is updated, renamed some files and variables, and moved others into private to not break binary compatibility.


Summary
-------

DataEngines can mark or unmark their sources to be cached with void DataEngine::setEnableCache(const QString &source, bool cache). If the DataEngine has implemented their own source by inheriting DataContainer, then DataContainer::setEnableCache(bool cache) will work.


Diffs (updated)
-----

  /trunk/KDE/kdelibs/plasma/CMakeLists.txt 1147556 
  /trunk/KDE/kdelibs/plasma/data/operations/storage.operations PRE-CREATION 
  /trunk/KDE/kdelibs/plasma/datacontainer.h 1147556 
  /trunk/KDE/kdelibs/plasma/datacontainer.cpp 1147556 
  /trunk/KDE/kdelibs/plasma/dataengine.h 1147556 
  /trunk/KDE/kdelibs/plasma/dataengine.cpp 1147556 
  /trunk/KDE/kdelibs/plasma/private/datacontainer_p.h 1147556 
  /trunk/KDE/kdelibs/plasma/private/dataengine_p.h 1147556 
  /trunk/KDE/kdelibs/plasma/private/storage_p.h PRE-CREATION 

Diff: http://reviewboard.kde.org/r/4548/diff


Testing
-------

I have tested it with the microblogging dataengine/plasmoid.


Thanks,

Brian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20100712/171302c6/attachment.htm 


More information about the Plasma-devel mailing list