diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdecore/network/kbufferedsocket.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/network/kbufferedsocket.cpp')
-rw-r--r-- | kdecore/network/kbufferedsocket.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kdecore/network/kbufferedsocket.cpp b/kdecore/network/kbufferedsocket.cpp index 7207a9c4f..52d826c88 100644 --- a/kdecore/network/kbufferedsocket.cpp +++ b/kdecore/network/kbufferedsocket.cpp @@ -24,8 +24,8 @@ #include <config.h> -#include <qmutex.h> -#include <qtimer.h> +#include <tqmutex.h> +#include <tqtimer.h> #include "ksocketdevice.h" #include "ksocketaddress.h" @@ -47,8 +47,8 @@ public: } }; -KBufferedSocket::KBufferedSocket(const QString& host, const QString& service, - QObject *parent, const char *name) +KBufferedSocket::KBufferedSocket(const TQString& host, const TQString& service, + TQObject *parent, const char *name) : KStreamSocket(host, service, parent, name), d(new KBufferedSocketPrivate) { @@ -86,7 +86,7 @@ void KBufferedSocket::close() else { setState(Closing); - QSocketNotifier *n = socketDevice()->readNotifier(); + TQSocketNotifier *n = socketDevice()->readNotifier(); if (n) n->setEnabled(false); emit stateChanged(Closing); @@ -177,7 +177,7 @@ Q_LONG KBufferedSocket::writeBlock(const char *data, Q_ULONG len) resetError(); // enable notifier to send data - QSocketNotifier *n = socketDevice()->writeNotifier(); + TQSocketNotifier *n = socketDevice()->writeNotifier(); if (n) n->setEnabled(true); @@ -200,7 +200,7 @@ void KBufferedSocket::enableRead(bool enable) if (!enable && d->input) { // reenable it - QSocketNotifier *n = socketDevice()->readNotifier(); + TQSocketNotifier *n = socketDevice()->readNotifier(); if (n) n->setEnabled(true); } @@ -208,7 +208,7 @@ void KBufferedSocket::enableRead(bool enable) if (enable && state() != Connected && d->input && !d->input->isEmpty()) // this means the buffer is still dirty // allow the signal to be emitted - QTimer::singleShot(0, this, SLOT(slotReadActivity())); + TQTimer::singleShot(0, this, TQT_SLOT(slotReadActivity())); } void KBufferedSocket::enableWrite(bool enable) @@ -217,7 +217,7 @@ void KBufferedSocket::enableWrite(bool enable) if (!enable && d->output && !d->output->isEmpty()) { // reenable it - QSocketNotifier *n = socketDevice()->writeNotifier(); + TQSocketNotifier *n = socketDevice()->writeNotifier(); if (n) n->setEnabled(true); } @@ -243,7 +243,7 @@ void KBufferedSocket::stateChanging(SocketState newState) void KBufferedSocket::setInputBuffering(bool enable) { - QMutexLocker locker(mutex()); + TQMutexLocker locker(mutex()); if (!enable) { delete d->input; @@ -262,7 +262,7 @@ KIOBufferBase* KBufferedSocket::inputBuffer() void KBufferedSocket::setOutputBuffering(bool enable) { - QMutexLocker locker(mutex()); + TQMutexLocker locker(mutex()); if (!enable) { delete d->output; @@ -302,7 +302,7 @@ bool KBufferedSocket::canReadLine() const return d->input->canReadLine(); } -QCString KBufferedSocket::readLine() +TQCString KBufferedSocket::readLine() { return d->input->readLine(); } @@ -358,7 +358,7 @@ void KBufferedSocket::slotReadActivity() { // buffer isn't empty // keep emitting signals till it is - QTimer::singleShot(0, this, SLOT(slotReadActivity())); + TQTimer::singleShot(0, this, TQT_SLOT(slotReadActivity())); emit readyRead(); } } |