diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /wizards/scalixwizard.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'wizards/scalixwizard.cpp')
-rw-r--r-- | wizards/scalixwizard.cpp | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/wizards/scalixwizard.cpp b/wizards/scalixwizard.cpp index 058ff84dd..dfc638f70 100644 --- a/wizards/scalixwizard.cpp +++ b/wizards/scalixwizard.cpp @@ -39,12 +39,12 @@ #include <kmessagebox.h> #include <kstringhandler.h> -#include <qapplication.h> -#include <qcheckbox.h> -#include <qhbuttongroup.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qwhatsthis.h> +#include <tqapplication.h> +#include <tqcheckbox.h> +#include <tqhbuttongroup.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqwhatsthis.h> #include <unistd.h> @@ -58,9 +58,9 @@ class SetupLDAPSearchAccount : public KConfigPropagator::Change void apply() { - const QString host = ScalixConfig::self()->server(); + const TQString host = ScalixConfig::self()->server(); - QString basedn( "o=Scalix" ); + TQString basedn( "o=Scalix" ); { // while we're here, write default domain KConfig c( "kmailrc" ); @@ -74,13 +74,13 @@ class SetupLDAPSearchAccount : public KConfigPropagator::Change bool hasMyServer = false; uint selHosts = c.readNumEntry("NumSelectedHosts", 0); for ( uint i = 0 ; i < selHosts && !hasMyServer; ++i ) - if ( c.readEntry( QString("SelectedHost%1").arg(i) ) == host ) + if ( c.readEntry( TQString("SelectedHost%1").arg(i) ) == host ) hasMyServer = true; if ( !hasMyServer ) { c.writeEntry( "NumSelectedHosts", selHosts + 1 ); - c.writeEntry( QString("SelectedHost%1").arg(selHosts), host); - c.writeEntry( QString("SelectedBase%1").arg(selHosts), basedn); - c.writeEntry( QString("SelectedPort%1").arg(selHosts), "389"); + c.writeEntry( TQString("SelectedHost%1").arg(selHosts), host); + c.writeEntry( TQString("SelectedBase%1").arg(selHosts), basedn); + c.writeEntry( TQString("SelectedPort%1").arg(selHosts), "389"); } } @@ -200,18 +200,18 @@ class SynchronizeScalixAccount : public KConfigPropagator::Change void apply() { - QMessageBox *msg = new QMessageBox( qApp->mainWidget() ); + TQMessageBox *msg = new TQMessageBox( qApp->mainWidget() ); msg->setText( "Preparing initial synchronization with Scalix server..." ); msg->show(); qApp->processEvents(); sleep( 1 ); qApp->processEvents(); - QString error; - QCString dcopService; + TQString error; + TQCString dcopService; int result = KDCOPServiceStarter::self()-> - findServiceFor( "DCOP/ResourceBackend/IMAP", QString::null, - QString::null, &error, &dcopService ); + findServiceFor( "DCOP/ResourceBackend/IMAP", TQString::null, + TQString::null, &error, &dcopService ); if ( result != 0 ) { KMessageBox::error( 0, i18n( "Unable to start KMail to trigger initial synchronization with Scalix server" ) ); delete msg; @@ -221,16 +221,16 @@ class SynchronizeScalixAccount : public KConfigPropagator::Change DCOPRef ref( dcopService, "KMailIface" ); // loop until dcop iface is set up correctly - QStringList list; + TQStringList list; while ( list.isEmpty() ) { ref.call( "accounts()" ).get( list ); } - ref.call( "checkAccount(QString)", i18n( "Scalix Server" ) ); + ref.call( "checkAccount(TQString)", i18n( "Scalix Server" ) ); // ugly hack, but kmail needs a second before accepting the second dcop call sleep( 5 ); - ref.call( "checkAccount(QString)", i18n( "Scalix Server" ) ); + ref.call( "checkAccount(TQString)", i18n( "Scalix Server" ) ); delete msg; } @@ -362,56 +362,56 @@ class ScalixPropagator : public KConfigPropagator ScalixWizard::ScalixWizard() : KConfigWizard( new ScalixPropagator ) { - QFrame *page = createWizardPage( i18n("Scalix Server") ); + TQFrame *page = createWizardPage( i18n("Scalix Server") ); - QGridLayout *topLayout = new QGridLayout( page ); + TQGridLayout *topLayout = new TQGridLayout( page ); topLayout->setSpacing( spacingHint() ); - QLabel *label = new QLabel( i18n( "Full name:" ), page ); + TQLabel *label = new TQLabel( i18n( "Full name:" ), page ); topLayout->addWidget( label, 0, 0 ); mRealNameEdit = new KLineEdit( page ); topLayout->addWidget( mRealNameEdit, 0, 1 ); label->setBuddy( mRealNameEdit ); - QWhatsThis::add( mRealNameEdit, i18n( "Your full name. " + TQWhatsThis::add( mRealNameEdit, i18n( "Your full name. " "Example: <i>Joe User</i>" ) ); - label = new QLabel( i18n( "Email address:" ), page ); + label = new TQLabel( i18n( "Email address:" ), page ); topLayout->addWidget( label, 1, 0 ); mEMailEdit = new KLineEdit( page ); topLayout->addWidget( mEMailEdit, 1, 1 ); label->setBuddy( mEMailEdit ); - QWhatsThis::add( mEMailEdit, i18n( "Your email address on the Scalix Server. " + TQWhatsThis::add( mEMailEdit, i18n( "Your email address on the Scalix Server. " "Example: <i>name@crossplatform.com</i>" ) ); - label = new QLabel( i18n( "Server:" ), page ); + label = new TQLabel( i18n( "Server:" ), page ); topLayout->addWidget( label, 2, 0 ); mServerEdit = new KLineEdit( page ); topLayout->addWidget( mServerEdit, 2, 1 ); label->setBuddy( mServerEdit ); - QWhatsThis::add( mServerEdit, i18n( "The name or IP of the Scalix Server. " + TQWhatsThis::add( mServerEdit, i18n( "The name or IP of the Scalix Server. " "Example: <i>scalix.domain.com</i>" ) ); - label = new QLabel( i18n("Username:"), page ); + label = new TQLabel( i18n("Username:"), page ); topLayout->addWidget( label, 3, 0 ); mUserEdit = new KLineEdit( page ); topLayout->addWidget( mUserEdit, 3, 1 ); label->setBuddy( mUserEdit ); - QWhatsThis::add( mUserEdit, i18n( "The user respectively login name. " + TQWhatsThis::add( mUserEdit, i18n( "The user respectively login name. " "Example: <i>joe</i>" ) ); - label = new QLabel( i18n("Password:"), page ); + label = new TQLabel( i18n("Password:"), page ); topLayout->addWidget( label, 4, 0 ); mPasswordEdit = new KLineEdit( page ); mPasswordEdit->setEchoMode( KLineEdit::Password ); topLayout->addWidget( mPasswordEdit, 4, 1 ); label->setBuddy( mPasswordEdit ); - QWhatsThis::add( mPasswordEdit, i18n( "The password to your login." ) ); + TQWhatsThis::add( mPasswordEdit, i18n( "The password to your login." ) ); - mSavePasswordCheck = new QCheckBox( i18n("Save password"), page ); + mSavePasswordCheck = new TQCheckBox( i18n("Save password"), page ); topLayout->addMultiCellWidget( mSavePasswordCheck, 5, 5, 0, 1 ); - QWhatsThis::add( mSavePasswordCheck, i18n( "Shall the password be saved in KWallet?." ) ); + TQWhatsThis::add( mSavePasswordCheck, i18n( "Shall the password be saved in KWallet?." ) ); - label = new QLabel( i18n( "Use Secure Connection:" ), page ); + label = new TQLabel( i18n( "Use Secure Connection:" ), page ); topLayout->addWidget( label, 6, 0 ); mSecurity = new KComboBox( page ); mSecurity->insertItem( i18n( "No encryption" ) ); @@ -419,9 +419,9 @@ ScalixWizard::ScalixWizard() : KConfigWizard( new ScalixPropagator ) mSecurity->insertItem( i18n( "SSL encryption" ) ); topLayout->addWidget( mSecurity, 6, 1 ); label->setBuddy( mSecurity ); - QWhatsThis::add( mSecurity, i18n( "Choose the encryption type that is supported by your server." ) ); + TQWhatsThis::add( mSecurity, i18n( "Choose the encryption type that is supported by your server." ) ); - label = new QLabel( i18n( "Authentication Type:" ), page ); + label = new TQLabel( i18n( "Authentication Type:" ), page ); topLayout->addWidget( label, 7, 0 ); mAuthentication = new KComboBox( page ); mAuthentication->insertItem( i18n( "Password" ) ); @@ -431,7 +431,7 @@ ScalixWizard::ScalixWizard() : KConfigWizard( new ScalixPropagator ) mAuthentication->insertItem( i18n( "CRAM-MD5" ) ); topLayout->addWidget( mAuthentication, 7, 1 ); label->setBuddy( mAuthentication ); - QWhatsThis::add( mAuthentication, i18n( "Choose the authentication type that is supported by your server." ) ); + TQWhatsThis::add( mAuthentication, i18n( "Choose the authentication type that is supported by your server." ) ); topLayout->setRowStretch( 8, 1 ); @@ -442,14 +442,14 @@ ScalixWizard::ScalixWizard() : KConfigWizard( new ScalixPropagator ) setupRulesPage(); setupChangesPage(); - setInitialSize( QSize( 600, 300 ) ); + setInitialSize( TQSize( 600, 300 ) ); } ScalixWizard::~ScalixWizard() { } -QString ScalixWizard::validate() +TQString ScalixWizard::validate() { if ( mRealNameEdit->text().isEmpty() || mEMailEdit->text().isEmpty() || @@ -458,7 +458,7 @@ QString ScalixWizard::validate() mPasswordEdit->text().isEmpty() ) return i18n( "Please fill in all fields." ); - return QString::null; + return TQString::null; } void ScalixWizard::usrReadConfig() |