summaryrefslogtreecommitdiffstats
path: root/tdecore/network/kbufferedsocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/network/kbufferedsocket.h')
-rw-r--r--tdecore/network/kbufferedsocket.h29
1 files changed, 6 insertions, 23 deletions
diff --git a/tdecore/network/kbufferedsocket.h b/tdecore/network/kbufferedsocket.h
index 60ad3e81d..641d35cd1 100644
--- a/tdecore/network/kbufferedsocket.h
+++ b/tdecore/network/kbufferedsocket.h
@@ -1,4 +1,4 @@
-/* -*- C++ -*-
+/*
* Copyright (C) 2003 Thiago Macieira <thiago@kde.org>
*
*
@@ -57,7 +57,7 @@ class TDEBufferedSocketPrivate;
*/
class TDECORE_EXPORT TDEBufferedSocket: public KStreamSocket
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -99,12 +99,7 @@ public:
/**
* Make use of the buffers.
*/
-#ifdef USE_QT3
virtual TQ_LONG bytesAvailable() const;
-#endif
-#ifdef USE_QT4
- virtual qint64 bytesAvailable() const;
-#endif
/**
* Make use of buffers.
@@ -114,7 +109,7 @@ public:
/**
* Reads data from the socket. Make use of buffers.
*/
- virtual TQT_TQIO_LONG tqreadBlock(char *data, TQT_TQIO_ULONG maxlen);
+ virtual TQ_LONG readBlock(char *data, TQ_ULONG maxlen);
/**
* @overload
@@ -122,7 +117,7 @@ public:
*
* The @p from parameter is always set to @ref peerAddress()
*/
- virtual TQT_TQIO_LONG tqreadBlock(char *data, TQT_TQIO_ULONG maxlen, TDESocketAddress& from);
+ virtual TQ_LONG readBlock(char *data, TQ_ULONG maxlen, TDESocketAddress& from);
/**
* Peeks data from the socket.
@@ -140,7 +135,7 @@ public:
/**
* Writes data to the socket.
*/
- virtual TQT_TQIO_LONG tqwriteBlock(const char *data, TQT_TQIO_ULONG len);
+ virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len);
/**
* @overload
@@ -148,7 +143,7 @@ public:
*
* The @p to parameter is discarded.
*/
- virtual TQT_TQIO_LONG tqwriteBlock(const char *data, TQT_TQIO_ULONG len, const TDESocketAddress& to);
+ virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len, const TDESocketAddress& to);
/**
* Catch changes.
@@ -183,12 +178,7 @@ public:
/**
* Returns the length of the output buffer.
*/
-#ifdef USE_QT3
virtual TQ_ULONG bytesToWrite() const;
-#endif
-#ifdef USE_QT4
- virtual qint64 bytesToWrite() const;
-#endif
/**
* Closes the socket and discards any output data that had been buffered
@@ -208,8 +198,6 @@ public:
*/
TQCString readLine();
- // KDE4: make virtual, add timeout to match the Qt4 signature
- // and move to another class up the hierarchy
/**
* Blocks until the connection is either established, or completely
* failed.
@@ -255,12 +243,7 @@ public:
* which required a call to reset() in order to be able to connect again
* using the same device. This is not necessary in TDEBufferedSocket any more.
*/
-#ifdef USE_QT3
inline void reset()
-#endif
-#ifdef USE_QT4
- inline bool reset()
-#endif
{ closeNow(); }
};