File indexing completed on 2024-12-22 03:52:57
0001 /* 0002 This file is part of the KDE games library 0003 SPDX-FileCopyrightText: 2001 Burkhard Lehner <Burkhard.Lehner@gmx.de> 0004 0005 SPDX-License-Identifier: LGPL-2.0-only 0006 */ 0007 0008 #ifndef __KMESSAGESERVER_P_H__ 0009 #define __KMESSAGESERVER_P_H__ 0010 0011 // Qt 0012 #include <QTcpServer> 0013 0014 class KMessageIO; 0015 0016 /** 0017 Internal class of KMessageServer. Creates a server socket and waits for 0018 connections. 0019 0020 @short An internal class for KServerSocket 0021 @author Burkhard Lehner <Burkhard.Lehner@gmx.de> 0022 */ 0023 class KMessageServerSocket : public QTcpServer 0024 { 0025 Q_OBJECT 0026 0027 public: 0028 explicit KMessageServerSocket(quint16 port, QObject *parent = nullptr); 0029 ~KMessageServerSocket() override; 0030 0031 public Q_SLOTS: 0032 void slotNewConnection(); 0033 0034 Q_SIGNALS: 0035 void newClientConnected(KMessageIO *client); 0036 }; 0037 0038 #endif