telling a data engine to reload a source
wengxt at gmail.com
Thu Feb 9 23:26:02 UTC 2012
On Fri, Feb 10, 2012 at 7:03 AM, Eric Mesa <ericsbinaryworld at gmail.com> wrote:
> On Thu, Feb 9, 2012 at 8:48 AM, Aaron J. Seigo <aseigo at kde.org> wrote:
>> the plasmoid (almost) never tells the engine when to reload. how can it
>> it is simply a visualization of the data? if the visualization knows such
>> things, it is not longer a visualization. if the dataengine does not know
>> things then it is no longer a true manager of data.
>> no. the dataengine itself must know when and how to reload data. the only
>> thing a visualization can do is request updates every N ms (time based
>> Aaron J. Seigo
> So what I really should do is set the plasmoid to request updates every
> 86,400,000 seconds (1 day) if I'd want the data to be fresh every day?
You could check the microblog plasmod:
It's using: m_engine->connectSource(profileQuery, this,
m_historyRefresh * 60 * 1000);
If you need some feature such as refresh manually, you could add a
ServiceJob to the data engine.
Microblog dataengine also has a ServiceJob called refresh, in order to
trigger refresh on the plasmoid side.
More information about the Plasma-devel