summaryrefslogtreecommitdiffstats
path: root/kresources/scalix/scalixadmin/passwordpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/scalix/scalixadmin/passwordpage.cpp')
-rw-r--r--kresources/scalix/scalixadmin/passwordpage.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kresources/scalix/scalixadmin/passwordpage.cpp b/kresources/scalix/scalixadmin/passwordpage.cpp
index 23f4304c5..120de86f5 100644
--- a/kresources/scalix/scalixadmin/passwordpage.cpp
+++ b/kresources/scalix/scalixadmin/passwordpage.cpp
@@ -77,7 +77,7 @@ void PasswordPage::buttonClicked()
mJob = Scalix::setPassword( Settings::self()->globalSlave(), Settings::self()->accountUrl(),
Settings::self()->accountPassword(), mPassword->text() );
- connect( mJob, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( finished( KIO::Job* ) ) );
+ connect( mJob, TQT_SIGNAL( result( TDEIO::Job* ) ), this, TQT_SLOT( finished( TDEIO::Job* ) ) );
updateState( true );
} else {
@@ -107,7 +107,7 @@ void PasswordPage::textChanged()
!mPasswordRetype->text().isEmpty() );
}
-void PasswordPage::finished( KIO::Job* job )
+void PasswordPage::finished( TDEIO::Job* job )
{
mJob = 0;
@@ -123,26 +123,26 @@ void PasswordPage::finished( KIO::Job* job )
const TQString newPassword = mPassword->text();
{ // ScalixAdmin config
- KConfig config( "scalixadminrc" );
- KConfigGroup group( &config, "Account" );
+ TDEConfig config( "scalixadminrc" );
+ TDEConfigGroup group( &config, "Account" );
group.writeEntry( "pass", KStringHandler::obscure( newPassword ) );
}
{ // ScalixWizard config
- KConfig config( "scalixrc" );
- KConfigGroup group( &config, "General" );
+ TDEConfig config( "scalixrc" );
+ TDEConfigGroup group( &config, "General" );
group.writeEntry( "Password", KStringHandler::obscure( newPassword ) );
}
{ // KMail config
- KConfig config( "kmailrc" );
+ TDEConfig config( "kmailrc" );
// Try to find account group for Scalix
TQString scalixAccount;
const TQStringList groupList = config.groupList();
for ( uint i = 0; i < groupList.count(); ++i ) {
if ( groupList[ i ].startsWith( "Account " ) ) {
- KConfigGroup group( &config, groupList[ i ] );
+ TDEConfigGroup group( &config, groupList[ i ] );
if ( group.hasKey( "groupwareType" ) && group.readNumEntry( "groupwareType" ) == 2 ) {
scalixAccount = groupList[ i ];
break;
@@ -157,7 +157,7 @@ void PasswordPage::finished( KIO::Job* job )
const int accountId = scalixAccount.mid( 8 ).toInt();
- KConfigGroup group( &config, scalixAccount );
+ TDEConfigGroup group( &config, scalixAccount );
// Save only if the user choose it before
bool storePassword = group.readBoolEntry( "store-passwd", false );
@@ -179,7 +179,7 @@ void PasswordPage::finished( KIO::Job* job )
group.writeEntry( "pass", KStringHandler::obscure( newPassword ) );
}
- KConfigGroup fileGroup( &config, TQString( "Folder-%1" ).arg( group.readNumEntry( "Folder" ) ) );
+ TDEConfigGroup fileGroup( &config, TQString( "Folder-%1" ).arg( group.readNumEntry( "Folder" ) ) );
fileGroup.writeEntry( "pass", KStringHandler::obscure( newPassword ) );
}
}