summaryrefslogtreecommitdiffstats
path: root/kmail/kmtransport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmtransport.cpp')
-rw-r--r--kmail/kmtransport.cpp256
1 files changed, 128 insertions, 128 deletions
diff --git a/kmail/kmtransport.cpp b/kmail/kmtransport.cpp
index 60e56d190..690329715 100644
--- a/kmail/kmtransport.cpp
+++ b/kmail/kmtransport.cpp
@@ -22,16 +22,16 @@
#include "kmtransport.h"
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
#include <klineedit.h>
-#include <qradiobutton.h>
-#include <qtabwidget.h>
-#include <qvalidator.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qwhatsthis.h>
+#include <tqradiobutton.h>
+#include <tqtabwidget.h>
+#include <tqvalidator.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqwhatsthis.h>
#include <kfiledialog.h>
#include <klocale.h>
@@ -67,7 +67,7 @@ KMTransportInfo::~KMTransportInfo()
void KMTransportInfo::readConfig(int id)
{
KConfig *config = KMKernel::config();
- KConfigGroupSaver saver(config, "Transport " + QString::number(id));
+ KConfigGroupSaver saver(config, "Transport " + TQString::number(id));
mId = config->readUnsignedNumEntry( "id", 0 );
type = config->readEntry("type", "smtp");
name = config->readEntry("name", i18n("Unnamed"));
@@ -106,7 +106,7 @@ void KMTransportInfo::readConfig(int id)
void KMTransportInfo::writeConfig(int id)
{
KConfig *config = KMKernel::config();
- KConfigGroupSaver saver(config, "Transport " + QString::number(id));
+ KConfigGroupSaver saver(config, "Transport " + TQString::number(id));
if (!mId)
mId = TransportManager::createId();
config->writeEntry("id", mId);
@@ -128,7 +128,7 @@ void KMTransportInfo::writeConfig(int id)
bool passwdStored = false;
Wallet *wallet = kmkernel->wallet();
if ( mPasswdDirty ) {
- if ( wallet && wallet->writePassword( "transport-" + QString::number(mId), passwd() ) == 0 ) {
+ if ( wallet && wallet->writePassword( "transport-" + TQString::number(mId), passwd() ) == 0 ) {
passwdStored = true;
mPasswdDirty = false;
mStorePasswdInConfig = false;
@@ -158,46 +158,46 @@ void KMTransportInfo::writeConfig(int id)
// delete already stored password if password storage is disabled
if ( !storePasswd() ) {
if ( !Wallet::keyDoesNotExist(
- Wallet::NetworkWallet(), "kmail", "transport-" + QString::number(mId) ) ) {
+ Wallet::NetworkWallet(), "kmail", "transport-" + TQString::number(mId) ) ) {
Wallet *wallet = kmkernel->wallet();
if ( wallet )
- wallet->removeEntry( "transport-" + QString::number(mId) );
+ wallet->removeEntry( "transport-" + TQString::number(mId) );
}
config->deleteEntry( "pass" );
}
}
-int KMTransportInfo::findTransport(const QString &name)
+int KMTransportInfo::findTransport(const TQString &name)
{
KConfig *config = KMKernel::config();
KConfigGroupSaver saver(config, "General");
int numTransports = config->readNumEntry("transports", 0);
for (int i = 1; i <= numTransports; i++)
{
- KConfigGroupSaver saver(config, "Transport " + QString::number(i));
+ KConfigGroupSaver saver(config, "Transport " + TQString::number(i));
if (config->readEntry("name") == name) return i;
}
return 0;
}
-QStringList KMTransportInfo::availableTransports()
+TQStringList KMTransportInfo::availableTransports()
{
- QStringList result;
+ TQStringList result;
KConfig *config = KMKernel::config();
KConfigGroupSaver saver(config, "General");
int numTransports = config->readNumEntry("transports", 0);
for (int i = 1; i <= numTransports; i++)
{
- KConfigGroupSaver saver(config, "Transport " + QString::number(i));
+ KConfigGroupSaver saver(config, "Transport " + TQString::number(i));
result.append(config->readEntry("name"));
}
return result;
}
-QString KMTransportInfo::passwd() const
+TQString KMTransportInfo::passwd() const
{
if ( auth && storePasswd() && mPasswd.isEmpty() )
readPassword();
@@ -205,7 +205,7 @@ QString KMTransportInfo::passwd() const
}
-void KMTransportInfo::setPasswd( const QString &passwd )
+void KMTransportInfo::setPasswd( const TQString &passwd )
{
if ( passwd != mPasswd ) {
mPasswd = passwd;
@@ -231,35 +231,35 @@ void KMTransportInfo::readPassword() const
// results for new entries without closing and reopening the wallet
if ( Wallet::isOpen( Wallet::NetworkWallet() ) ) {
Wallet* wallet = kmkernel->wallet();
- if ( !wallet || !wallet->hasEntry( "transport-" + QString::number(mId) ) )
+ if ( !wallet || !wallet->hasEntry( "transport-" + TQString::number(mId) ) )
return;
} else {
- if ( Wallet::keyDoesNotExist( Wallet::NetworkWallet(), "kmail", "transport-" + QString::number(mId) ) )
+ if ( Wallet::keyDoesNotExist( Wallet::NetworkWallet(), "kmail", "transport-" + TQString::number(mId) ) )
return;
}
if ( kmkernel->wallet() )
- kmkernel->wallet()->readPassword( "transport-" + QString::number(mId), mPasswd );
+ kmkernel->wallet()->readPassword( "transport-" + TQString::number(mId), mPasswd );
}
-KMTransportSelDlg::KMTransportSelDlg( QWidget *parent, const char *name,
+KMTransportSelDlg::KMTransportSelDlg( TQWidget *parent, const char *name,
bool modal )
: KDialogBase( parent, name, modal, i18n("Add Transport"), Ok|Cancel, Ok )
{
- QFrame *page = makeMainWidget();
- QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() );
+ TQFrame *page = makeMainWidget();
+ TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, spacingHint() );
- QButtonGroup *group = new QButtonGroup( i18n("Transport"), page );
- connect(group, SIGNAL(clicked(int)), SLOT(buttonClicked(int)) );
+ TQButtonGroup *group = new TQButtonGroup( i18n("Transport"), page );
+ connect(group, TQT_SIGNAL(clicked(int)), TQT_SLOT(buttonClicked(int)) );
topLayout->addWidget( group, 10 );
- QVBoxLayout *vlay = new QVBoxLayout( group, spacingHint()*2, spacingHint() );
+ TQVBoxLayout *vlay = new TQVBoxLayout( group, spacingHint()*2, spacingHint() );
vlay->addSpacing( fontMetrics().lineSpacing() );
- QRadioButton *radioButton1 = new QRadioButton( i18n("SM&TP"), group );
+ TQRadioButton *radioButton1 = new TQRadioButton( i18n("SM&TP"), group );
vlay->addWidget( radioButton1 );
- QRadioButton *radioButton2 = new QRadioButton( i18n("&Sendmail"), group );
+ TQRadioButton *radioButton2 = new TQRadioButton( i18n("&Sendmail"), group );
vlay->addWidget( radioButton2 );
vlay->addStretch( 10 );
@@ -280,9 +280,9 @@ int KMTransportSelDlg::selected( void ) const
}
-KMTransportDialog::KMTransportDialog( const QString & caption,
+KMTransportDialog::KMTransportDialog( const TQString & caption,
KMTransportInfo *transportInfo,
- QWidget *parent, const char *name,
+ TQWidget *parent, const char *name,
bool modal )
: KDialogBase( parent, name, modal, caption, Ok|Cancel, Ok, true ),
mServerTest( 0 ),
@@ -291,7 +291,7 @@ KMTransportDialog::KMTransportDialog( const QString & caption,
{
assert(transportInfo != 0);
- if( transportInfo->type == QString::fromLatin1("sendmail") )
+ if( transportInfo->type == TQString::fromLatin1("sendmail") )
{
makeSendmailPage();
} else {
@@ -309,109 +309,109 @@ KMTransportDialog::~KMTransportDialog()
void KMTransportDialog::makeSendmailPage()
{
- QFrame *page = makeMainWidget();
- QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() );
+ TQFrame *page = makeMainWidget();
+ TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, spacingHint() );
- mSendmail.titleLabel = new QLabel( page );
+ mSendmail.titleLabel = new TQLabel( page );
mSendmail.titleLabel->setText( i18n("Transport: Sendmail") );
- QFont titleFont( mSendmail.titleLabel->font() );
+ TQFont titleFont( mSendmail.titleLabel->font() );
titleFont.setBold( true );
mSendmail.titleLabel->setFont( titleFont );
topLayout->addWidget( mSendmail.titleLabel );
KSeparator *hline = new KSeparator( KSeparator::HLine, page);
topLayout->addWidget( hline );
- QGridLayout *grid = new QGridLayout( topLayout, 3, 3, spacingHint() );
+ TQGridLayout *grid = new TQGridLayout( topLayout, 3, 3, spacingHint() );
grid->addColSpacing( 1, fontMetrics().maxWidth()*15 );
grid->setRowStretch( 2, 10 );
grid->setColStretch( 1, 10 );
- QLabel *label = new QLabel( i18n("&Name:"), page );
+ TQLabel *label = new TQLabel( i18n("&Name:"), page );
grid->addWidget( label, 0, 0 );
mSendmail.nameEdit = new KLineEdit( page );
label->setBuddy( mSendmail.nameEdit );
grid->addWidget( mSendmail.nameEdit, 0, 1 );
- label = new QLabel( i18n("&Location:"), page );
+ label = new TQLabel( i18n("&Location:"), page );
grid->addWidget( label, 1, 0 );
mSendmail.locationEdit = new KLineEdit( page );
label->setBuddy(mSendmail.locationEdit);
grid->addWidget( mSendmail.locationEdit, 1, 1 );
mSendmail.chooseButton =
- new QPushButton( i18n("Choos&e..."), page );
- connect( mSendmail.chooseButton, SIGNAL(clicked()),
- this, SLOT(slotSendmailChooser()) );
+ new TQPushButton( i18n("Choos&e..."), page );
+ connect( mSendmail.chooseButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotSendmailChooser()) );
- connect( mSendmail.locationEdit, SIGNAL(textChanged ( const QString & )),
- this, SLOT(slotSendmailEditPath(const QString &)) );
+ connect( mSendmail.locationEdit, TQT_SIGNAL(textChanged ( const TQString & )),
+ this, TQT_SLOT(slotSendmailEditPath(const TQString &)) );
mSendmail.chooseButton->setAutoDefault( false );
grid->addWidget( mSendmail.chooseButton, 1, 2 );
slotSendmailEditPath(mSendmail.locationEdit->text());
}
-void KMTransportDialog::slotSendmailEditPath(const QString & _text)
+void KMTransportDialog::slotSendmailEditPath(const TQString & _text)
{
enableButtonOK( !_text.isEmpty() );
}
void KMTransportDialog::makeSmtpPage()
{
- QFrame *page = makeMainWidget();
- QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() );
+ TQFrame *page = makeMainWidget();
+ TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, spacingHint() );
- mSmtp.titleLabel = new QLabel( page );
+ mSmtp.titleLabel = new TQLabel( page );
mSmtp.titleLabel->setText( i18n("Transport: SMTP") );
- QFont titleFont( mSmtp.titleLabel->font() );
+ TQFont titleFont( mSmtp.titleLabel->font() );
titleFont.setBold( true );
mSmtp.titleLabel->setFont( titleFont );
topLayout->addWidget( mSmtp.titleLabel );
KSeparator *hline = new KSeparator( KSeparator::HLine, page);
topLayout->addWidget( hline );
- QTabWidget *tabWidget = new QTabWidget(page);
+ TQTabWidget *tabWidget = new TQTabWidget(page);
topLayout->addWidget( tabWidget );
- QWidget *page1 = new QWidget( tabWidget );
+ TQWidget *page1 = new TQWidget( tabWidget );
tabWidget->addTab( page1, i18n("&General") );
- QGridLayout *grid = new QGridLayout( page1, 14, 2, spacingHint() );
+ TQGridLayout *grid = new TQGridLayout( page1, 14, 2, spacingHint() );
grid->addColSpacing( 1, fontMetrics().maxWidth()*15 );
grid->setRowStretch( 13, 10 );
grid->setColStretch( 1, 10 );
- QLabel *label = new QLabel( i18n("&Name:"), page1 );
+ TQLabel *label = new TQLabel( i18n("&Name:"), page1 );
grid->addWidget( label, 0, 0 );
mSmtp.nameEdit = new KLineEdit( page1 );
- QWhatsThis::add(mSmtp.nameEdit,
+ TQWhatsThis::add(mSmtp.nameEdit,
i18n("The name that KMail will use when "
"referring to this server."));
label->setBuddy( mSmtp.nameEdit );
grid->addWidget( mSmtp.nameEdit, 0, 1 );
- label = new QLabel( i18n("&Host:"), page1 );
+ label = new TQLabel( i18n("&Host:"), page1 );
grid->addWidget( label, 3, 0 );
mSmtp.hostEdit = new KLineEdit( page1 );
- QWhatsThis::add(mSmtp.hostEdit,
+ TQWhatsThis::add(mSmtp.hostEdit,
i18n("The domain name or numerical address "
"of the SMTP server."));
label->setBuddy( mSmtp.hostEdit );
grid->addWidget( mSmtp.hostEdit, 3, 1 );
- label = new QLabel( i18n("&Port:"), page1 );
+ label = new TQLabel( i18n("&Port:"), page1 );
grid->addWidget( label, 4, 0 );
mSmtp.portEdit = new KLineEdit( page1 );
- mSmtp.portEdit->setValidator( new QIntValidator(this) );
- QWhatsThis::add(mSmtp.portEdit,
+ mSmtp.portEdit->setValidator( new TQIntValidator(this) );
+ TQWhatsThis::add(mSmtp.portEdit,
i18n("The port number that the SMTP server "
"is listening on. The default port is 25."));
label->setBuddy( mSmtp.portEdit );
grid->addWidget( mSmtp.portEdit, 4, 1 );
- label = new QLabel( i18n("Preco&mmand:"), page1 );
+ label = new TQLabel( i18n("Preco&mmand:"), page1 );
grid->addWidget( label, 5, 0 );
mSmtp.precommand = new KLineEdit( page1 );
- QWhatsThis::add(mSmtp.precommand,
+ TQWhatsThis::add(mSmtp.precommand,
i18n("A command to run locally, prior "
"to sending email. This can be used "
"to set up ssh tunnels, for example. "
@@ -419,43 +419,43 @@ void KMTransportDialog::makeSmtpPage()
label->setBuddy(mSmtp.precommand);
grid->addWidget( mSmtp.precommand, 5, 1 );
- QFrame* line = new QFrame( page1 );
- line->setFrameStyle( QFrame::HLine | QFrame::Plain );
+ TQFrame* line = new TQFrame( page1 );
+ line->setFrameStyle( TQFrame::HLine | TQFrame::Plain );
grid->addMultiCellWidget( line, 6, 6, 0, 1 );
mSmtp.authCheck =
- new QCheckBox( i18n("Server &requires authentication"), page1 );
- QWhatsThis::add(mSmtp.authCheck,
+ new TQCheckBox( i18n("Server &requires authentication"), page1 );
+ TQWhatsThis::add(mSmtp.authCheck,
i18n("Check this option if your SMTP server "
"requires authentication before accepting "
"mail. This is known as "
"'Authenticated SMTP' or simply ASMTP."));
- connect(mSmtp.authCheck, SIGNAL(clicked()),
- SLOT(slotRequiresAuthClicked()));
+ connect(mSmtp.authCheck, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotRequiresAuthClicked()));
grid->addMultiCellWidget( mSmtp.authCheck, 7, 7, 0, 1 );
- mSmtp.loginLabel = new QLabel( i18n("&Login:"), page1 );
+ mSmtp.loginLabel = new TQLabel( i18n("&Login:"), page1 );
grid->addWidget( mSmtp.loginLabel, 8, 0 );
mSmtp.loginEdit = new KLineEdit( page1 );
mSmtp.loginLabel->setBuddy( mSmtp.loginEdit );
- QWhatsThis::add(mSmtp.loginEdit,
+ TQWhatsThis::add(mSmtp.loginEdit,
i18n("The user name to send to the server "
"for authorization"));
grid->addWidget( mSmtp.loginEdit, 8, 1 );
- mSmtp.passwordLabel = new QLabel( i18n("P&assword:"), page1 );
+ mSmtp.passwordLabel = new TQLabel( i18n("P&assword:"), page1 );
grid->addWidget( mSmtp.passwordLabel, 9, 0 );
mSmtp.passwordEdit = new KLineEdit( page1 );
- mSmtp.passwordEdit->setEchoMode( QLineEdit::Password );
+ mSmtp.passwordEdit->setEchoMode( TQLineEdit::Password );
mSmtp.passwordLabel->setBuddy( mSmtp.passwordEdit );
- QWhatsThis::add(mSmtp.passwordEdit,
+ TQWhatsThis::add(mSmtp.passwordEdit,
i18n("The password to send to the server "
"for authorization"));
grid->addWidget( mSmtp.passwordEdit, 9, 1 );
mSmtp.storePasswordCheck =
- new QCheckBox( i18n("&Store SMTP password"), page1 );
- QWhatsThis::add(mSmtp.storePasswordCheck,
+ new TQCheckBox( i18n("&Store SMTP password"), page1 );
+ TQWhatsThis::add(mSmtp.storePasswordCheck,
i18n("Check this option to have KMail store "
"the password.\nIf KWallet is available "
"the password will be stored there which is considered "
@@ -467,14 +467,14 @@ void KMTransportDialog::makeSmtpPage()
"if access to the configuration file is obtained."));
grid->addMultiCellWidget( mSmtp.storePasswordCheck, 10, 10, 0, 1 );
- line = new QFrame( page1 );
- line->setFrameStyle( QFrame::HLine | QFrame::Plain );
+ line = new TQFrame( page1 );
+ line->setFrameStyle( TQFrame::HLine | TQFrame::Plain );
grid->addMultiCellWidget( line, 11, 11, 0, 1 );
mSmtp.specifyHostnameCheck =
- new QCheckBox( i18n("Sen&d custom hostname to server"), page1 );
+ new TQCheckBox( i18n("Sen&d custom hostname to server"), page1 );
grid->addMultiCellWidget( mSmtp.specifyHostnameCheck, 12, 12, 0, 1 );
- QWhatsThis::add(mSmtp.specifyHostnameCheck,
+ TQWhatsThis::add(mSmtp.specifyHostnameCheck,
i18n("Check this option to have KMail use "
"a custom hostname when identifying itself "
"to the mail server."
@@ -482,46 +482,46 @@ void KMTransportDialog::makeSmtpPage()
"may not be set correctly or to mask your "
"system's true hostname."));
- mSmtp.localHostnameLabel = new QLabel( i18n("Hos&tname:"), page1 );
+ mSmtp.localHostnameLabel = new TQLabel( i18n("Hos&tname:"), page1 );
grid->addWidget( mSmtp.localHostnameLabel, 13, 0);
mSmtp.localHostnameEdit = new KLineEdit( page1 );
- QWhatsThis::add(mSmtp.localHostnameEdit,
+ TQWhatsThis::add(mSmtp.localHostnameEdit,
i18n("Enter the hostname KMail should use when "
"identifying itself to the server."));
mSmtp.localHostnameLabel->setBuddy( mSmtp.localHostnameEdit );
grid->addWidget( mSmtp.localHostnameEdit, 13, 1 );
- connect( mSmtp.specifyHostnameCheck, SIGNAL(toggled(bool)),
- mSmtp.localHostnameEdit, SLOT(setEnabled(bool)));
- connect( mSmtp.specifyHostnameCheck, SIGNAL(toggled(bool)),
- mSmtp.localHostnameLabel, SLOT(setEnabled(bool)));
+ connect( mSmtp.specifyHostnameCheck, TQT_SIGNAL(toggled(bool)),
+ mSmtp.localHostnameEdit, TQT_SLOT(setEnabled(bool)));
+ connect( mSmtp.specifyHostnameCheck, TQT_SIGNAL(toggled(bool)),
+ mSmtp.localHostnameLabel, TQT_SLOT(setEnabled(bool)));
- QWidget *page2 = new QWidget( tabWidget );
+ TQWidget *page2 = new TQWidget( tabWidget );
tabWidget->addTab( page2, i18n("S&ecurity") );
- QVBoxLayout *vlay = new QVBoxLayout( page2, spacingHint() );
- mSmtp.encryptionGroup = new QButtonGroup( 1, Qt::Horizontal,
+ TQVBoxLayout *vlay = new TQVBoxLayout( page2, spacingHint() );
+ mSmtp.encryptionGroup = new TQButtonGroup( 1, Qt::Horizontal,
i18n("Encryption"), page2 );
mSmtp.encryptionNone =
- new QRadioButton( i18n("&None"), mSmtp.encryptionGroup );
+ new TQRadioButton( i18n("&None"), mSmtp.encryptionGroup );
mSmtp.encryptionSSL =
- new QRadioButton( i18n("&SSL"), mSmtp.encryptionGroup );
+ new TQRadioButton( i18n("&SSL"), mSmtp.encryptionGroup );
mSmtp.encryptionTLS =
- new QRadioButton( i18n("&TLS"), mSmtp.encryptionGroup );
- connect(mSmtp.encryptionGroup, SIGNAL(clicked(int)),
- SLOT(slotSmtpEncryptionChanged(int)));
+ new TQRadioButton( i18n("&TLS"), mSmtp.encryptionGroup );
+ connect(mSmtp.encryptionGroup, TQT_SIGNAL(clicked(int)),
+ TQT_SLOT(slotSmtpEncryptionChanged(int)));
vlay->addWidget( mSmtp.encryptionGroup );
- mSmtp.authGroup = new QButtonGroup( 1, Qt::Horizontal,
+ mSmtp.authGroup = new TQButtonGroup( 1, Qt::Horizontal,
i18n("Authentication Method"), page2 );
- mSmtp.authLogin = new QRadioButton( i18n("Please translate this "
+ mSmtp.authLogin = new TQRadioButton( i18n("Please translate this "
"authentication method only if you have a good reason", "&LOGIN"),
mSmtp.authGroup );
- mSmtp.authPlain = new QRadioButton( i18n("Please translate this "
+ mSmtp.authPlain = new TQRadioButton( i18n("Please translate this "
"authentication method only if you have a good reason", "&PLAIN"),
mSmtp.authGroup );
- mSmtp.authCramMd5 = new QRadioButton( i18n("CRAM-MD&5"), mSmtp.authGroup );
- mSmtp.authDigestMd5 = new QRadioButton( i18n("&DIGEST-MD5"), mSmtp.authGroup );
- mSmtp.authNTLM = new QRadioButton( i18n("&NTLM"), mSmtp.authGroup );
- mSmtp.authGSSAPI = new QRadioButton( i18n("&GSSAPI"), mSmtp.authGroup );
+ mSmtp.authCramMd5 = new TQRadioButton( i18n("CRAM-MD&5"), mSmtp.authGroup );
+ mSmtp.authDigestMd5 = new TQRadioButton( i18n("&DIGEST-MD5"), mSmtp.authGroup );
+ mSmtp.authNTLM = new TQRadioButton( i18n("&NTLM"), mSmtp.authGroup );
+ mSmtp.authGSSAPI = new TQRadioButton( i18n("&GSSAPI"), mSmtp.authGroup );
if ( KProtocolInfo::capabilities("smtp").contains("SASL") == 0 ) {
mSmtp.authNTLM->hide();
mSmtp.authGSSAPI->hide();
@@ -530,11 +530,11 @@ void KMTransportDialog::makeSmtpPage()
vlay->addStretch();
- QHBoxLayout *buttonLay = new QHBoxLayout( vlay );
+ TQHBoxLayout *buttonLay = new TQHBoxLayout( vlay );
mSmtp.checkCapabilities =
- new QPushButton( i18n("Check &What the Server Supports"), page2 );
- connect(mSmtp.checkCapabilities, SIGNAL(clicked()),
- SLOT(slotCheckSmtpCapabilities()));
+ new TQPushButton( i18n("Check &What the Server Supports"), page2 );
+ connect(mSmtp.checkCapabilities, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotCheckSmtpCapabilities()));
buttonLay->addStretch();
buttonLay->addWidget( mSmtp.checkCapabilities );
}
@@ -615,10 +615,10 @@ void KMTransportDialog::saveSettings()
void KMTransportDialog::slotSendmailChooser()
{
- KFileDialog dialog("/", QString::null, this, 0, true );
+ KFileDialog dialog("/", TQString::null, this, 0, true );
dialog.setCaption(i18n("Choose sendmail Location") );
- if( dialog.exec() == QDialog::Accepted )
+ if( dialog.exec() == TQDialog::Accepted )
{
KURL url = dialog.selectedURL();
if( url.isEmpty() == true )
@@ -657,7 +657,7 @@ void KMTransportDialog::slotSmtpEncryptionChanged(int id)
mSmtp.portEdit->setText((id == SSL) ? "465" : "25");
// switch supported auth methods:
- QButton * old = mSmtp.authGroup->selected();
+ TQButton * old = mSmtp.authGroup->selected();
int authMethods = id == TLS ? mAuthTLS : id == SSL ? mAuthSSL : mAuthNone ;
enableAuthMethods( authMethods );
if ( !old->isEnabled() )
@@ -677,10 +677,10 @@ void KMTransportDialog::enableAuthMethods( unsigned int auth ) {
mSmtp.authGSSAPI->setEnabled( auth & GSSAPI );
}
-unsigned int KMTransportDialog::authMethodsFromString( const QString & s ) {
+unsigned int KMTransportDialog::authMethodsFromString( const TQString & s ) {
unsigned int result = 0;
- QStringList sl = QStringList::split( '\n', s.upper() );
- for ( QStringList::const_iterator it = sl.begin() ; it != sl.end() ; ++it )
+ TQStringList sl = TQStringList::split( '\n', s.upper() );
+ for ( TQStringList::const_iterator it = sl.begin() ; it != sl.end() ; ++it )
if ( *it == "SASL/LOGIN" )
result |= LOGIN;
else if ( *it == "SASL/PLAIN" )
@@ -696,9 +696,9 @@ unsigned int KMTransportDialog::authMethodsFromString( const QString & s ) {
return result;
}
-unsigned int KMTransportDialog::authMethodsFromStringList( const QStringList & sl ) {
+unsigned int KMTransportDialog::authMethodsFromStringList( const TQStringList & sl ) {
unsigned int result = 0;
- for ( QStringList::const_iterator it = sl.begin() ; it != sl.end() ; ++it )
+ for ( TQStringList::const_iterator it = sl.begin() ; it != sl.end() ; ++it )
if ( *it == "LOGIN" )
result |= LOGIN;
else if ( *it == "PLAIN" )
@@ -720,22 +720,22 @@ void KMTransportDialog::slotCheckSmtpCapabilities()
mServerTest = new KMServerTest(SMTP_PROTOCOL, mSmtp.hostEdit->text(),
mSmtp.portEdit->text().toInt());
connect( mServerTest,
- SIGNAL( capabilities( const QStringList &, const QStringList &,
- const QString &, const QString &,
- const QString & )),
+ TQT_SIGNAL( capabilities( const TQStringList &, const TQStringList &,
+ const TQString &, const TQString &,
+ const TQString & )),
this,
- SLOT( slotSmtpCapabilities( const QStringList &,
- const QStringList &, const QString &,
- const QString &, const QString & ) ) );
+ TQT_SLOT( slotSmtpCapabilities( const TQStringList &,
+ const TQStringList &, const TQString &,
+ const TQString &, const TQString & ) ) );
mSmtp.checkCapabilities->setEnabled(false);
}
-void KMTransportDialog::checkHighest(QButtonGroup *btnGroup)
+void KMTransportDialog::checkHighest(TQButtonGroup *btnGroup)
{
for ( int i = btnGroup->count() - 1; i >= 0 ; --i )
{
- QButton * btn = btnGroup->find(i);
+ TQButton * btn = btnGroup->find(i);
if (btn && btn->isEnabled())
{
btn->animateClick();
@@ -745,11 +745,11 @@ void KMTransportDialog::checkHighest(QButtonGroup *btnGroup)
}
-void KMTransportDialog::slotSmtpCapabilities( const QStringList & capaNormal,
- const QStringList & capaSSL,
- const QString & authNone,
- const QString & authSSL,
- const QString & authTLS )
+void KMTransportDialog::slotSmtpCapabilities( const TQStringList & capaNormal,
+ const TQStringList & capaSSL,
+ const TQString & authNone,
+ const TQString & authSSL,
+ const TQString & authTLS )
{
mSmtp.checkCapabilities->setEnabled( true );
kdDebug(5006) << "KMTransportDialog::slotSmtpCapabilities( ..., "
@@ -783,7 +783,7 @@ bool KMTransportDialog::sanityCheckSmtpInput()
// FIXME: add additional checks for all fields that needs it
// this is only the beginning
if ( mSmtp.hostEdit->text().isEmpty() ) {
- QString errorMsg = i18n("The Host field cannot be empty. Please "
+ TQString errorMsg = i18n("The Host field cannot be empty. Please "
"enter the name or the IP address of the SMTP server.");
KMessageBox::sorry( this, errorMsg, i18n("Invalid Hostname or Address") );
return false;