Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qiodevicebase.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#ifndef QIODEVICEBASE_H
6#define QIODEVICEBASE_H
7
8#include <QtCore/qglobal.h>
9
10QT_BEGIN_NAMESPACE
11
12class QIODeviceBase
13{
14protected:
15 ~QIODeviceBase() = default;
16public:
17 enum OpenModeFlag {
18 NotOpen = 0x0000,
19 ReadOnly = 0x0001,
20 WriteOnly = 0x0002,
21 ReadWrite = ReadOnly | WriteOnly,
22 Append = 0x0004,
23 Truncate = 0x0008,
24 Text = 0x0010,
25 Unbuffered = 0x0020,
26 NewOnly = 0x0040,
27 ExistingOnly = 0x0080
28 };
29 Q_DECLARE_FLAGS(OpenMode, OpenModeFlag)
30};
31
32QT_END_NAMESPACE
33
34#endif // QIODEVICEBASE_H