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.h45
1 files changed, 25 insertions, 20 deletions
diff --git a/libkdegames/kgame/kmessageio.h b/libkdegames/kgame/kmessageio.h
index 5a102e11..7d4bc92a 100644
--- a/libkdegames/kgame/kmessageio.h
+++ b/libkdegames/kgame/kmessageio.h
@@ -53,15 +53,16 @@ class KProcess;
sides must be within the same process).
*/
-class KMessageIO : public QObject
+class KMessageIO : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* The usual TQObject constructor, does nothing else.
**/
- KMessageIO (TQObject *parent = 0, const char *name = 0);
+ KMessageIO (TQObject *tqparent = 0, const char *name = 0);
/**
* The usual destructor, does nothing special.
@@ -105,24 +106,24 @@ public:
have the same ID number. You have to do so yourself, KMessageIO doesn't
change this value on its own!
*/
- void setId (Q_UINT32 id);
+ void setId (TQ_UINT32 id);
/**
Queries the ID of this object.
*/
- Q_UINT32 id ();
+ TQ_UINT32 id ();
/**
@since 3.2
@return 0 in the default implementation. Reimplemented in @ref KMessageSocket.
*/
- virtual Q_UINT16 peerPort () const { return 0; }
+ virtual TQ_UINT16 peerPort () const { return 0; }
/**
@since 3.2
@return "localhost" in the default implementation. Reimplemented in @ref KMessageSocket
*/
- virtual TQString peerName () const { return TQString::fromLatin1("localhost"); }
+ virtual TQString peerName () const { return TQString::tqfromLatin1("localhost"); }
signals:
@@ -157,7 +158,7 @@ public slots:
virtual void send (const TQByteArray &msg) = 0;
protected:
- Q_UINT32 m_id;
+ TQ_UINT32 m_id;
};
@@ -169,6 +170,7 @@ protected:
class KMessageSocket : public KMessageIO
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -181,7 +183,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 (TQString host, Q_UINT16 port, TQObject *parent = 0,
+ KMessageSocket (TQString host, TQ_UINT16 port, TQObject *tqparent = 0,
const char *name = 0);
/**
@@ -192,7 +194,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 (TQHostAddress host, Q_UINT16 port, TQObject *parent = 0,
+ KMessageSocket (TQHostAddress host, TQ_UINT16 port, TQObject *tqparent = 0,
const char *name = 0);
/**
@@ -203,10 +205,10 @@ public:
Note: The /e socket object is then owned by the /e KMessageSocket object.
So don't use it otherwise any more and don't delete it. It is deleted
- together with this KMessageSocket object. (Use 0 as parent for the QSocket
+ together with this KMessageSocket object. (Use 0 as tqparent for the TQSocket
object t ensure it is not deleted.)
*/
- KMessageSocket (TQSocket *socket, TQObject *parent = 0, const char *name = 0);
+ KMessageSocket (TQSocket *socket, TQObject *tqparent = 0, const char *name = 0);
/**
Uses the socket specified by the socket descriptor socketFD to do the
@@ -219,7 +221,7 @@ public:
manipulate the socket afterwards, especially don't close it. The socket is
automatically closed when KMessageSocket is deleted.
*/
- KMessageSocket (int socketFD, TQObject *parent = 0, const char *name = 0);
+ KMessageSocket (int socketFD, TQObject *tqparent = 0, const char *name = 0);
/**
Destructor, closes the socket.
@@ -235,7 +237,7 @@ public:
@since 3.2
@return The port that this object is connected to. See TQSocket::peerPort
*/
- virtual Q_UINT16 peerPort () const;
+ virtual TQ_UINT16 peerPort () const;
/**
@since 3.2
@@ -268,9 +270,9 @@ protected:
void initSocket ();
TQSocket *mSocket;
bool mAwaitingHeader;
- Q_UINT32 mNextBlockLength;
+ TQ_UINT32 mNextBlockLength;
- bool isRecursive; // workaround for "bug" in TQSocket, Qt 2.2.3 or older
+ bool isRecursive; // workaround for "bug" in TQSocket, TQt 2.2.3 or older
};
@@ -295,6 +297,7 @@ protected:
class KMessageDirect : public KMessageIO
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -304,7 +307,7 @@ public:
If that object is already connected, the object remains unconnected.
*/
- KMessageDirect (KMessageDirect *partner = 0, TQObject *parent = 0, const char
+ KMessageDirect (KMessageDirect *partner = 0, TQObject *tqparent = 0, const char
*name = 0);
/**
@@ -347,10 +350,11 @@ protected:
class KMessageProcess : public KMessageIO
{
- Q_OBJECT
+ Q_OBJECT
+ TQ_OBJECT
public:
- KMessageProcess(TQObject *parent, TQString file);
+ KMessageProcess(TQObject *tqparent, TQString file);
~KMessageProcess();
bool isConnected() const;
void send (const TQByteArray &msg);
@@ -385,10 +389,11 @@ class KMessageProcess : public KMessageIO
class KMessageFilePipe : public KMessageIO
{
- Q_OBJECT
+ Q_OBJECT
+ TQ_OBJECT
public:
- KMessageFilePipe(TQObject *parent,TQFile *readFile,TQFile *writeFile);
+ KMessageFilePipe(TQObject *tqparent,TQFile *readFile,TQFile *writeFile);
~KMessageFilePipe();
bool isConnected() const;
void send (const TQByteArray &msg);