krop's commit fixes my problem in a better way, reverting
[kdepim.git] / kmail / kmacctlocal.h
blob8ce8a816019028a2f268ca8d50508ba2513998f3
1 /* KMail account for local mail folders
3 */
4 #ifndef kmacctlocal_h
5 #define kmacctlocal_h
7 #include "kmaccount.h"
8 #include "kmglobal.h"
10 class KMAcctLocal: public KMAccount
12 protected:
13 friend class ::AccountManager;
15 KMAcctLocal(AccountManager* owner, const QString& accountName, uint id);
17 public:
18 virtual ~KMAcctLocal();
19 virtual void init(void);
21 virtual void pseudoAssign( const KMAccount * a );
23 /** Access to location of local mail file (usually something like
24 "/var/spool/mail/joe"). */
25 QString location(void) const { return mLocation; }
26 virtual void setLocation(const QString&);
28 /** Acceso to Locking method */
29 LockType lockType(void) const { return mLock; }
30 void setLockType(LockType lt) { mLock = lt; }
32 QString procmailLockFileName(void) const { return mProcmailLockFileName; }
33 void setProcmailLockFileName(const QString& s);
35 virtual void processNewMail(bool);
36 virtual void readConfig(KConfigGroup&);
37 virtual void writeConfig(KConfigGroup&);
39 private:
40 bool preProcess();
41 bool fetchMsg();
42 void postProcess();
44 private:
45 QString mLocation;
46 QString mProcmailLockFileName;
47 bool mHasNewMail;
48 bool mAddedOk;
49 LockType mLock;
50 int mNumMsgs;
51 int mMsgsFetched;
52 KMFolder *mMailFolder;
55 #endif /*kmacctlocal_h*/