[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Dataengines ...anywhere
From:       Nicolas Alvarez <nicolas.alvarez () gmail ! com>
Date:       2011-07-10 3:39:43
Message-ID: ivb6u1$2kg$1 () dough ! gmane ! org
[Download RAW message or body]

Aaron J. Seigo wrote:
> On Sunday, July 3, 2011 20:33:46 Nicolas Alvarez wrote:
>> Is there any native-code krunner that uses a dataengine to get its
>> information? It seems odd that, for example, we have a perfectly good
>> 'places' dataengine but the runner accesses KFilePlacesModel directly
>> instead. Same for activities and windows.
> 
> the reason is two fold:
> 
> * DataEngine and Runner represent the resulting data rather differently
> and offering very different options as to what can be done with the
> results. iow, the use cases are fundamentally different. using one from
> the other, while possible, is therefore always going to be more awkward
> than simply using a shared implementation for getting to the actual data.

I see... As a *user* of Plasma, I thought reusing data-fetching code in both 
a runner and a plasmoid was one of the advantages of dataengines.


Anyway, even if I sort-of know the answer, this naturally leads me to the 
question of "what is the actual use-case of dataengines?". In particular, 
what's the advantage/rationale to the model of sources + keys + arbitrary 
QVariants as values + procedural 'services'?

-- 
Nicolas


_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic