KD SOAP API Documentation: KDSoapSocketList_p.h Source File

| KD SOAP API Documentation 2.2

Loading...
Searching...
No Matches
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 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>
15QT_BEGIN_NAMESPACE
16class QTcpSocket;
17class QObject;
18 QT_END_NAMESPACE
19class KDSoapServer;
20class KDSoapServerSocket;
21
22 class KDSoapSocketList : public QObject
23{
24 Q_OBJECT
25public:
26 explicit KDSoapSocketList(KDSoapServer *server);
27 ~KDSoapSocketList();
28
29 KDSoapServerSocket *handleIncomingConnection(int socketDescriptor);
30
31 int socketCount() const;
32 void disconnectAll();
33
34 int totalConnectionCount() const;
35 void increaseConnectionCount();
36 void resetTotalConnectionCount();
37
38 KDSoapServer *server() const
39 {
40 return m_server;
41 }
42
43public Q_SLOTS:
44 void socketDeleted(KDSoapServerSocket *socket);
45
46private:
47 KDSoapServer *m_server;
48 QObject *m_serverObject;
49 QSet<KDSoapServerSocket *> m_sockets;
50 QAtomicInt m_totalConnectionCount;
51};
52
53#endif // KDSOAPSOCKETLIST_P_H
KDSoapServerSocket
Definition KDSoapServerSocket_p.h:35
KDSoapServer
Definition KDSoapServer.h:30
KDSoapSocketList
Definition KDSoapSocketList_p.h:23
KDSoapSocketList::server
KDSoapServer * server() const
Definition KDSoapSocketList_p.h:38
KDSoapSocketList::totalConnectionCount
int totalConnectionCount() const
Definition KDSoapSocketList.cpp:69
KDSoapSocketList::handleIncomingConnection
KDSoapServerSocket * handleIncomingConnection(int socketDescriptor)
Definition KDSoapSocketList.cpp:29
KDSoapSocketList::socketDeleted
void socketDeleted(KDSoapServerSocket *socket)
Definition KDSoapSocketList.cpp:51
KDSoapSocketList::~KDSoapSocketList
~KDSoapSocketList()
Definition KDSoapSocketList.cpp:24
KDSoapSocketList::increaseConnectionCount
void increaseConnectionCount()
Definition KDSoapSocketList.cpp:74
KDSoapSocketList::resetTotalConnectionCount
void resetTotalConnectionCount()
Definition KDSoapSocketList.cpp:80
KDSoapSocketList::socketCount
int socketCount() const
Definition KDSoapSocketList.cpp:57
KDSoapSocketList::disconnectAll
void disconnectAll()
Definition KDSoapSocketList.cpp:62
QAtomicInt
QObject
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::Q_SLOTS
Q_SLOTSQ_SLOTS
QObject::qobject_cast
T qobject_cast(QObject *object)
QSet
QTcpSocket

© 2010-2024 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 Sun Jan 7 2024 11:47:36 for KD SOAP API Documentation by doxygen 1.9.8