summaryrefslogtreecommitdiffstats
path: root/libkdegames/kgame/kmessageclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkdegames/kgame/kmessageclient.h')
-rw-r--r--libkdegames/kgame/kmessageclient.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/libkdegames/kgame/kmessageclient.h b/libkdegames/kgame/kmessageclient.h
index 90364c8d..71ab7a1e 100644
--- a/libkdegames/kgame/kmessageclient.h
+++ b/libkdegames/kgame/kmessageclient.h
@@ -20,9 +20,9 @@
#ifndef __KMESSAGECLIENT_H__
#define __KMESSAGECLIENT_H__
-#include <qobject.h>
-#include <qstring.h>
-#include <qvaluelist.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
class KMessageIO;
class KMessageServer;
@@ -58,7 +58,7 @@ public:
Creates an unconnected KMessageClient object. Use setServer() later to connect to a
KMessageServer object.
*/
- KMessageClient (QObject *parent = 0, const char *name = 0);
+ KMessageClient (TQObject *parent = 0, const char *name = 0);
/**
Destructor.
@@ -95,7 +95,7 @@ public:
/**
@return The list of the IDs of all the message clients connected to the message server.
*/
- const QValueList <Q_UINT32> &clientList() const;
+ const TQValueList <Q_UINT32> &clientList() const;
/**
Connects the client to (another) server.
@@ -108,7 +108,7 @@ public:
be resolved to an IP or just an IP
@param port The port to connect to
*/
- void setServer (const QString &host, Q_UINT16 port);
+ void setServer (const TQString &host, Q_UINT16 port);
/**
Connects the client to (another) server.
@@ -165,7 +165,7 @@ public:
/**
@return 0 if isConnected() is FALSE, otherwise the port number this client is
- connected to. See also KMessageIO::peerPort and QSocket::peerPort.
+ connected to. See also KMessageIO::peerPort and TQSocket::peerPort.
@since 3.2
*/
Q_UINT16 peerPort () const;
@@ -173,9 +173,9 @@ public:
/**
@since 3.2
@return "localhost" if isConnected() is FALSE, otherwise the hostname this client is
- connected to. See also KMessageIO::peerName() and QSocket::peerName().
+ connected to. See also KMessageIO::peerName() and TQSocket::peerName().
*/
- QString peerName() const;
+ TQString peerName() const;
/**
Sends a message to the KMessageServer. If we are not yet connected to one, nothing
@@ -188,7 +188,7 @@ public:
and sendForward().
@param msg The message to be sent to the server. Must be in the format specified in KMessageServer.
*/
- void sendServerMessage (const QByteArray &msg);
+ void sendServerMessage (const TQByteArray &msg);
/**
Sends a message to all the clients connected to the server, including ourself.
@@ -199,7 +199,7 @@ public:
@param msg The message to be sent to the clients
*/
//AB: processBroadcast doesn't exist!! is processIncomingMessage meant?
- void sendBroadcast (const QByteArray &msg);
+ void sendBroadcast (const TQByteArray &msg);
/**
Sends a message to all the clients in a list.
@@ -218,11 +218,11 @@ public:
@param clients A list of clients the message should be sent to
*/
//AB: processForward doesn't exist!! is processIncomingMessage meant?
- void sendForward (const QByteArray &msg, const QValueList <Q_UINT32> &clients);
+ void sendForward (const TQByteArray &msg, const TQValueList <Q_UINT32> &clients);
/**
Sends a message to a single client. This is a convenieance method. It calls
- sendForward (const QByteArray &msg, const QValueList &ltQ_UINT32> &clients)
+ sendForward (const TQByteArray &msg, const TQValueList &ltQ_UINT32> &clients)
with a list containing only one client ID.
To send a message to the admin of the KMessageServer, you can use 0 as clientID,
@@ -230,7 +230,7 @@ public:
@param msg The message to be sent to the client
@param client The id of the client the message shall be sent to
*/
- void sendForward (const QByteArray &msg, Q_UINT32 client);
+ void sendForward (const TQByteArray &msg, Q_UINT32 client);
/**
Once this function is called no message will be received anymore.
@@ -263,7 +263,7 @@ signals:
to ignore broadcast messages that were sent by yourself:
\code
- void myObject::myBroadcastSlot (const QByteArray &msg, Q_UINT32 senderID)
+ void myObject::myBroadcastSlot (const TQByteArray &msg, Q_UINT32 senderID)
{
if (senderID == ((KMessageClient *)sender())->id())
return;
@@ -273,7 +273,7 @@ signals:
@param msg The message that has been sent to us
@param senderID The ID of the client which sent the message
*/
- void broadcastReceived (const QByteArray &msg, Q_UINT32 senderID);
+ void broadcastReceived (const TQByteArray &msg, Q_UINT32 senderID);
/**
This signal is emitted when the client receives a forward message from the
@@ -294,8 +294,8 @@ signals:
\code
KMessageClient *client = new KMessageClient ();
- connect (client, SIGNAL (forwardReceived (const QByteArray &, Q_UINT32, const QValueList <Q_UINT32>&)),
- client, SIGNAL (broadcastReceived (const QByteArray &, Q_UINT32)));
+ connect (client, TQT_SIGNAL (forwardReceived (const TQByteArray &, Q_UINT32, const TQValueList <Q_UINT32>&)),
+ client, TQT_SIGNAL (broadcastReceived (const TQByteArray &, Q_UINT32)));
\endcode
Then connect the broadcast signal to your slot that analyzes the message.
@@ -303,7 +303,7 @@ signals:
@param senderID The ID of the client which sent the message
@param receivers All clients which receive this message
*/
- void forwardReceived (const QByteArray &msg, Q_UINT32 senderID, const QValueList <Q_UINT32> &receivers);
+ void forwardReceived (const TQByteArray &msg, Q_UINT32 senderID, const TQValueList <Q_UINT32> &receivers);
/**
This signal is emitted when the connection to the KMessageServer is broken.
@@ -360,7 +360,7 @@ signals:
//AB: maybe add a setNoEmit() so that the other signals can be deactivated?
//Could be a performance benefit (note: KMessageClient is a time critical
//class!!!)
- void serverMessageReceived (const QByteArray &msg, bool &unknown);
+ void serverMessageReceived (const TQByteArray &msg, bool &unknown);
protected:
/**
@@ -380,7 +380,7 @@ protected:
@param msg The incoming message
*/
- virtual void processMessage (const QByteArray& msg);
+ virtual void processMessage (const TQByteArray& msg);
protected slots:
/**
@@ -398,10 +398,10 @@ protected slots:
MSG_BROADCAST, MSG_FORWARD, ANS_CLIENT_ID, ANS_ADMIN_ID, ANS_CLIENT_LIST
@param msg The incoming message
*/
- virtual void processIncomingMessage (const QByteArray &msg);
+ virtual void processIncomingMessage (const TQByteArray &msg);
/**
- Called from unlock() (using QTimer::singleShot) until all delayed
+ Called from unlock() (using TQTimer::singleShot) until all delayed
messages are delivered.
*/
void processFirstMessage();