Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-21 09:21:24

0001 // Copyright (C) 2020 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 // Qt-Security score:significant reason:default
0004 
0005 #ifndef QIODEVICEBASE_H
0006 #define QIODEVICEBASE_H
0007 
0008 #include <QtCore/qglobal.h>
0009 
0010 QT_BEGIN_NAMESPACE
0011 
0012 class QIODeviceBase
0013 {
0014 protected:
0015     ~QIODeviceBase() = default;
0016 public:
0017     enum OpenModeFlag {
0018         NotOpen = 0x0000,
0019         ReadOnly = 0x0001,
0020         WriteOnly = 0x0002,
0021         ReadWrite = ReadOnly | WriteOnly,
0022         Append = 0x0004,
0023         Truncate = 0x0008,
0024         Text = 0x0010,
0025         Unbuffered = 0x0020,
0026         NewOnly = 0x0040,
0027         ExistingOnly = 0x0080
0028     };
0029     Q_DECLARE_FLAGS(OpenMode, OpenModeFlag)
0030 };
0031 
0032 QT_END_NAMESPACE
0033 
0034 #endif // QIODEVICEBASE_H