summaryrefslogtreecommitdiffstats
path: root/src/modules/dcc/marshal.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-28 21:15:50 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-01 20:33:17 +0900
commit677dae3bd35bd025d338292a296632d3d2f183e4 (patch)
treea5a9e2839e3a8045686adf8f52a02e4a6b0eb740 /src/modules/dcc/marshal.cpp
parent0066e291146de702674fb38a0a2428db405698b0 (diff)
downloadkvirc-677dae3bd35bd025d338292a296632d3d2f183e4.tar.gz
kvirc-677dae3bd35bd025d338292a296632d3d2f183e4.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 209ac1e561619ff446be4b3411ed74e59fff168e)
Diffstat (limited to 'src/modules/dcc/marshal.cpp')
-rw-r--r--src/modules/dcc/marshal.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/dcc/marshal.cpp b/src/modules/dcc/marshal.cpp
index 0a386eec..ba920ec7 100644
--- a/src/modules/dcc/marshal.cpp
+++ b/src/modules/dcc/marshal.cpp
@@ -123,7 +123,7 @@ int KviDccMarshal::dccListen(const TQString &ip,const TQString &port,bool bUseTi
if(m_pTimeoutTimer)delete m_pTimeoutTimer;
m_pTimeoutTimer = new TQTimer();
- connect(m_pTimeoutTimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(doListen()));
+ connect(m_pTimeoutTimer,TQ_SIGNAL(timeout()),this,TQ_SLOT(doListen()));
m_pTimeoutTimer->start(100,true);
return KviError_success;
@@ -277,7 +277,7 @@ void KviDccMarshal::doListen()
// and setup the READ notifier...
m_pSn = new TQSocketNotifier(m_fd,TQSocketNotifier::Read);
- TQObject::connect(m_pSn,TQT_SIGNAL(activated(int)),this,TQT_SLOT(snActivated(int)));
+ TQObject::connect(m_pSn,TQ_SIGNAL(activated(int)),this,TQ_SLOT(snActivated(int)));
m_pSn->setEnabled(true);
// set the timer
@@ -287,7 +287,7 @@ void KviDccMarshal::doListen()
if(m_bUseTimeout)
{
m_pTimeoutTimer = new TQTimer();
- connect(m_pTimeoutTimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(connectionTimedOut()));
+ connect(m_pTimeoutTimer,TQ_SIGNAL(timeout()),this,TQ_SLOT(connectionTimedOut()));
m_pTimeoutTimer->start(KVI_OPTION_UINT(KviOption_uintDccSocketTimeout) * 1000,true);
}
// and wait for connect
@@ -312,7 +312,7 @@ int KviDccMarshal::dccConnect(const char * ip,const char * port,bool bUseTimeout
if(m_pTimeoutTimer)delete m_pTimeoutTimer;
m_pTimeoutTimer = new TQTimer();
- connect(m_pTimeoutTimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(doConnect()));
+ connect(m_pTimeoutTimer,TQ_SIGNAL(timeout()),this,TQ_SLOT(doConnect()));
m_pTimeoutTimer->start(100,true);
return KviError_success;
@@ -415,7 +415,7 @@ void KviDccMarshal::doConnect()
// and setup the WRITE notifier...
m_pSn = new TQSocketNotifier(m_fd,TQSocketNotifier::Write);
- TQObject::connect(m_pSn,TQT_SIGNAL(activated(int)),this,TQT_SLOT(snActivated(int)));
+ TQObject::connect(m_pSn,TQ_SIGNAL(activated(int)),this,TQ_SLOT(snActivated(int)));
m_pSn->setEnabled(true);
// set the timer
@@ -425,7 +425,7 @@ void KviDccMarshal::doConnect()
if(m_bUseTimeout)
{
m_pTimeoutTimer = new TQTimer();
- connect(m_pTimeoutTimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(connectionTimedOut()));
+ connect(m_pTimeoutTimer,TQ_SIGNAL(timeout()),this,TQ_SLOT(connectionTimedOut()));
m_pTimeoutTimer->start(KVI_OPTION_UINT(KviOption_uintDccSocketTimeout) * 1000,true);
}
@@ -587,12 +587,12 @@ void KviDccMarshal::doSSLHandshake(int)
break;
case KviSSL::WantRead:
m_pSn = new TQSocketNotifier((int)m_fd,TQSocketNotifier::Read);
- TQObject::connect(m_pSn,TQT_SIGNAL(activated(int)),this,TQT_SLOT(doSSLHandshake(int)));
+ TQObject::connect(m_pSn,TQ_SIGNAL(activated(int)),this,TQ_SLOT(doSSLHandshake(int)));
m_pSn->setEnabled(true);
break;
case KviSSL::WantWrite:
m_pSn = new TQSocketNotifier((int)m_fd,TQSocketNotifier::Write);
- TQObject::connect(m_pSn,TQT_SIGNAL(activated(int)),this,TQT_SLOT(doSSLHandshake(int)));
+ TQObject::connect(m_pSn,TQ_SIGNAL(activated(int)),this,TQ_SLOT(doSSLHandshake(int)));
m_pSn->setEnabled(true);
break;
case KviSSL::RemoteEndClosedConnection:
@@ -607,7 +607,7 @@ void KviDccMarshal::doSSLHandshake(int)
{
// can recover ? (EAGAIN , EINTR ?)
m_pSn = new TQSocketNotifier((int)m_fd,TQSocketNotifier::Write);
- TQObject::connect(m_pSn,TQT_SIGNAL(activated(int)),this,TQT_SLOT(doSSLHandshake(int)));
+ TQObject::connect(m_pSn,TQ_SIGNAL(activated(int)),this,TQ_SLOT(doSSLHandshake(int)));
m_pSn->setEnabled(true);
return;
} else {