Projects/KNS2/Handler: Difference between revisions

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


= The Bundler =
= The Bundler =
This class is meant to provide a non-GUI and non-user-input-requiring class to manage KNS packages.
This class is meant to provide a non-GUI and class to manage KNS packages. It's meant to be used from application themselves.


It will be able to:
It will be able to:
Line 8: Line 8:
* Map package files to standard QFiles
* Map package files to standard QFiles
* more...
* more...
=== API ===
* '''Bundler(QString/QFile filename)''' Creates a bundler that operates on the given package. Note that the package needs to be unpacked somewhere first, so operating on a dir is much faster
* '''Bundler(KUrl dir)''' Creates a bundler that operates on the given directory.
* '''extractTo(KUrl dir)''' Extract (install) the package into the given dir.
* '''KPluginInfo metadata()''' Returns a pluginInfo object. You can retrive most of the metadata from it.
* '''QFile mapFile(QString filename)'''
* ...

Revision as of 08:44, 14 March 2007

Warning
Names are just temporary. Infos can be as well. Please don't trust this page as probably most of the things are going to heavily change during this 1 month developement marathone.


The Bundler

This class is meant to provide a non-GUI and class to manage KNS packages. It's meant to be used from application themselves.

It will be able to:

  • Unpack packages
  • Map package files to standard QFiles
  • more...

API

  • Bundler(QString/QFile filename) Creates a bundler that operates on the given package. Note that the package needs to be unpacked somewhere first, so operating on a dir is much faster
  • Bundler(KUrl dir) Creates a bundler that operates on the given directory.
  • extractTo(KUrl dir) Extract (install) the package into the given dir.
  • KPluginInfo metadata() Returns a pluginInfo object. You can retrive most of the metadata from it.
  • QFile mapFile(QString filename)
  • ...