| 1 | // Copyright (C) 2013 David Faure <faure@kde.org> |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | // Qt-Security score:significant reason:header-decls-only |
| 4 | |
| 5 | #ifndef QSAVEFILE_P_H |
| 6 | #define QSAVEFILE_P_H |
| 7 | |
| 8 | // |
| 9 | // W A R N I N G |
| 10 | // ------------- |
| 11 | // |
| 12 | // This file is not part of the Qt API. It exists purely as an |
| 13 | // implementation detail. This header file may change from version to |
| 14 | // version without notice, or even be removed. |
| 15 | // |
| 16 | // We mean it. |
| 17 | // |
| 18 | |
| 19 | #include <QtCore/qsavefile.h> |
| 20 | |
| 21 | #if QT_CONFIG(temporaryfile) |
| 22 | |
| 23 | #include "private/qfiledevice_p.h" |
| 24 | |
| 25 | QT_BEGIN_NAMESPACE |
| 26 | |
| 27 | class QSaveFilePrivate : public QFileDevicePrivate |
| 28 | { |
| 29 | Q_DECLARE_PUBLIC(QSaveFile) |
| 30 | |
| 31 | protected: |
| 32 | QSaveFilePrivate(); |
| 33 | ~QSaveFilePrivate(); |
| 34 | |
| 35 | QString fileName; |
| 36 | QString finalFileName; // fileName with symbolic links resolved |
| 37 | |
| 38 | QFileDevice::FileError writeError; |
| 39 | |
| 40 | bool useTemporaryFile; |
| 41 | bool directWriteFallback; |
| 42 | }; |
| 43 | |
| 44 | QT_END_NAMESPACE |
| 45 | |
| 46 | #endif // QT_CONFIG(temporaryfile) |
| 47 | |
| 48 | #endif // QSAVEFILE_P_H |
| 49 | |