trash handling was moved down to kmaccount itself

svn path=/trunk/kdenetwork/kmail/; revision=191051
wilder-work
Marc Mutz 24 years ago
parent 19038d5aca
commit 1869426c1d
  1. 8
      imapaccountbase.cpp
  2. 6
      imapaccountbase.h

@ -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() );

@ -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;

Loading…
Cancel
Save