diff options
Diffstat (limited to 'kmail/index.cpp')
-rw-r--r-- | kmail/index.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kmail/index.cpp b/kmail/index.cpp index 9a4d73b1d..17de11d78 100644 --- a/kmail/index.cpp +++ b/kmail/index.cpp @@ -100,7 +100,7 @@ KMMsgIndex::KMMsgIndex( TQObject* parent ): //connect( mSyncTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( syncIndex() ) ); #ifdef HAVE_INDEXLIB - KConfigGroup cfg( KMKernel::config(), "text-index" ); + TDEConfigGroup cfg( KMKernel::config(), "text-index" ); if ( !cfg.readBoolEntry( "enabled", false ) ) { indexlib::remove( mIndexPath ); mLockFile.force_unlock(); @@ -138,7 +138,7 @@ KMMsgIndex::KMMsgIndex( TQObject* parent ): KMMsgIndex::~KMMsgIndex() { kdDebug( 5006 ) << "KMMsgIndex::~KMMsgIndex()" << endl; #ifdef HAVE_INDEXLIB - KConfigGroup cfg( KMKernel::config(), "text-index" ); + TDEConfigGroup cfg( KMKernel::config(), "text-index" ); cfg.writeEntry( "creating", mState == s_creating ); TQValueList<int> pendingMsg; if ( mState == s_processing ) { @@ -159,15 +159,15 @@ bool KMMsgIndex::isIndexable( KMFolder* folder ) const { bool KMMsgIndex::isIndexed( KMFolder* folder ) const { if ( !isIndexable( folder ) ) return false; - KConfig* config = KMKernel::config(); - KConfigGroupSaver saver( config, "Folder-" + folder->idString() ); + TDEConfig* config = KMKernel::config(); + TDEConfigGroupSaver saver( config, "Folder-" + folder->idString() ); return !config->readBoolEntry( folderIndexDisabledKey, false ); } void KMMsgIndex::setEnabled( bool e ) { kdDebug( 5006 ) << "KMMsgIndex::setEnabled( " << e << " )" << endl; - KConfig* config = KMKernel::config(); - KConfigGroupSaver saver( config, "text-index" ); + TDEConfig* config = KMKernel::config(); + TDEConfigGroupSaver saver( config, "text-index" ); if ( config->readBoolEntry( "enabled", !e ) == e ) return; config->writeEntry( "enabled", e ); if ( e ) { @@ -191,8 +191,8 @@ void KMMsgIndex::setEnabled( bool e ) { } void KMMsgIndex::setIndexingEnabled( KMFolder* folder, bool e ) { - KConfig* config = KMKernel::config(); - KConfigGroupSaver saver( config, "Folder-" + folder->idString() ); + TDEConfig* config = KMKernel::config(); + TDEConfigGroupSaver saver( config, "Folder-" + folder->idString() ); if ( config->readBoolEntry( folderIndexDisabledKey, e ) == e ) return; // nothing to do config->writeEntry( folderIndexDisabledKey, e ); @@ -328,8 +328,8 @@ void KMMsgIndex::act() { f->open("msgindex"); } const KMMsgDict* dict = KMMsgDict::instance(); - KConfig* config = KMKernel::config(); - KConfigGroupSaver saver( config, "Folder-" + f->idString() ); + TDEConfig* config = KMKernel::config(); + TDEConfigGroupSaver saver( config, "Folder-" + f->idString() ); if ( config->readBoolEntry( folderIndexDisabledKey, true ) ) { for ( int i = 0; i < f->count(); ++i ) { mPendingMsgs.push_back( dict->getMsgSerNum( f, i ) ); |