8f4f69b1f8a3448ea580379f7276499eabb3bd51
[platform/upstream/dbus.git] / qt / qdbusxmlparser_p.h
1 /* -*- C++ -*-
2  *
3  * Copyright (C) 2005 Thiago Macieira <thiago@kde.org>
4  * Copyright (C) 2006 Trolltech AS. All rights reserved.
5  *    Author: Thiago Macieira <thiago.macieira@trolltech.com>
6  *
7  * Licensed under the Academic Free License version 2.1
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software Foundation,
21  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22  *
23  */
24
25 #ifndef QDBUSXMLPARSER_H
26 #define QDBUSXMLPARSER_H
27
28 #include <QtCore/qmap.h>
29 #include <QtXml/qdom.h>
30 #include "qdbusmacros.h"
31 #include "qdbusintrospection_p.h"
32
33 /*!
34     \internal
35 */
36 class QDBusXmlParser
37 {
38     QString m_service;
39     QString m_path;
40     QDomElement m_node;
41
42 public:
43     QDBusXmlParser(const QString& service, const QString& path,
44                    const QString& xmlData);
45     QDBusXmlParser(const QString& service, const QString& path,
46                    const QDomElement& node);
47
48     QDBusIntrospection::Interfaces interfaces() const;
49     QSharedDataPointer<QDBusIntrospection::Object> object() const;
50     QSharedDataPointer<QDBusIntrospection::ObjectTree> objectTree() const;
51 };
52
53 #endif