Revision 838463

Go back to digest for 3rd August 2008

Features in Networking Tools

Ningyu Shi committed changes in /trunk/KDE/kdenetwork/kget/transfer-plugins:

* The Initial version of the ContentFetch Script Plugin.
** In order to fetch specific content from a web page/website, we need a design to allow user to extract the content URLs from the web page and return it to KGet for downloading. Considering the complexity level of analyzing web pages, a user script system should be a good choice.

Kross is a modular scripting framework that provides a complete framework to embed scripting interpreters like Python, Ruby and JavaScript transparently into native applications. Kross will be used as a bridge between script developer and KGet core which transfer URL to user script and transfer the analyzing result back to KGet.

** The wrapper class is implemented to expose kgetcore to script. API as follows:
kgetcore.addDownload(url): add extracted url into download list.
kgetcore.getSourceUrl(): get source url from kget.

** The script/kross is been done in a seperate thread which won't block the main/gui thread.

File Changes

Added 11 files
  • /trunk/KDE/kdenetwork/kget/transfer-plugins/contentfetch
  •   /CMakeLists.txt
  •   /contentfetch.cpp
  •   /contentfetch.h
  •   /contentfetchfactory.cpp
  •   /contentfetchfactory.h
  •   /kget_contentfetchfactory.desktop
  •   /script.cpp
  •   /script.h
  •   /scriptdownloadengine.cpp
  •   /scriptdownloadengine.h
Modified 1 files
  • /trunk/KDE/kdenetwork/kget/transfer-plugins/CMakeLists.txt
12 files changed in total