1 | // Copyright (C) 2016 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 QSQLDRIVER_P_H |
5 | #define QSQLDRIVER_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 for the convenience |
12 | // of the QtSQL module. This header file may change from version to version |
13 | // without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <QtSql/private/qtsqlglobal_p.h> |
19 | #include "private/qobject_p.h" |
20 | #include "qsqldriver.h" |
21 | #include "qsqlerror.h" |
22 | |
23 | QT_BEGIN_NAMESPACE |
24 | |
25 | class QSqlDriverPrivate : public QObjectPrivate |
26 | { |
27 | Q_DECLARE_PUBLIC(QSqlDriver) |
28 | |
29 | public: |
30 | QSqlDriverPrivate(QSqlDriver::DbmsType type = QSqlDriver::UnknownDbms) |
31 | : QObjectPrivate(), |
32 | dbmsType(type) |
33 | { } |
34 | |
35 | QSqlError error; |
36 | QSql::NumericalPrecisionPolicy precisionPolicy = QSql::LowPrecisionDouble; |
37 | QSqlDriver::DbmsType dbmsType; |
38 | bool isOpen = false; |
39 | bool isOpenError = false; |
40 | }; |
41 | |
42 | QT_END_NAMESPACE |
43 | |
44 | #endif // QSQLDRIVER_P_H |
45 |