summaryrefslogtreecommitdiffstats
path: root/libkdegames/kgame/kmessageio.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkdegames/kgame/kmessageio.h')
-rw-r--r--libkdegames/kgame/kmessageio.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/libkdegames/kgame/kmessageio.h b/libkdegames/kgame/kmessageio.h
index 37cf35cd..8ffa4377 100644
--- a/libkdegames/kgame/kmessageio.h
+++ b/libkdegames/kgame/kmessageio.h
@@ -24,12 +24,12 @@
#ifndef _KMESSAGEIO_H_
#define _KMESSAGEIO_H_
-#include <qcstring.h>
-#include <qhostaddress.h>
-#include <qobject.h>
-#include <qstring.h>
-#include <qptrqueue.h>
-#include <qfile.h>
+#include <tqcstring.h>
+#include <tqhostaddress.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqptrqueue.h>
+#include <tqfile.h>
#include <kdebug.h>
class QSocket;
@@ -59,9 +59,9 @@ class KMessageIO : public QObject
public:
/**
- * The usual QObject constructor, does nothing else.
+ * The usual TQObject constructor, does nothing else.
**/
- KMessageIO (QObject *parent = 0, const char *name = 0);
+ KMessageIO (TQObject *parent = 0, const char *name = 0);
/**
* The usual destructor, does nothing special.
@@ -122,7 +122,7 @@ public:
@since 3.2
@return "localhost" in the default implementation. Reimplemented in @ref KMessageSocket
*/
- virtual QString peerName () const { return QString::fromLatin1("localhost"); }
+ virtual TQString peerName () const { return TQString::fromLatin1("localhost"); }
signals:
@@ -131,7 +131,7 @@ signals:
object is called. The parameter contains the same data array in /e msg
as was used in /e send().
*/
- void received (const QByteArray &msg);
+ void received (const TQByteArray &msg);
/**
This signal is emitted when the connection is closed. This can be caused
@@ -154,7 +154,7 @@ public slots:
as a slot! (Otherwise another slot would be defined. It would work, but uses
more memory and time.) See /e KMessageSocket for an example implementation.
*/
- virtual void send (const QByteArray &msg) = 0;
+ virtual void send (const TQByteArray &msg) = 0;
protected:
Q_UINT32 m_id;
@@ -181,7 +181,7 @@ public:
If the connection could not be established (e.g. unknown host or no server
socket at this port), the signal /e connectionBroken is emitted.
*/
- KMessageSocket (QString host, Q_UINT16 port, QObject *parent = 0,
+ KMessageSocket (TQString host, Q_UINT16 port, TQObject *parent = 0,
const char *name = 0);
/**
@@ -192,7 +192,7 @@ public:
If the connection could not be established (e.g. unknown host or no server
socket at this port), the signal /e connectionBroken is emitted.
*/
- KMessageSocket (QHostAddress host, Q_UINT16 port, QObject *parent = 0,
+ KMessageSocket (TQHostAddress host, Q_UINT16 port, TQObject *parent = 0,
const char *name = 0);
/**
@@ -206,20 +206,20 @@ public:
together with this KMessageSocket object. (Use 0 as parent for the QSocket
object t ensure it is not deleted.)
*/
- KMessageSocket (QSocket *socket, QObject *parent = 0, const char *name = 0);
+ KMessageSocket (TQSocket *socket, TQObject *parent = 0, const char *name = 0);
/**
Uses the socket specified by the socket descriptor socketFD to do the
communication. The socket must already be connected.
- This constructor can be used with a QServerSocket within the (pure
+ This constructor can be used with a TQServerSocket within the (pure
virtual) method /e newConnection.
Note: The socket is then owned by the /e KMessageSocket object. So don't
manipulate the socket afterwards, especially don't close it. The socket is
automatically closed when KMessageSocket is deleted.
*/
- KMessageSocket (int socketFD, QObject *parent = 0, const char *name = 0);
+ KMessageSocket (int socketFD, TQObject *parent = 0, const char *name = 0);
/**
Destructor, closes the socket.
@@ -233,15 +233,15 @@ public:
/**
@since 3.2
- @return The port that this object is connected to. See QSocket::peerPort
+ @return The port that this object is connected to. See TQSocket::peerPort
*/
virtual Q_UINT16 peerPort () const;
/**
@since 3.2
- @return The hostname this object is connected to. See QSocket::peerName.
+ @return The hostname this object is connected to. See TQSocket::peerName.
*/
- virtual QString peerName () const;
+ virtual TQString peerName () const;
/**
@return TRUE as this is a network IO.
@@ -259,18 +259,18 @@ public:
Note: It is not declared as a slot method, since the slot is already
defined in KMessageIO as a virtual method.
*/
- void send (const QByteArray &msg);
+ void send (const TQByteArray &msg);
protected slots:
virtual void processNewData ();
protected:
void initSocket ();
- QSocket *mSocket;
+ TQSocket *mSocket;
bool mAwaitingHeader;
Q_UINT32 mNextBlockLength;
- bool isRecursive; // workaround for "bug" in QSocket, Qt 2.2.3 or older
+ bool isRecursive; // workaround for "bug" in TQSocket, Qt 2.2.3 or older
};
@@ -304,7 +304,7 @@ public:
If that object is already connected, the object remains unconnected.
*/
- KMessageDirect (KMessageDirect *partner = 0, QObject *parent = 0, const char
+ KMessageDirect (KMessageDirect *partner = 0, TQObject *parent = 0, const char
*name = 0);
/**
@@ -339,7 +339,7 @@ public:
Note: It is not declared as a slot method, since the slot is already
defined in KMessageIO as a virtual method.
*/
- void send (const QByteArray &msg);
+ void send (const TQByteArray &msg);
protected:
KMessageDirect *mPartner;
@@ -350,10 +350,10 @@ class KMessageProcess : public KMessageIO
Q_OBJECT
public:
- KMessageProcess(QObject *parent, QString file);
+ KMessageProcess(TQObject *parent, TQString file);
~KMessageProcess();
bool isConnected() const;
- void send (const QByteArray &msg);
+ void send (const TQByteArray &msg);
void writeToProcess();
/**
@@ -375,11 +375,11 @@ class KMessageProcess : public KMessageIO
void slotWroteStdin(KProcess *p);
private:
- QString mProcessName;
+ TQString mProcessName;
KProcess *mProcess;
- QPtrQueue <QByteArray> mQueue;
- QByteArray *mSendBuffer;
- QByteArray mReceiveBuffer;
+ TQPtrQueue <TQByteArray> mQueue;
+ TQByteArray *mSendBuffer;
+ TQByteArray mReceiveBuffer;
unsigned int mReceiveCount;
};
@@ -388,10 +388,10 @@ class KMessageFilePipe : public KMessageIO
Q_OBJECT
public:
- KMessageFilePipe(QObject *parent,QFile *readFile,QFile *writeFile);
+ KMessageFilePipe(TQObject *parent,TQFile *readFile,TQFile *writeFile);
~KMessageFilePipe();
bool isConnected() const;
- void send (const QByteArray &msg);
+ void send (const TQByteArray &msg);
void exec();
/**
@@ -407,9 +407,9 @@ class KMessageFilePipe : public KMessageIO
private:
- QFile *mReadFile;
- QFile *mWriteFile;
- QByteArray mReceiveBuffer;
+ TQFile *mReadFile;
+ TQFile *mWriteFile;
+ TQByteArray mReceiveBuffer;
unsigned int mReceiveCount;
};