1 | // Copyright (C) 2016 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | |
4 | #ifndef DATABASEINFO_H |
5 | #define DATABASEINFO_H |
6 | |
7 | #include "treewalker.h" |
8 | #include <qstringlist.h> |
9 | #include <qmap.h> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | class Driver; |
14 | |
15 | class DatabaseInfo : public TreeWalker |
16 | { |
17 | public: |
18 | DatabaseInfo(); |
19 | |
20 | void acceptUI(DomUI *node) override; |
21 | void acceptWidget(DomWidget *node) override; |
22 | |
23 | inline QStringList connections() const |
24 | { return m_connections; } |
25 | |
26 | private: |
27 | QStringList m_connections; |
28 | QMap<QString, QStringList> m_cursors; |
29 | QMap<QString, QStringList> m_fields; |
30 | }; |
31 | |
32 | QT_END_NAMESPACE |
33 | |
34 | #endif // DATABASEINFO_H |
35 |