| 1005 | } |
| 1006 | |
| 1007 | bool FileAccess::createLocalCopy() |
| 1008 | { |
| 1009 | if(isLocal() || !m_localCopy.isEmpty() || !mPhysicalPath.isEmpty()) |
| 1010 | return true; |
| 1011 | |
| 1012 | tmpFile->setAutoRemove(true); |
| 1013 | tmpFile->open(); |
| 1014 | tmpFile->close(); |
| 1015 | m_localCopy = tmpFile->fileName(); |
| 1016 | |
| 1017 | return copyFile(tmpFile->fileName()); |
| 1018 | } |
| 1019 | |
| 1020 | //static tempfile Generator |
| 1021 | void FileAccess::createTempFile(QTemporaryFile& tmpFile) |