Changeset View
Changeset View
Standalone View
Standalone View
importer/fileutils.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
43 | */ | 43 | */ | ||
44 | bool contentsAreIdentical(const QUrl& url1, const QUrl& url2, QWidget* authWindow = nullptr); | 44 | bool contentsAreIdentical(const QUrl& url1, const QUrl& url2, QWidget* authWindow = nullptr); | ||
45 | 45 | | |||
46 | /** | 46 | /** | ||
47 | * Rename src to dst, returns RenameResult | 47 | * Rename src to dst, returns RenameResult | ||
48 | */ | 48 | */ | ||
49 | RenameResult rename(const QUrl& src, const QUrl& dst, QWidget* authWindow = nullptr); | 49 | RenameResult rename(const QUrl& src, const QUrl& dst, QWidget* authWindow = nullptr); | ||
50 | 50 | | |||
51 | /** | | |||
52 | * Create a temp dir in baseDir, starting with prefix. If successful returns | | |||
53 | * the created dir otherwise returns an empty string and writes the error message | | |||
54 | * in errorMessage. | | |||
55 | * | | |||
56 | * errorMessage must be a valid pointer. | | |||
57 | */ | | |||
58 | QString createTempDir(const QString& baseDir, const QString& prefix, QString* errorMessage); | | |||
59 | | ||||
60 | } // namespace | 51 | } // namespace | ||
61 | } // namespace | 52 | } // namespace | ||
62 | 53 | | |||
63 | #endif /* FILEUTILS_H */ | 54 | #endif /* FILEUTILS_H */ |