How to use KDE for file copying jobs (not kdev topic)
Serge Lussier
lusse at videotron.ca
Sun Jul 14 16:05:06 UTC 2002
On Sunday 14 July 2002 09:54, Victor Röder wrote:
> Hi, Bretzel! :-)
>
[...]
> The more easiest way:
>
> #include <kio/job.h>
> ...
> KIO::Job* job = KIO::copy ( yourSrcPath, yourDestPath );
>
> // now you can control your copy-job via job (i.e. kill, connect with a
> slot, // etc)
>
> connect ( job, SIGNAL ( result ( KIO::Job* ) ), this, SLOT (
> slotResultOfYourCopyJob ( KIO::Job* ) ) );
>
> You can have a look at Bernd's KDE Architecture Overview ( part of Gideon )
> where this stuff is explained really cool.
>
> Bye,
> Victor
Aaaah! You're my "sauveur!"( you're saving me;-) I didn't try yet but at least
the code compiles :-))) It is obvious that it will work.
I sincerely thank you Victor.
Bretzel
More information about the KDevelop-devel
mailing list