2 --- qtlockedfile.cpp 1970-01-01 01:00:00.000000000
3 +++ qtlockedfile.cpp 2008/05/16 10:51:19.000000000
5 #include "qtlockedfile.h"
7 +namespace SharedTools {
14 Destroys the \e QtLockedFile object. If any locks were held, they are released.
19 --- qtlockedfile.h 1970-01-01 01:00:00.000000000
20 +++ qtlockedfile.h 2008/05/16 10:51:19.000000000
22 # define QT_QTLOCKEDFILE_EXPORT
25 +namespace SharedTools {
27 class QT_QTLOCKEDFILE_EXPORT QtLockedFile : public QFile
38 --- qtlockedfile_unix.cpp 1970-01-01 01:00:00.000000000
39 +++ qtlockedfile_unix.cpp 2008/05/16 10:51:19.000000000
42 #include "qtlockedfile.h"
44 +namespace SharedTools {
46 bool QtLockedFile::lock(LockMode mode, bool block)
55 --- qtlockedfile_win.cpp 1970-01-01 01:00:00.000000000
56 +++ qtlockedfile_win.cpp 2008/05/16 10:51:19.000000000
58 #include <qt_windows.h>
59 #include <QtCore/QFileInfo>
61 +namespace SharedTools {
63 #define SEMAPHORE_PREFIX "QtLockedFile semaphore "
64 #define MUTEX_PREFIX "QtLockedFile mutex "
65 #define SEMAPHORE_MAX 100