Difference between revisions of "Projects/KNS2/Packager"

< Projects‎ | KNS2
Jump to: navigation, search
Line 16: Line 16:
 
or something like that
 
or something like that
  
==== Packager API ====
+
=== Packager API ===
 
* '''Plasmagik::PackageType''' -> Predefined list of package types. See packaging.txt for the complete list.
 
* '''Plasmagik::PackageType''' -> Predefined list of package types. See packaging.txt for the complete list.
 
* '''setPackageType(Plasmagik::PackageType, bool clearFirst)''' If clearFirst == true, clearProgrammingLanuages() will be called.
 
* '''setPackageType(Plasmagik::PackageType, bool clearFirst)''' If clearFirst == true, clearProgrammingLanuages() will be called.
Line 24: Line 24:
 
* '''clearProgrammingLanguages()''' It will remove any language previously set.
 
* '''clearProgrammingLanguages()''' It will remove any language previously set.
  
===== Proposed improvements =====
+
==== Improvements proposed ====
 
* Renaming *ProgrammingLanguages --> *Languages
 
* Renaming *ProgrammingLanguages --> *Languages
  
==== Networking API ====
+
=== Networking API ===
 
* '''TODO!'''
 
* '''TODO!'''

Revision as of 17:31, 12 March 2007

noframe
 
Note
Names are just temporary. Please don't trust this page as probably most of the things are going to heavily change during this 1 month developement marathone.

Contents

The Packager

This task is mostly done, this is the API I came out with:

The syntax I'd like to came up with is:

Code

Plasmagik packager; packager.setPackageType(...); packager.setSomething(); packager.show();

or something like that

Packager API

  • Plasmagik::PackageType -> Predefined list of package types. See packaging.txt for the complete list.
  • setPackageType(Plasmagik::PackageType, bool clearFirst) If clearFirst == true, clearProgrammingLanuages() will be called.
  • setProgrammingLanguages(QString/QStringList &languages) If languages is QString, languages are separated by '|'. It will call clearProgrammingLanguages().
  • QString/QStringList programmingLanguages()
  • addProgrammingLanguages(QString/QStringList &languages) Same as setProgammingLanguages, but it won't call clearProgrammingLanguages() first, and will add languages to the end.
  • clearProgrammingLanguages() It will remove any language previously set.

Improvements proposed

  • Renaming *ProgrammingLanguages --> *Languages

Networking API

  • TODO!

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal