diff options
Diffstat (limited to 'wizards/groupwisewizard.cpp')
-rw-r--r-- | wizards/groupwisewizard.cpp | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/wizards/groupwisewizard.cpp b/wizards/groupwisewizard.cpp index 6ddee3726..0bddf3da8 100644 --- a/wizards/groupwisewizard.cpp +++ b/wizards/groupwisewizard.cpp @@ -34,19 +34,19 @@ #include <klineedit.h> #include <klocale.h> -#include <qcheckbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qspinbox.h> -#include <qgroupbox.h> +#include <tqcheckbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqspinbox.h> +#include <tqgroupbox.h> -QString serverUrl() +TQString serverUrl() { - QString url; + TQString url; if ( GroupwiseConfig::self()->useHttps() ) url = "https"; else url = "http"; url += "://" + GroupwiseConfig::self()->host() + ":" + - QString::number( GroupwiseConfig::self()->port() ) + GroupwiseConfig::self()->path(); + TQString::number( GroupwiseConfig::self()->port() ) + GroupwiseConfig::self()->path(); return url; } @@ -122,14 +122,14 @@ class CreateGroupwiseKabcResource : public KConfigPropagator::Change KRES::Manager<KABC::Resource> m( "contact" ); m.readConfig(); - QString url = serverUrl(); - QString user( GroupwiseConfig::self()->user() ); - QString password( GroupwiseConfig::self()->password() ); + TQString url = serverUrl(); + TQString user( GroupwiseConfig::self()->user() ); + TQString password( GroupwiseConfig::self()->password() ); KABC::ResourceGroupwise *r = new KABC::ResourceGroupwise( url, user, password, - QStringList(), - QString::null ); + TQStringList(), + TQString::null ); r->setResourceName( i18n("GroupWise") ); m.add( r ); m.writeConfig(); @@ -248,7 +248,7 @@ class GroupwisePropagator : public KConfigPropagator ca->setUser( GroupwiseConfig::user() ); ca->setPassword( GroupwiseConfig::password() ); ca->setRealName( GroupwiseConfig::fullName() ); - QString email = GroupwiseConfig::email(); + TQString email = GroupwiseConfig::email(); if ( !email.isEmpty() ) ca->setEmail( email ); ca->enableSavePassword( true ); ca->enableSieve( false ); @@ -268,41 +268,41 @@ class GroupwisePropagator : public KConfigPropagator GroupwiseWizard::GroupwiseWizard() : KConfigWizard( new GroupwisePropagator ) { - QFrame *page = createWizardPage( i18n("Novell GroupWise") ); + TQFrame *page = createWizardPage( i18n("Novell GroupWise") ); - QGridLayout *topLayout = new QGridLayout( page ); + TQGridLayout *topLayout = new TQGridLayout( page ); topLayout->setSpacing( spacingHint() ); - QLabel *label = new QLabel( i18n("Server name:"), page ); + TQLabel *label = new TQLabel( i18n("Server name:"), page ); topLayout->addWidget( label, 0, 0 ); mServerEdit = new KLineEdit( page ); topLayout->addWidget( mServerEdit, 0, 1 ); - label = new QLabel( i18n("Path to SOAP interface:"), page ); + label = new TQLabel( i18n("Path to SOAP interface:"), page ); topLayout->addWidget( label, 1, 0 ); mPathEdit = new KLineEdit( page ); topLayout->addWidget( mPathEdit, 1, 1 ); - label = new QLabel( i18n("Port:"), page ); + label = new TQLabel( i18n("Port:"), page ); topLayout->addWidget( label, 2, 0 ); - mPortEdit = new QSpinBox( 1, 65536, 1, page ); + mPortEdit = new TQSpinBox( 1, 65536, 1, page ); topLayout->addWidget( mPortEdit, 2, 1 ); - label = new QLabel( i18n("User name:"), page ); + label = new TQLabel( i18n("User name:"), page ); topLayout->addWidget( label, 3, 0 ); mUserEdit = new KLineEdit( page ); topLayout->addWidget( mUserEdit, 3, 1 ); - 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 ); - mSavePasswordCheck = new QCheckBox( i18n("Save password"), page ); + mSavePasswordCheck = new TQCheckBox( i18n("Save password"), page ); topLayout->addMultiCellWidget( mSavePasswordCheck, 5, 5, 0, 1 ); - mSecureCheck = new QCheckBox( i18n("Encrypt communication with server"), + mSecureCheck = new TQCheckBox( i18n("Encrypt communication with server"), page ); topLayout->addMultiCellWidget( mSecureCheck, 5, 5, 0, 1 ); @@ -311,28 +311,28 @@ GroupwiseWizard::GroupwiseWizard() : KConfigWizard( new GroupwisePropagator ) mEmailPage = createWizardPage( i18n("Mail") ); - topLayout = new QGridLayout( mEmailPage ); + topLayout = new TQGridLayout( mEmailPage ); topLayout->setSpacing( spacingHint() ); - mEmailBox = new QGroupBox( 1, Horizontal, + mEmailBox = new TQGroupBox( 1, Horizontal, i18n("Create Mail Account"), mEmailPage ); mEmailBox->setCheckable( true ); topLayout->addWidget( mEmailBox, 0, 0 ); - mEmailWidget = new QWidget( mEmailBox ); - connect( mEmailBox, SIGNAL( toggled( bool ) ), mEmailWidget, - SLOT( setEnabled( bool ) ) ); + mEmailWidget = new TQWidget( mEmailBox ); + connect( mEmailBox, TQT_SIGNAL( toggled( bool ) ), mEmailWidget, + TQT_SLOT( setEnabled( bool ) ) ); - QGridLayout *accountLayout= new QGridLayout( mEmailWidget ); + TQGridLayout *accountLayout= new TQGridLayout( mEmailWidget ); accountLayout->setSpacing( spacingHint() ); - label = new QLabel( i18n("Email address:"), mEmailWidget ); + label = new TQLabel( i18n("Email address:"), mEmailWidget ); accountLayout->addWidget( label, 0, 0 ); mEmailEdit = new KLineEdit( mEmailWidget ); accountLayout->addWidget( mEmailEdit, 0, 1 ); - label = new QLabel( i18n("Full name:"), mEmailWidget ); + label = new TQLabel( i18n("Full name:"), mEmailWidget ); accountLayout->addWidget( label, 1, 0 ); mFullNameEdit = new KLineEdit( mEmailWidget ); @@ -340,8 +340,8 @@ GroupwiseWizard::GroupwiseWizard() : KConfigWizard( new GroupwisePropagator ) accountLayout->setRowStretch( 2, 1 ); - connect( this, SIGNAL( aboutToShowPage( QWidget * ) ), - SLOT( slotAboutToShowPage( QWidget * ) ) ); + connect( this, TQT_SIGNAL( aboutToShowPage( TQWidget * ) ), + TQT_SLOT( slotAboutToShowPage( TQWidget * ) ) ); setupRulesPage(); @@ -354,7 +354,7 @@ GroupwiseWizard::~GroupwiseWizard() { } -QString GroupwiseWizard::validate() +TQString GroupwiseWizard::validate() { if( mServerEdit->text().isEmpty() || mPathEdit->text().isEmpty() || @@ -370,7 +370,7 @@ QString GroupwiseWizard::validate() return i18n( "Please fill in all fields." ); } - return QString::null; + return TQString::null; } void GroupwiseWizard::usrReadConfig() @@ -401,15 +401,15 @@ void GroupwiseWizard::usrWriteConfig() GroupwiseConfig::setCreateEmailAccount( mEmailBox->isChecked() ); } -void GroupwiseWizard::slotAboutToShowPage( QWidget *page ) +void GroupwiseWizard::slotAboutToShowPage( TQWidget *page ) { if ( page == mEmailPage ) { if ( mEmailEdit->text().isEmpty() ) { - QString host = GroupwiseConfig::host(); + TQString host = GroupwiseConfig::host(); int pos = host.findRev( "." ); if ( pos > 0 ) pos = host.findRev( ".", pos - 1 ); if ( pos > 0 ) host = host.mid( pos + 1 ); - QString email = GroupwiseConfig::user() + "@" + host; + TQString email = GroupwiseConfig::user() + "@" + host; mEmailEdit->setText( email ); } } |