From 1869426c1dbd65e625f1b4e1b64e60a0501ee39a Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 29 Nov 2002 09:37:17 +0000 Subject: [PATCH] trash handling was moved down to kmaccount itself svn path=/trunk/kdenetwork/kmail/; revision=191051 --- imapaccountbase.cpp | 8 -------- imapaccountbase.h | 6 +----- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/imapaccountbase.cpp b/imapaccountbase.cpp index 5d33b711f..b5e0b6062 100644 --- a/imapaccountbase.cpp +++ b/imapaccountbase.cpp @@ -74,7 +74,6 @@ namespace KMail { void ImapAccountBase::init() { mPrefix = '/'; - mTrash = QString::null; mAutoExpunge = true; mHiddenFolders = false; mOnlySubscribedFolders = false; @@ -88,7 +87,6 @@ namespace KMail { if ( !i ) return; setPrefix( i->prefix() ); - setTrash( i->trash() ); setAutoExpunge( i->autoExpunge() ); setHiddenFolders( i->hiddenFolders() ); setOnlySubscribedFolders( i->onlySubscribedFolders() ); @@ -122,10 +120,6 @@ namespace KMail { #endif } - void ImapAccountBase::setTrash( const QString & trash ) { - mTrash = trash; - } - void ImapAccountBase::setAutoExpunge( bool expunge ) { mAutoExpunge = expunge; } @@ -148,7 +142,6 @@ namespace KMail { base::readConfig( config ); setPrefix( config.readEntry( "prefix", "/" ) ); - setTrash( config.readEntry( "trash" ) ); setAutoExpunge( config.readBoolEntry( "auto-expunge", false ) ); setHiddenFolders( config.readBoolEntry( "hidden-folders", false ) ); setOnlySubscribedFolders( config.readBoolEntry( "subscribed-folders", false ) ); @@ -158,7 +151,6 @@ namespace KMail { base::writeConfig( config ); config.writeEntry( "prefix", prefix() ); - config.writeEntry( "trash", trash() ); config.writeEntry( "auto-expunge", autoExpunge() ); config.writeEntry( "hidden-folders", hiddenFolders() ); config.writeEntry( "subscribed-folders", onlySubscribedFolders() ); diff --git a/imapaccountbase.h b/imapaccountbase.h index 2edc108e4..ffd397683 100644 --- a/imapaccountbase.h +++ b/imapaccountbase.h @@ -54,10 +54,6 @@ namespace KMail { QString prefix() const { return mPrefix; } virtual void setPrefix( const QString & prefix ); - /** Dedicated Trash folder for this account */ - QString trash() const { return mTrash; } - virtual void setTrash( const QString & trash ); - /** @return whether to automatically expunge deleted messages when leaving the folder */ bool autoExpunge() const { return mAutoExpunge; } @@ -99,7 +95,7 @@ namespace KMail { protected: QTimer mIdleTimer; - QString mPrefix, mTrash; + QString mPrefix; int mTotal, mCountUnread, mCountLastUnread, mCountRemainChecks; bool mAutoExpunge : 1; bool mHiddenFolders : 1;