summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qtemporaryfile.h
diff options
context:
space:
mode:
authorDavid Faure <faure+bluesystems@kde.org>2013-02-03 12:00:50 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-05 06:26:33 +0100
commit1b582d64eb6d13e60a02ebc40956302a4864eb6c (patch)
tree45a3ce2c245acf5caf156d11203da7e69dfba7cd /src/corelib/io/qtemporaryfile.h
parent6f8bc4de406be856eeba9e62700888941ccfdcc1 (diff)
Long live QLockFile
Locking between processes, implemented with open(O_EXCL) on Unix and CreateFile(CREATE_NEW) on Windows. Supports detecting stale lock files and deleting them. Advisory locking is used to prevent deletion of files that are still in use. Change-Id: Id00ee2a4e77a29483d869037c7047c59cb909339 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qtemporaryfile.h')
-rw-r--r--src/corelib/io/qtemporaryfile.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/io/qtemporaryfile.h b/src/corelib/io/qtemporaryfile.h
index 249892e704..09aa53c33b 100644
--- a/src/corelib/io/qtemporaryfile.h
+++ b/src/corelib/io/qtemporaryfile.h
@@ -55,6 +55,7 @@ QT_BEGIN_NAMESPACE
#ifndef QT_NO_TEMPORARYFILE
class QTemporaryFilePrivate;
+class QLockFilePrivate;
class Q_CORE_EXPORT QTemporaryFile : public QFile
{
@@ -96,6 +97,7 @@ protected:
private:
friend class QFile;
+ friend class QLockFilePrivate;
Q_DISABLE_COPY(QTemporaryFile)
};