KD SOAP API Documentation 2.2
Loading...
Searching...
No Matches
KDSoapDelayedResponseHandle.cpp
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
13#include <QPointer>
14#include <QSharedData>
15
16class KDSoapDelayedResponseHandleData : public QSharedData
17{
18public:
19 KDSoapDelayedResponseHandleData(KDSoapServerSocket *s)
20 : socket(s)
21 {
22 }
23 // QPointer in case the client disconnects during a delayed response
25};
26
28 : data(new KDSoapDelayedResponseHandleData(nullptr))
29{
30}
31
36
38{
39 if (this != &rhs) {
40 data.operator=(rhs.data);
41 }
42 return *this;
43}
44
48
50 : data(new KDSoapDelayedResponseHandleData(socket))
51{
52 socket->setResponseDelayed();
53}
54
55KDSoapServerSocket *KDSoapDelayedResponseHandle::serverSocket() const
56{
57 return data->socket;
58}
KDSoapDelayedResponseHandle & operator=(const KDSoapDelayedResponseHandle &)

© 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