Don't have a location on the account; it doesn't make sense

svn path=/trunk/kdenetwork/kmail/; revision=191637
wilder-work
Bo Thorsen 24 years ago
parent d416642f00
commit 5bc74c52ee
  1. 17
      kmacctcachedimap.cpp
  2. 6
      kmacctcachedimap.h

@ -52,8 +52,6 @@ KMAcctCachedImap::KMAcctCachedImap(KMAcctMgr* aOwner, const QString& aAccountNam
// Never EVER set this for the cached IMAP account
mAutoExpunge = false;
setLocation( locateLocal("appdata", "imap") );
connect(KMBroadcastStatus::instance(), SIGNAL(signalAbortRequested()),
this, SLOT(slotAbortRequested()));
connect(&mIdleTimer, SIGNAL(timeout()), SLOT(slotIdleTimeout()));
@ -79,17 +77,7 @@ QString KMAcctCachedImap::type() const
void KMAcctCachedImap::init() {
base::init();
mLocation = locateLocal( "appdata", "imap" );
setProgressDialogEnabled( true );
/*
mLocation = getenv("MAIL");
if (mLocation.isNull()) {
mLocation = _PATH_MAILDIR;
mLocation += "/";
mLocation += getenv("USER");
}
*/
}
//-----------------------------------------------------------------------------
@ -327,11 +315,6 @@ void KMAcctCachedImap::postProcessNewMail(KMFolderCachedImap* folder, bool)
postProcessNewMail(static_cast<KMFolder*>(folder));
}
void KMAcctCachedImap::setLocation(const QString& aLocation)
{
mLocation = aLocation;
}
//
//
// read/write config

@ -110,11 +110,6 @@ public:
*/
virtual void setImapFolder(KMFolderCachedImap *);
/** Access to location of maildir mail file (usually something like
"/home/joe/Maildir"). */
const QString& location(void) const { return mLocation; }
virtual void setLocation(const QString&);
KMail::IMAPProgressDialog * imapProgressDialog() const;
bool isProgressDialogEnabled() const { return mProgressDialogEnabled; }
void setProgressDialogEnabled( bool enable ) { mProgressDialogEnabled = enable; }
@ -162,7 +157,6 @@ protected slots:
private:
QPtrList<KMCachedImapJob> mJobList;
KMFolderCachedImap *mFolder;
QString mLocation;
mutable QGuardedPtr<KMail::IMAPProgressDialog> mProgressDlg;
bool mProgressDialogEnabled;
};

Loading…
Cancel
Save