kmail

kmacctlocal.h
1/* KMail account for local mail folders
2 *
3 */
4#ifndef kmacctlocal_h
5#define kmacctlocal_h
6
7#include "kmaccount.h"
8#include "kmglobal.h"
9
10class KMAcctLocal: public KMAccount
11{
12protected:
13 friend class ::AccountManager;
14
15 KMAcctLocal(AccountManager* owner, const TQString& accountName, uint id);
16
17public:
18 virtual ~KMAcctLocal();
19 virtual void init(void);
20
21 virtual void pseudoAssign( const KMAccount * a );
22
25 TQString location(void) const { return mLocation; }
26 virtual void setLocation(const TQString&);
27
29 LockType lockType(void) const { return mLock; }
30 void setLockType(LockType lt) { mLock = lt; }
31
32 TQString procmailLockFileName(void) const { return mProcmailLockFileName; }
33 void setProcmailLockFileName(const TQString& s);
34
35 virtual TQString type(void) const;
36 virtual void processNewMail(bool);
37 virtual void readConfig(TDEConfig&);
38 virtual void writeConfig(TDEConfig&);
39
40private:
41 bool preProcess();
42 bool fetchMsg();
43 void postProcess();
44
45private:
46 TQString mLocation;
47 TQString mProcmailLockFileName;
48 bool mHasNewMail;
49 bool mAddedOk;
50 LockType mLock;
51 int mNumMsgs;
52 int mMsgsFetched;
53 KMFolder *mMailFolder;
54 TQString mStatusMsgStub;
55};
56
57#endif /*kmacctlocal_h*/
Mail folder.
Definition: kmfolder.h:69
The account manager is responsible for creating accounts of various types via the factory method crea...