libkdegames/libkdegamesprivate/kgame
Go to the documentation of this file.
20 #ifndef __KMESSAGECLIENT_H__
21 #define __KMESSAGECLIENT_H__
23 #include <QtCore/QObject>
24 #include <QtCore/QString>
26 #include "../libkdegamesprivate_export.h"
29 class KMessageClientPrivate;
90 bool isAdmin ()
const;
95 quint32 adminId()
const;
100 QList <quint32> clientList()
const;
113 void setServer (
const QString &host, quint16 port);
152 virtual void setServer (
KMessageIO *connection);
160 bool isConnected ()
const;
166 bool isNetwork ()
const;
172 quint16 peerPort ()
const;
178 QString peerName()
const;
191 void sendServerMessage (
const QByteArray &msg);
202 void sendBroadcast (
const QByteArray &msg);
221 void sendForward (
const QByteArray &msg,
const QList <quint32> &clients);
233 void sendForward (
const QByteArray &msg, quint32 client);
253 unsigned int delayedMessageCount()
const;
276 void broadcastReceived (
const QByteArray &msg, quint32 senderID);
306 void forwardReceived (
const QByteArray &msg, quint32 senderID,
const QList <quint32> &receivers);
317 void connectionBroken ();
323 void aboutToDisconnect(quint32
id);
331 void adminStatusChanged (
bool isAdmin);
339 void eventClientConnected (quint32 clientID);
348 void eventClientDisconnected (quint32 clientID,
bool broken);
363 void serverMessageReceived (
const QByteArray &msg,
bool &unknown);
383 virtual void processMessage (
const QByteArray& msg);
401 virtual void processIncomingMessage (
const QByteArray &msg);
407 void processFirstMessage();
415 virtual void removeBrokenConnection ();
416 void removeBrokenConnection2 ();
419 KMessageClientPrivate *
const d;
A client to connect to a KMessageServer.
This abstract base class represents one end of a message connections between two clients.
A server for message sending and broadcasting, using TCP/IP connections.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:48 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.