Homerun sources and Plasma runners
Aurélien Gâteau
agateau at kde.org
Mon Nov 19 14:24:09 UTC 2012
Le lundi 19 novembre 2012 14:58:40 Aurélien Gâteau a écrit :
> Le vendredi 16 novembre 2012 18:16:12 Marco Martin a écrit :
> > > Sources features missing in Runners:
> > > - model-based => more QML friendly
> >
> > I still think that wrapped in a model or not is a detail.
> > still don't see what advantages would bring the api being a model, rather
> > a
> > model being a client?
>
> It makes it possible to expose existing models: for example the model of the
> current Places is a proxy model on the existing KFilePlacesModel.
>
> It also brings for free robust support for addition, update and removal
> results without having to implement this again in RunnerManager.
Additionally, it makes it possible to delay actual definition of result
properties: with a model you do not have to call setFoo() explicitly to define
the Foo property, since you reimplement ::data(), you can delay the
computation of Foo until ::data(index, FooRole) is called.
Aurélien
More information about the Plasma-devel
mailing list