summaryrefslogtreecommitdiffstats
path: root/kmail/index.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:37:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:37:21 -0600
commit86d8364ac704bdc8ad2dfcf52307d9626cfac567 (patch)
tree97d3ac2c2f60780d9a1de4f82caac7cb27534501 /kmail/index.cpp
parenta9bde819f2b421dcc44741156e75eca4bb5fb4f4 (diff)
downloadtdepim-86d8364ac704bdc8ad2dfcf52307d9626cfac567.tar.gz
tdepim-86d8364ac704bdc8ad2dfcf52307d9626cfac567.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kmail/index.cpp')
-rw-r--r--kmail/index.cpp20
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 ) );