diff options
author | Michele Calgaro <[email protected]> | 2024-01-14 13:10:18 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-14 13:34:26 +0900 |
commit | b0c86264e0cd10a0d3a47de3b05be453d9417bcd (patch) | |
tree | 7ae4535306d69dc4b55f68eae0a65298330ee610 /kbugbuster/backend/smtp.cpp | |
parent | d859a5c1f439fe432dedde763e40b2dad9875354 (diff) | |
download | tdesdk-b0c86264e0cd10a0d3a47de3b05be453d9417bcd.tar.gz tdesdk-b0c86264e0cd10a0d3a47de3b05be453d9417bcd.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kbugbuster/backend/smtp.cpp')
-rw-r--r-- | kbugbuster/backend/smtp.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kbugbuster/backend/smtp.cpp b/kbugbuster/backend/smtp.cpp index 2b5f58e9..5e5bc9da 100644 --- a/kbugbuster/backend/smtp.cpp +++ b/kbugbuster/backend/smtp.cpp @@ -23,12 +23,12 @@ Smtp::Smtp( const TQString &from, const TQStringList &to, { skipReadResponse = false; mSocket = new TQSocket( this ); - connect ( mSocket, TQT_SIGNAL( readyRead() ), - this, TQT_SLOT( readyRead() ) ); - connect ( mSocket, TQT_SIGNAL( connected() ), - this, TQT_SLOT( connected() ) ); - connect ( mSocket, TQT_SIGNAL( error(int) ), - this, TQT_SLOT( socketError(int) ) ); + connect ( mSocket, TQ_SIGNAL( readyRead() ), + this, TQ_SLOT( readyRead() ) ); + connect ( mSocket, TQ_SIGNAL( connected() ), + this, TQ_SLOT( connected() ) ); + connect ( mSocket, TQ_SIGNAL( error(int) ), + this, TQ_SLOT( socketError(int) ) ); message = aMessage; @@ -98,7 +98,7 @@ void Smtp::socketError(int errorCode) default: responseLine = i18n( "Internal error, unrecognized error." ); } - TQTimer::singleShot( 0, this, TQT_SLOT(emitError()) ); + TQTimer::singleShot( 0, this, TQ_SLOT(emitError()) ); } void Smtp::emitError() { @@ -147,7 +147,7 @@ void Smtp::readyRead() *t << message << seperator << ".\r\n"; state = smtpSuccess; } else if ( state == smtpSuccess && responseLine[0] == '2' ) { - TQTimer::singleShot( 0, this, TQT_SIGNAL(success()) ); + TQTimer::singleShot( 0, this, TQ_SIGNAL(success()) ); } else if ( state == smtpQuit && responseLine[0] == '2' ) { command = "QUIT"; *t << "QUIT\r\n"; @@ -157,7 +157,7 @@ void Smtp::readyRead() } else if ( state == smtpClose ) { // we ignore it } else { // error occurred - TQTimer::singleShot( 0, this, TQT_SLOT(emitError()) ); + TQTimer::singleShot( 0, this, TQ_SLOT(emitError()) ); state = smtpClose; } @@ -168,7 +168,7 @@ void Smtp::readyRead() t = 0; delete mSocket; mSocket = 0; - TQTimer::singleShot( 0, this, TQT_SLOT(deleteMe()) ); + TQTimer::singleShot( 0, this, TQ_SLOT(deleteMe()) ); } } |