6 #ifndef SWIFT_MISC_ATOMICFILE_H
7 #define SWIFT_MISC_ATOMICFILE_H
10 #include <QFileDevice>
38 virtual bool open(OpenMode mode)
override;
42 virtual void close()
override;
51 FileError error()
const;
57 static QString randomSuffix();
58 void replaceOriginal();
60 QString m_originalFilename;
61 bool m_renameError =
false;
62 bool m_permissionError =
false;
A subclass of QFile which writes to a temporary file while it is open, then renames the file when it ...
CAtomicFile(const QString &filename)
Free functions in swift::misc.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.