KD SOAP API Documentation  2.1
KDSoapJob.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** This file is part of the KD Soap project.
4 **
5 ** SPDX-FileCopyrightText: 2010-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: MIT
8 **
9 ****************************************************************************/
10 #ifndef KDSOAPJOB_H
11 #define KDSOAPJOB_H
12 
13 #include "KDSoapGlobal.h"
14 
15 #include <QtCore/QObject>
16 
17 class KDSoapMessage;
18 class KDSoapHeaders;
19 
52 class KDSOAP_EXPORT KDSoapJob : public QObject
53 {
54  Q_OBJECT
55 public:
61  explicit KDSoapJob(QObject *parent = nullptr);
62 
66  ~KDSoapJob();
67 
72  KDSoapHeaders requestHeaders() const;
73 
80  void setRequestHeaders(const KDSoapHeaders &headers);
81 
85  bool isFault() const;
86 
90  QString faultAsString() const;
91 
96  KDSoapMessage reply() const;
97 
104  KDSoapHeaders replyHeaders() const;
105 
109  void start();
110 
115  void setAutoDelete(bool enable);
116 
117 Q_SIGNALS:
126  void finished(KDSoapJob *job);
127 
128 protected:
133  Q_INVOKABLE virtual void doStart() = 0;
134 
139  void emitFinished(const KDSoapMessage &reply, const KDSoapHeaders &replyHeaders);
140 
141 private:
142  class Private;
143  Private *const d;
144 };
145 
146 #endif // KDSOAPJOB_H
#define KDSOAP_EXPORT
Definition: KDSoapGlobal.h:22
KDSoapJob provides a job-based interface to handle asynchronous KD Soap calls.
Definition: KDSoapJob.h:53
virtual Q_INVOKABLE void doStart()=0
void finished(KDSoapJob *job)

© 2010-2022 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-soap/
Generated on Tue Jun 13 2023 12:18:34 for KD SOAP API Documentation by doxygen 1.9.1