The K Desktop Environment

Using I/O Slaves HOWTO

Version 0.2
Last updated: June 21, 2000

Kurt Granroth

granroth@kde.org

This HOWTO is a very quick guide on using KDE I/O slaves (ioslaves) from a developer's perspective. It does not cover how to write ioslaves themself. It also does not go into any significant detail.. just enough to get started.


Table of Contents
1. Introduction
1.1. Copyright
2. The IOSlave Framework
2.1. The KIO Library
2.2. The IOSlaves
3. Adding IOSlaves Support to your Application
3.1. Modifying your Makefile
3.2. Adding the Proper Headers
4. Using IOSlaves
4.1. Simple Example
5. KIO::Job Functions
KIO::TransferJob *get — downloads data from a remote URL
KIO::TransferJob *put — uploads data to a remote URL
6. KIO::Job Signals
KIO::Job::result — final status or result of job operation
KIO::Job::data — emitted whenever data is received