C'T Releases IOSlave Tutorial

c't magazine has just published an English translation of an IOSlave tutorial written by Carsten Pfeiffer and Stephan Kulow. The article tells you everything you need to know to add support for new protocols to KDE. Examples covered include slaves that generate HTML and an ioslave for audio CDs. This is a great tutorial, so check it out and start coding!

Dot Categories: 

Comments

by ac (not verified)

you should go there for the dragon pic alone. :)

by Thorsten Schnebeck (not verified)

You mean:

http://www.heise.de/ct/motive/01/05/p1600.jpg

He, he, there more stuff (free for personal use only):
http://www.heise.de/ct/motive/

One of my favorite:
http://www.heise.de/ct/motive/99/18/p1600.jpg

Have Fun!

by jj (not verified)

These are great. Especially the last one. I have a new standard background now ;-).

by guran (not verified)

Hi

A nice way to check if the 'modularity' of KDE and IOSlave is functioning is to have eight desktops open, each with at least one window going, and then press - Ctrl-Alt-Del.

Here is from my last study in Mandrake 8.1 Cooker, taken from .xsession errors.
warning: leaving MCOP Dispatcher and still 69 types alive.
DCOP: unregister 'knotify'
Terminal: fatal IO error 32 (Broken pipe) or KillClient on X server ":0.0"
Terminal: fatal IO error 32 (Broken pipe) or KillClient on X server ":0.0"
kdeinit: sending SIGTERM to children.
kdeinit: Exit.

Such a thing should not happen in ADA95 but shows what c++ can do.

regards
guran

by Waldo Bastian (not verified)

That has litle to do with ADA or C++ but more with
applications not doing session management and not installing an X-IO-error event handler.

Anyway, it may not be the most elegant way but it is just one way to kill processes that are still running at the time the X server shuts down.

Apart from that, yes ADA is a much more reliable language than C++. You really shouldn't use KDE for your missile defense system.

Cheers,
Waldo

by Erik (not verified)

> warning: leaving MCOP Dispatcher and still 69 > types alive.
> DCOP: unregister 'knotify'
> Terminal: fatal IO error 32 (Broken pipe) or
> KillClient on X server ":0.0"
> Terminal: fatal IO error 32 (Broken pipe) or
> KillClient on X server ":0.0"
> kdeinit: sending SIGTERM to children.
> kdeinit: Exit.

> Such a thing should not happen in ADA95 but
> shows what c++ can do.

Speaking of Ada95, what is happening with this project? (Is guran related to cgouiran?)

by Thorsten Schnebeck (not verified)

the magazine is named "c't" and not "C'T"
--
http://www.douglasadams.com/dna/pedants.html

by Navindra Umanee (not verified)

I fixed it in the body of the article, but avoided a title change so as not to confuse some sites that use the RDF.

-N.

by AC (not verified)

Whats your RDF address... I get stuff that is about a year old in Nautilus and Evolution.

by Navindra Umanee (not verified)

One year old? Wow, that's pretty cool. Where do you get that from? Use:

http://www.kde.org/dotkdeorg.rdf

or

http://dot.kde.org/rdf

by AC (not verified)

Thanks :)
Not sure what rdf it points to, but here is the list of news links it gives me

People Behind KDE: Reginald Stadlbauer
Open Content KDE Developer Book
KDE 2.0 released
People Behind KDE: Claudiu Costin
Development events
Refreshing winds
People behind KDE: David Faure
KDE Desktop 2.0 Final Release Candidate Available

by Navindra Umanee (not verified)

Okay, I have hunted down the errors and have requested updates from GNOME and Ximian. Hopefully they'll followup.

-N.

by Paulo Eduardo Neves (not verified)

Is there a RDF for apps.kde.org? I'd like to have this one.

by someone (not verified)

Ever read the FAQ at http://apps.kde.com?

| 6. Is there a dynamic newsfeed for new application announcements?
|
| Yes, it's available at http://apps.kde.com//news/apps.kde.com.rdf

by Victor Röder (not verified)

The german version can be found here:
"http://www.heise.de/ct/01/05/242/default.shtml

by Carl R (not verified)

Seems to me that every week or two there is a link here to some sort of useful tutorial. Is there a site anywhere that compiles these links, along with other kde tutorials floating around the web?

I think this sort of thing would be a very handy resource for people (such as myself) who are learning to do some kde programming.

by Waldo Bastian (not verified)

On developer.kde.org of course :-)

http://developer.kde.org/documentation/tutorials

Cheers,
Waldo

by fan of kde (not verified)

and a tutorial about kcontrol plugins???????????

by Carl R (not verified)

Thanks. I wasn't aware that this page liked to off-site tutorials (like the c'T one) as well. I suppose that's a pretty good indicator of how much I've actually gone and looked at it!

--c.

by Martin Fick (not verified)

Cool, this might actually inspire me to write some ioslaves. Maybe a cvs slave, maybe a SQL slave, or how about a remsh(rcp, rmv...) slave. Is there an rsync or ssh slave out there? I thought about an mtools slave, but I'm not sure if it would be usefull, maybe for unix platforms that don't do FAT. Would an rdf slave be silly?
...Actually I'm really way too lazy :( to write any of those, but I figured I'd suggest them anyway. :)

Another neat concept would be a scripting interface you could use to create ioslaves. I certainly would play around with that!

by someone (not verified)

> Is there an rsync or ssh slave out there?

A combined ssh/scp-slave would be cool: ssh for listing/renaming etc. and scp for drag&drop transfers.