1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
/*
SPDX-FileCopyrightText: 2005 Tobias Koenig <tokoe@kde.org>
SPDX-License-Identifier: MIT
*/
#ifndef KWSDL_MESSAGE_H
#define KWSDL_MESSAGE_H
#include <QDomElement>
#include <QList>
#include <wsdl/element.h>
#include <wsdl/part.h>
#include <kode_export.h>
class ParserContext;
namespace KWSDL {
class KWSDL_EXPORT Message : public Element
{
public:
typedef QList<Message> List;
Message();
Message(const QString &nameSpace);
~Message();
void setName(const QString &name);
QString name() const;
void setParts(const Part::List &parts);
Part::List parts() const;
Part partByName(const QString &name) const;
void loadXML(ParserContext *context, const QDomElement &element);
void saveXML(ParserContext *context, QDomDocument &document, QDomElement &parent) const;
private:
QString mName;
Part::List mParts;
};
}
#endif // KWSDL_MESSAGE_H
|