Projects/KNS2/Model: Difference between revisions

From KDE TechBase
< Projects‎ | KNS2
No edit summary
No edit summary
 
Line 2: Line 2:


== The Model ==
== The Model ==
It will provide a way to retrive all the availeable information. It will look first in the XML shipped by the server, using KNS::Entry and KNS::Author, then, if it is a KNS2 package (so, extension .kns or .plasma), it will use also metadata.desktop to retrive additional informations.
It will provide a way to retrive all the information otherwise availeable via the download dialog.
It probably won't inherit QStandardModelItem, altough the concept will still remain there.
It probably won't inherit QStandardModelItem, altough the concept will still remain there.




== Proposed API ==
== Proposed API ==
* QString authorName()
* QList<KNS::CompleteEntry> entries()
* QString authorJabber()
* ...
* ...
* QList<?> entries()
'''TODO!'''
'''TODO!'''

Latest revision as of 10:41, 15 March 2007

Warning
This page is work in progress. It can change radically. Please don't trust it


The Model

It will provide a way to retrive all the information otherwise availeable via the download dialog. It probably won't inherit QStandardModelItem, altough the concept will still remain there.


Proposed API

  • QList<KNS::CompleteEntry> entries()
  • ...

TODO!