KD SOAP  1.8.0
KDSoapMessageWriter_p.h
1 /****************************************************************************
2 ** Copyright (C) 2010-2019 Klaralvdalens Datakonsult AB, a KDAB Group company, info@kdab.com.
3 ** All rights reserved.
4 **
5 ** This file is part of the KD Soap library.
6 **
7 ** Licensees holding valid commercial KD Soap licenses may use this file in
8 ** accordance with the KD Soap Commercial License Agreement provided with
9 ** the Software.
10 **
11 **
12 ** This file may be distributed and/or modified under the terms of the
13 ** GNU Lesser General Public License version 2.1 and version 3 as published by the
14 ** Free Software Foundation and appearing in the file LICENSE.LGPL.txt included.
15 **
16 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
17 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18 **
19 ** Contact info@kdab.com if any conditions of this licensing are not
20 ** clear to you.
21 **
22 **********************************************************************/
23 #ifndef KDSOAPMESSAGEWRITER_P_H
24 #define KDSOAPMESSAGEWRITER_P_H
25 
26 #include "KDSoapMessage.h"
27 #include "KDSoapAuthentication.h"
28 #include "KDSoapClientInterface.h"
29 #include <QtCore/QXmlStreamWriter>
30 #include <QtCore/QByteArray>
31 #include <QtCore/QString>
32 #include <QtCore/QMap>
33 class KDSoapMessage;
34 class KDSoapHeaders;
35 class KDSoapNamespacePrefixes;
36 class KDSoapValue;
37 class KDSoapValueList;
38 
43 class KDSOAP_EXPORT KDSoapMessageWriter
44 {
45 public:
46  KDSoapMessageWriter();
47 
48  void setVersion(KDSoap::SoapVersion version);
49  void setMessageNamespace(const QString &ns);
50 
51  QByteArray messageToXml(const KDSoapMessage &message, const QString &method /*empty in document style*/,
52  const KDSoapHeaders &headers,
53  const QMap<QString, KDSoapMessage> &persistentHeaders,
54  const KDSoapAuthentication &authentication = KDSoapAuthentication()) const;
55 
56 private:
57  QString m_messageNamespace;
58  KDSoap::SoapVersion m_version;
59 
60 };
61 
62 #endif // KDSOAPMESSAGEWRITER_P_H
Definition: KDSoapValue.h:76
Definition: KDSoapMessage.h:195
Definition: KDSoapAuthentication.h:44
Definition: KDSoapMessage.h:41
Definition: KDSoapValue.h:337

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-soap/