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 QDBUSXMLPARSER_P_H |
5 | #define QDBUSXMLPARSER_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 QLibrary class. This header file may change from |
13 | // version to version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <QtDBus/private/qtdbusglobal_p.h> |
19 | #include <QtCore/qloggingcategory.h> |
20 | #include <QtCore/qmap.h> |
21 | #include "qdbusintrospection_p.h" |
22 | |
23 | #ifndef QT_NO_DBUS |
24 | |
25 | QT_BEGIN_NAMESPACE |
26 | |
27 | Q_DECLARE_LOGGING_CATEGORY(dbusParser) |
28 | |
29 | /*! |
30 | \internal |
31 | */ |
32 | class QDBusXmlParser |
33 | { |
34 | QString m_service; |
35 | QString m_path; |
36 | QSharedDataPointer<QDBusIntrospection::Object> m_object; |
37 | QDBusIntrospection::Interfaces m_interfaces; |
38 | |
39 | public: |
40 | QDBusXmlParser(const QString& service, const QString& path, |
41 | const QString& xmlData); |
42 | |
43 | inline QDBusIntrospection::Interfaces interfaces() const { return m_interfaces; } |
44 | inline QSharedDataPointer<QDBusIntrospection::Object> object() const { return m_object; } |
45 | }; |
46 | |
47 | QT_END_NAMESPACE |
48 | |
49 | #endif // QT_NO_DBUS |
50 | #endif |
51 |