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
4#ifndef QSAVEFILE_P_H
5#define QSAVEFILE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qglobal.h>
19
20#ifndef QT_NO_TEMPORARYFILE
21
22#include "private/qfiledevice_p.h"
23
24QT_BEGIN_NAMESPACE
25
26class QSaveFilePrivate : public QFileDevicePrivate
27{
28 Q_DECLARE_PUBLIC(QSaveFile)
29
30protected:
31 QSaveFilePrivate();
32 ~QSaveFilePrivate();
33
34 QString fileName;
35 QString finalFileName; // fileName with symbolic links resolved
36
37 QFileDevice::FileError writeError;
38
39 bool useTemporaryFile;
40 bool directWriteFallback;
41};
42
43QT_END_NAMESPACE
44
45#endif // QT_NO_TEMPORARYFILE
46
47#endif // QSAVEFILE_P_H
48

source code of qtbase/src/corelib/io/qsavefile_p.h