1// Copyright (C) 2020 The Qt Company Ltd.
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 QIODEVICEBASE_H
5#define QIODEVICEBASE_H
6
7#include <QtCore/qglobal.h>
8
9QT_BEGIN_NAMESPACE
10
11class QIODeviceBase
12{
13protected:
14 ~QIODeviceBase() = default;
15public:
16 enum OpenModeFlag {
17 NotOpen = 0x0000,
18 ReadOnly = 0x0001,
19 WriteOnly = 0x0002,
20 ReadWrite = ReadOnly | WriteOnly,
21 Append = 0x0004,
22 Truncate = 0x0008,
23 Text = 0x0010,
24 Unbuffered = 0x0020,
25 NewOnly = 0x0040,
26 ExistingOnly = 0x0080
27 };
28 Q_DECLARE_FLAGS(OpenMode, OpenModeFlag)
29};
30
31QT_END_NAMESPACE
32
33#endif // QIODEVICEBASE_H
34

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