Jump to content

Plasma/libplasma2/modellikedataengines: Difference between revisions

From KDE Community Wiki
Afiestas (talk | contribs)
Created page with "==Discussion== Many dataengines return data as series of items: like rss, microblog and tasks, and they do in different ways, rss has a list of Data in a single key, microblog..."
 
Notmart (talk | contribs)
No edit summary
Line 2: Line 2:
Many dataengines return data as series of items: like rss, microblog and tasks, and they do in different ways, rss has a list of Data in a single key, microblog has an item per key, tasks has an item per source.
Many dataengines return data as series of items: like rss, microblog and tasks, and they do in different ways, rss has a list of Data in a single key, microblog has an item per key, tasks has an item per source.
==Proposed Solution ==
==Proposed Solution ==
* Provide an unified way to do item lists easily mappable to models for QML views
In Plasma2 dataengine has a setModel method, that can associate a QAbstractItemModel instance to a Source.
* A DataList type?
 
* directly passing a model?
==Dataengines to port==

Revision as of 16:32, 2 January 2014

Discussion

Many dataengines return data as series of items: like rss, microblog and tasks, and they do in different ways, rss has a list of Data in a single key, microblog has an item per key, tasks has an item per source.

Proposed Solution

In Plasma2 dataengine has a setModel method, that can associate a QAbstractItemModel instance to a Source.

Dataengines to port