From 5bc74c52ee6af515992521118dcd0bf64b89d260 Mon Sep 17 00:00:00 2001 From: Bo Thorsen Date: Mon, 2 Dec 2002 15:20:15 +0000 Subject: [PATCH] Don't have a location on the account; it doesn't make sense svn path=/trunk/kdenetwork/kmail/; revision=191637 --- kmacctcachedimap.cpp | 17 ----------------- kmacctcachedimap.h | 6 ------ 2 files changed, 23 deletions(-) diff --git a/kmacctcachedimap.cpp b/kmacctcachedimap.cpp index b8bfc3460..d65cbda79 100644 --- a/kmacctcachedimap.cpp +++ b/kmacctcachedimap.cpp @@ -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(folder)); } -void KMAcctCachedImap::setLocation(const QString& aLocation) -{ - mLocation = aLocation; -} - // // // read/write config diff --git a/kmacctcachedimap.h b/kmacctcachedimap.h index 3f223c158..18cde234d 100644 --- a/kmacctcachedimap.h +++ b/kmacctcachedimap.h @@ -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 mJobList; KMFolderCachedImap *mFolder; - QString mLocation; mutable QGuardedPtr mProgressDlg; bool mProgressDialogEnabled; };