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

List:       kde-panel-devel
Subject:    Dataengines in native runners
From:       Nicolas Alvarez <nicolas.alvarez () gmail ! com>
Date:       2011-07-03 23:33:46
Message-ID: iuqu8s$1sp$1 () dough ! gmane ! org
[Download RAW message or body]

Hello Plasma world,

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.

I wrote a dataengine for projects.kde.org, and I'm now writing a runner to 
go with it, and honestly it seems easier to make the runner use my PkoLoader 
class directly instead of going through the dataengine (which uses the same 
class).

I'm sure dataengines would make things much simpler for scripted runners, 
since authors wouldn't want to do the complex data retrieval, or may even be 
unable to do it (eg. if there are no bindings for KFilePlacesModel). But is 
there any point if the "user" of the dataengine would be C++ too?

I'm also having some problems mapping my data to the data model of 
dataengines, and I see little documentation on "good practices" about this; 
but that's probably a topic for another thread.

-- 
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