KD SOAP API Documentation 2.2
Loading...
Searching...
No Matches
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 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
17class KDSoapMessage;
18class KDSoapHeaders;
19
53{
54 Q_OBJECT
55public:
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
126 void finished(KDSoapJob *job);
127
128protected:
133 Q_INVOKABLE virtual void doStart() = 0;
134
139 void emitFinished(const KDSoapMessage &reply, const KDSoapHeaders &replyHeaders);
140
141private:
142 class Private;
143 Private *const d;
144};
145
146#endif // KDSOAPJOB_H
#define KDSOAP_EXPORT
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)
Q_SIGNALSQ_SIGNALS

© 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 Sat Apr 20 2024 00:04:25 for KD SOAP API Documentation by doxygen 1.9.8