diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:30:47 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:30:47 -0600 |
commit | cc74f360bb40da3d79f58048f8e8611804980aa6 (patch) | |
tree | c4385d2c16b904757b1c8bb998a4aec6993373f7 /kioslave/smtp/smtp.cc | |
parent | 79b21d47bce1ee428affc97534cd8b257232a871 (diff) | |
download | tdebase-cc74f360bb40da3d79f58048f8e8611804980aa6.tar.gz tdebase-cc74f360bb40da3d79f58048f8e8611804980aa6.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kioslave/smtp/smtp.cc')
-rw-r--r-- | kioslave/smtp/smtp.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kioslave/smtp/smtp.cc b/kioslave/smtp/smtp.cc index 55352aed6..b1effa415 100644 --- a/kioslave/smtp/smtp.cc +++ b/kioslave/smtp/smtp.cc @@ -170,7 +170,7 @@ void SMTPProtocol::special( const TQByteArray & aData ) { if ( !execute( Command::NOOP ) ) return; } else { - error( KIO::ERR_INTERNAL, + error( TDEIO::ERR_INTERNAL, i18n("The application sent an invalid request.") ); return; } @@ -233,14 +233,14 @@ void SMTPProtocol::put(const KURL & url, int /*permissions */ , if ( !from.isNull() ) request.setFromAddress( from ); else if ( request.emitHeaders() ) { - error(KIO::ERR_NO_CONTENT, i18n("The sender address is missing.")); + error(TDEIO::ERR_NO_CONTENT, i18n("The sender address is missing.")); return; } } if ( !smtp_open( request.heloHostname() ) ) { - error(KIO::ERR_SERVICE_NOT_AVAILABLE, + error(TDEIO::ERR_SERVICE_NOT_AVAILABLE, i18n("SMTPProtocol::smtp_open failed (%1)") // ### better error message? .arg(open_url.path())); return; @@ -248,7 +248,7 @@ void SMTPProtocol::put(const KURL & url, int /*permissions */ , if ( request.is8BitBody() && !haveCapability("8BITMIME") && metaData("8bitmime") != "on" ) { - error( KIO::ERR_SERVICE_NOT_AVAILABLE, + error( TDEIO::ERR_SERVICE_NOT_AVAILABLE, i18n("Your server does not support sending of 8-bit messages.\n" "Please use base64 or quoted-printable encoding.") ); return; @@ -290,7 +290,7 @@ bool SMTPProtocol::sendCommandLine( const TQCString & cmdline ) { kdDebug( 7112) << "C: <" << cmdline.length() << " bytes>" << endl; ssize_t cmdline_len = cmdline.length(); if ( write( cmdline.data(), cmdline_len ) != cmdline_len ) { - error( KIO::ERR_COULD_NOT_WRITE, m_sServer ); + error( TDEIO::ERR_COULD_NOT_WRITE, m_sServer ); return false; } return true; @@ -308,14 +308,14 @@ Response SMTPProtocol::getResponse( bool * ok ) { do { // wait for data... if ( !waitForResponse( 600 ) ) { - error( KIO::ERR_SERVER_TIMEOUT, m_sServer ); + error( TDEIO::ERR_SERVER_TIMEOUT, m_sServer ); return response; } // ...read data... recv_len = readLine( buf, sizeof(buf) - 1 ); if ( recv_len < 1 && !isConnectionValid() ) { - error( KIO::ERR_CONNECTION_BROKEN, m_sServer ); + error( TDEIO::ERR_CONNECTION_BROKEN, m_sServer ); return response; } @@ -328,7 +328,7 @@ Response SMTPProtocol::getResponse( bool * ok ) { } while ( !response.isComplete() && response.isWellFormed() ); if ( !response.isValid() ) { - error( KIO::ERR_NO_CONTENT, i18n("Invalid SMTP response (%1) received.").arg(response.code()) ); + error( TDEIO::ERR_NO_CONTENT, i18n("Invalid SMTP response (%1) received.").arg(response.code()) ); return response; } @@ -514,7 +514,7 @@ bool SMTPProtocol::smtp_open(const TQString& fakeHostname) if ( !ok || !greeting.isOk() ) { if ( ok ) - error( KIO::ERR_COULD_NOT_LOGIN, + error( TDEIO::ERR_COULD_NOT_LOGIN, i18n("The server did not accept the connection.\n" "%1").arg( greeting.errorMessage() ) ); smtp_close(); @@ -528,7 +528,7 @@ bool SMTPProtocol::smtp_open(const TQString& fakeHostname) else { TQString tmpPort; - KSocketAddress* addr = KExtendedSocket::localAddress(m_iSock); + TDESocketAddress* addr = KExtendedSocket::localAddress(m_iSock); // perform name lookup. NI_NAMEREQD means: don't return a numeric // value (we need to know when we get have the IP address, so we // can enclose it in sqaure brackets (domain-literal). Failure to @@ -587,7 +587,7 @@ bool SMTPProtocol::authenticate() if ( (m_sUser.isEmpty() || !haveCapability( "AUTH" )) && metaData( "sasl" ).isEmpty() ) return true; - KIO::AuthInfo authInfo; + TDEIO::AuthInfo authInfo; authInfo.username = m_sUser; authInfo.password = m_sPass; authInfo.prompt = i18n("Username and password for your SMTP account:"); @@ -642,6 +642,6 @@ void SMTPProtocol::smtp_close( bool nice ) { void SMTPProtocol::stat(const KURL & url) { TQString path = url.path(); - error(KIO::ERR_DOES_NOT_EXIST, url.path()); + error(TDEIO::ERR_DOES_NOT_EXIST, url.path()); } |