Common VFS: GKIO experiment

Waldo Bastian bastian at kde.org
Wed Dec 8 10:26:05 GMT 2004


On Wednesday 08 December 2004 01:12, nf wrote:
> In order to find a way out of this situation, i would like to start an
> experiment: To write a (KDE/C++) wrapper to Gnome-VFS which looks and
> acts like the KIO-API - "GKIO". Then write a number of test-cases, which
> test the GKIO-API for KIO requirements and compatibility. Once this
> tests work, i want to try plugging GKIO into kde-core libs (instead of
> original KIO code).

The API you are looking for is the io-slave API. In particular 
kdelibs/kio/kio/slaveinterface.h and kdelibs/kio/kio/slavebase.h

The easiest is to start by making a single (out of process) ioslave, there are 
plenty of io-slaves available as example, but the file ioslave 
(kdelibs/kioslave/file) is probably relatively close to what you need.

Most io-slaves don't use the Qt event loop at all, so you don't need to merge 
it either. If you need the glib event loop you may need to merge it with 
SlaveBase::dispatch which handles the communication between application and 
io-slave.

If you need to do things in-process (but I can't see why actually) you can 
have a look at the data io-slave.

Cheers,
Waldo
-- 
bastian at kde.org   |   Free Novell Linux Desktop 9 Evaluation Download
bastian at suse.com  |   http://www.novell.com/products/desktop/eval.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20041208/9cffb024/attachment.sig>


More information about the kde-core-devel mailing list