KD SOAP API Documentation  2.1
KDSoapSocketList_p.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 KDSOAPSOCKETLIST_P_H
11 #define KDSOAPSOCKETLIST_P_H
12 
13 #include <QObject>
14 #include <QSet>
15 QT_BEGIN_NAMESPACE
16 class QTcpSocket;
17 class QObject;
18 QT_END_NAMESPACE
19 class KDSoapServer;
20 class KDSoapServerSocket;
21 
22 class KDSoapSocketList : public QObject
23 {
24  Q_OBJECT
25 public:
28 
29  KDSoapServerSocket *handleIncomingConnection(int socketDescriptor);
30 
31  int socketCount() const;
32  void disconnectAll();
33 
34  int totalConnectionCount() const;
37 
39  {
40  return m_server;
41  }
42 
43 public Q_SLOTS:
44  void socketDeleted(KDSoapServerSocket *socket);
45 
46 private:
47  KDSoapServer *m_server;
48  QObject *m_serverObject;
49  QSet<KDSoapServerSocket *> m_sockets;
50  QAtomicInt m_totalConnectionCount;
51 };
52 
53 #endif // KDSOAPSOCKETLIST_P_H
int totalConnectionCount() const
KDSoapServerSocket * handleIncomingConnection(int socketDescriptor)
void socketDeleted(KDSoapServerSocket *socket)
KDSoapServer * server() const
KDSoapSocketList(KDSoapServer *server)
void resetTotalConnectionCount()
int socketCount() const

© 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