| 33 | } |
| 34 | |
| 35 | FileManagerListJob::FileManagerListJob(ProjectFolderItem* item) |
| 36 | : m_item(item) |
| 37 | { |
| 38 | setCapabilities(Killable); |
| 39 | |
| 40 | qRegisterMetaType<KIO::UDSEntryList>("KIO::UDSEntryList"); |
| 41 | qRegisterMetaType<KJob*>(); |
| 42 | |
| 43 | /* the following line is not an error in judgment, apparently starting a |
| 44 | * listJob while the previous one hasn't self-destructed takes a lot of time, |
| 45 | * so we give the job a chance to selfdestruct first */ |
| 46 | connect( this, &FileManagerListJob::nextJob, this, &FileManagerListJob::startNextJob, Qt::QueuedConnection ); |
| 47 | |
| 48 | addSubDir(item); |
| 49 | |
| 50 | #ifdef TIME_IMPORT_JOB |
| 51 | m_timer.start(); |
| 52 | #endif |
| 53 | } |
| 54 | |
| 55 | FileManagerListJob::~FileManagerListJob() |
| 56 | { |