summaryrefslogtreecommitdiffstats
path: root/quanta/components/debugger/dbgp/dbgpnetwork.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/components/debugger/dbgp/dbgpnetwork.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/components/debugger/dbgp/dbgpnetwork.cpp')
-rw-r--r--quanta/components/debugger/dbgp/dbgpnetwork.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/quanta/components/debugger/dbgp/dbgpnetwork.cpp b/quanta/components/debugger/dbgp/dbgpnetwork.cpp
index 8ef82c2d..62b0daa0 100644
--- a/quanta/components/debugger/dbgp/dbgpnetwork.cpp
+++ b/quanta/components/debugger/dbgp/dbgpnetwork.cpp
@@ -25,7 +25,7 @@
#include <klocale.h>
DBGpNetwork::DBGpNetwork()
-: QObject()
+: TQObject()
{
m_socket = NULL;
m_server = NULL;
@@ -37,7 +37,7 @@ DBGpNetwork::~DBGpNetwork()
{
}
-void DBGpNetwork::sessionStart(bool useproxy, const QString& server, const QString & service)
+void DBGpNetwork::sessionStart(bool useproxy, const TQString& server, const TQString & service)
{
kdDebug(24002) << k_funcinfo << ", m_server: " << m_server << ", m_socket" << m_socket << endl;
@@ -48,11 +48,11 @@ void DBGpNetwork::sessionStart(bool useproxy, const QString& server, const QStri
if(m_socket)
{
// m_socket->setBufferSize(-1);
- connect(m_socket, SIGNAL(gotError(int)), this, SLOT(slotError(int)));
- connect(m_socket, SIGNAL(connected(const KResolverEntry &)), this, SLOT(slotConnected(const KNetwork::KResolverEntry &)));
- connect(m_socket, SIGNAL(closed()), this, SLOT(slotConnectionClosed()));
- connect(m_socket, SIGNAL(readyRead()), this, SLOT(slotReadyRead()));
- connect(m_socket, SIGNAL(destroyed()), this, SLOT(slotSocketDestroyed()));
+ connect(m_socket, TQT_SIGNAL(gotError(int)), this, TQT_SLOT(slotError(int)));
+ connect(m_socket, TQT_SIGNAL(connected(const KResolverEntry &)), this, TQT_SLOT(slotConnected(const KNetwork::KResolverEntry &)));
+ connect(m_socket, TQT_SIGNAL(closed()), this, TQT_SLOT(slotConnectionClosed()));
+ connect(m_socket, TQT_SIGNAL(readyRead()), this, TQT_SLOT(slotReadyRead()));
+ connect(m_socket, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotSocketDestroyed()));
m_socket->connect();
emit active(false);
kdDebug(24002) << k_funcinfo << ", proxy:" << server << ", " << service << endl;
@@ -65,8 +65,8 @@ void DBGpNetwork::sessionStart(bool useproxy, const QString& server, const QStri
m_server = new KNetwork::KServerSocket(service);
m_server->setAddressReuseable(true);
- connect(m_server, SIGNAL(readyAccept()), this, SLOT(slotReadyAccept()));
- connect(m_server, SIGNAL(gotError(int)), this, SLOT(slotError(int)));
+ connect(m_server, TQT_SIGNAL(readyAccept()), this, TQT_SLOT(slotReadyAccept()));
+ connect(m_server, TQT_SIGNAL(gotError(int)), this, TQT_SLOT(slotError(int)));
if(m_server->listen())
{
@@ -91,7 +91,7 @@ void DBGpNetwork::sessionEnd()
if(m_socket)
{
m_socket->flush();
- disconnect(m_socket, SIGNAL(closed()), this, SLOT(slotConnectionClosed()));
+ disconnect(m_socket, TQT_SIGNAL(closed()), this, TQT_SLOT(slotConnectionClosed()));
if (m_socket)
m_socket->close();
delete m_socket;
@@ -146,7 +146,7 @@ void DBGpNetwork::slotReadyAccept()
kdDebug(24002) << k_funcinfo << ", m_server: " << m_server << ", m_socket" << m_socket << endl;
if(!m_socket)
{
- disconnect(m_server, SIGNAL(readyAccept()), this, SLOT(slotReadyAccept()));
+ disconnect(m_server, TQT_SIGNAL(readyAccept()), this, TQT_SLOT(slotReadyAccept()));
m_socket = (KNetwork::KStreamSocket *)m_server->accept(); // KSocketServer returns a KStreamSocket (!)
if(m_socket)
@@ -156,10 +156,10 @@ void DBGpNetwork::slotReadyAccept()
m_socket->setAddressReuseable(true);
// m_socket->setSocketFlags(KExtendedSocket::inetSocket | KExtendedSocket::inputBufferedSocket);
// m_socket->setBufferSize(-1);
- connect(m_socket, SIGNAL(gotError(int)), this, SLOT(slotError(int)));
- connect(m_socket, SIGNAL(connected(const KResolverEntry &)), this, SLOT(slotConnected(const KResolverEntry &)));
- connect(m_socket, SIGNAL(closed()), this, SLOT(slotConnectionClosed()));
- connect(m_socket, SIGNAL(readyRead()), this, SLOT(slotReadyRead()));
+ connect(m_socket, TQT_SIGNAL(gotError(int)), this, TQT_SLOT(slotError(int)));
+ connect(m_socket, TQT_SIGNAL(connected(const KResolverEntry &)), this, TQT_SLOT(slotConnected(const KResolverEntry &)));
+ connect(m_socket, TQT_SIGNAL(closed()), this, TQT_SLOT(slotConnectionClosed()));
+ connect(m_socket, TQT_SIGNAL(readyRead()), this, TQT_SLOT(slotReadyRead()));
connected();
}
else
@@ -215,7 +215,7 @@ void DBGpNetwork::slotConnectionClosed()
}
if(m_server)
- connect(m_server, SIGNAL(readyAccept()), this, SLOT(slotReadyAccept()));
+ connect(m_server, TQT_SIGNAL(readyAccept()), this, TQT_SLOT(slotReadyAccept()));
// Disable all session related actions and enable connection action
emit connected(false);
@@ -242,7 +242,7 @@ void DBGpNetwork::slotReadyRead()
while(m_socket && (m_socket->bytesAvailable() > 0 || m_fifo.length() >= (unsigned long)m_datalen))
{
int bytes;
- QString data;
+ TQString data;
if(m_socket && m_socket->bytesAvailable() > 0 )
{
@@ -282,18 +282,18 @@ void DBGpNetwork::slotReadyRead()
}
}
-long DBGpNetwork::sendCommand(const QString & command)
+long DBGpNetwork::sendCommand(const TQString & command)
{
return sendCommand(command, "");
}
-long DBGpNetwork::sendCommand(const QString & command, const QString & arguments)
+long DBGpNetwork::sendCommand(const TQString & command, const TQString & arguments)
{
if(!isConnected())
return false;
m_transaction_id++;
- QString commandline = command + QString(" -i %1").arg(m_transaction_id) + (!arguments.isEmpty() ? " " : "") + arguments;
+ TQString commandline = command + TQString(" -i %1").arg(m_transaction_id) + (!arguments.isEmpty() ? " " : "") + arguments;
kdDebug(24002) << k_funcinfo << ", sending: " << commandline << endl;
@@ -302,7 +302,7 @@ long DBGpNetwork::sendCommand(const QString & command, const QString & arguments
return m_transaction_id;
}
-long DBGpNetwork::sendCommand( const QString & command, const QString & arguments, const QString & data )
+long DBGpNetwork::sendCommand( const TQString & command, const TQString & arguments, const TQString & data )
{
QByteArrayFifo buffer;
buffer.append(data.ascii(), data.length());