| 41 | #include <KMessageBox> |
| 42 | |
| 43 | bool DefaultFileAccessJobHandler::stat(bool bWantToWrite) |
| 44 | { |
| 45 | m_bSuccess = false; |
| 46 | #if HAS_KFKIO |
| 47 | mFileAccess->setStatusText(QString()); |
| 48 | |
| 49 | KIO::StatJob* pStatJob = KIO::stat(mFileAccess->url(), |
| 50 | bWantToWrite ? KIO::StatJob::DestinationSide : KIO::StatJob::SourceSide, |
| 51 | KIO::StatDefaultDetails, KIO::HideProgressInfo); |
| 52 | |
| 53 | chk_connect(pStatJob, &KIO::StatJob::result, this, &DefaultFileAccessJobHandler::slotStatResult); |
| 54 | chk_connect(pStatJob, &KIO::StatJob::finished, this, &DefaultFileAccessJobHandler::slotJobEnded); |
| 55 | |
| 56 | ProgressProxy::enterEventLoop(pStatJob, i18n("Getting file status: %1", mFileAccess->prettyAbsPath())); |
| 57 | #endif |
| 58 | return m_bSuccess; |
| 59 | } |
| 60 | |
| 61 | #if HAS_KFKIO |
| 62 | void DefaultFileAccessJobHandler::slotStatResult(KJob* pJob) |
no test coverage detected