diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-28 21:15:50 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-01 18:03:34 +0900 |
| commit | 209ac1e561619ff446be4b3411ed74e59fff168e (patch) | |
| tree | 83b384cf0c4dfb918b3a4c39b4333f33e0f2f387 /src/modules/dcc/marshal.cpp | |
| parent | 44846083311d49d75e8376326d29f7f34e1dae52 (diff) | |
| download | kvirc-209ac1e561619ff446be4b3411ed74e59fff168e.tar.gz kvirc-209ac1e561619ff446be4b3411ed74e59fff168e.zip | |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/dcc/marshal.cpp')
| -rw-r--r-- | src/modules/dcc/marshal.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/dcc/marshal.cpp b/src/modules/dcc/marshal.cpp index 0a386ee..ba920ec 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 { |
