Needed only during directory listing right now. */
| 257 | Needed only during directory listing right now. |
| 258 | */ |
| 259 | void FileAccess::setFile(FileAccess* pParent, const QFileInfo& fi) |
| 260 | { |
| 261 | assert(pParent != this); |
| 262 | #if HAS_KFKIO && !defined AUTOTEST |
| 263 | if(mJobHandler == nullptr) mJobHandler.reset(new DefaultFileAccessJobHandler(this)); |
| 264 | #endif |
| 265 | reset(); |
| 266 | |
| 267 | m_fileInfo = fi; |
| 268 | m_url = QUrl::fromLocalFile(m_fileInfo.absoluteFilePath()); |
| 269 | |
| 270 | m_pParent = pParent; |
| 271 | loadData(); |
| 272 | } |
| 273 | |
| 274 | void FileAccess::setFile(const QString& name, bool bWantToWrite) |
| 275 | { |