I'm trying to list recursively the content of a folder, but KIO:listRecursive is giving me some headhake, it always tell:
/home/frank/kamerawizard/src/kamerawizard.cpp:47: undefined reference to `KIO::listRecursive(KURL const&, bool, bool)'
here is the part of my code where i'm calling it:
|
Source code
|
1
2
3
4
5
6
7
|
#include <kio/job.h>
...
...
...
QString sPath = "file:/home/frank/Pictures";
KURL *url = new KURL(sPath);
KIO::ListJob *lFiles = KIO::listRecursive(*url);
|
I Have tried to call it different ways like this:
KIO::ListJob *lFiles = KIO::listRecursive(*url,true,true);
KIO::ListJob *lFiles = KIO::listRecursive(*url,true);
KIO::ListJob *lFiles = KIO::listRecursive(url,true,true);
etc.
but nothing works
anybody have experienced the same error ?
i'm on kde 3.4.1
on kubuntu
amd 2200+
Thank you very much for your help