From 86d8364ac704bdc8ad2dfcf52307d9626cfac567 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 25 Jan 2013 00:37:21 -0600 Subject: Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4 --- kmail/index.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kmail/index.cpp') 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 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 ) ); -- cgit v1.2.1