kmail
kmacctlocal.h00001
00002
00003
00004 #ifndef kmacctlocal_h
00005 #define kmacctlocal_h
00006
00007 #include "kmaccount.h"
00008 #include "kmglobal.h"
00009
00010 class KMAcctLocal: public KMAccount
00011 {
00012 protected:
00013 friend class ::AccountManager;
00014
00015 KMAcctLocal(AccountManager* owner, const QString& accountName, uint id);
00016
00017 public:
00018 virtual ~KMAcctLocal();
00019 virtual void init(void);
00020
00021 virtual void pseudoAssign( const KMAccount * a );
00022
00025 QString location(void) const { return mLocation; }
00026 virtual void setLocation(const QString&);
00027
00029 LockType lockType(void) const { return mLock; }
00030 void setLockType(LockType lt) { mLock = lt; }
00031
00032 QString procmailLockFileName(void) const { return mProcmailLockFileName; }
00033 void setProcmailLockFileName(const QString& s);
00034
00035 virtual QString type(void) const;
00036 virtual void processNewMail(bool);
00037 virtual void readConfig(KConfig&);
00038 virtual void writeConfig(KConfig&);
00039
00040 private slots:
00041 bool preProcess();
00042 bool fetchMsg();
00043 void postProcess();
00044
00045 private:
00046 QString mLocation;
00047 QString mProcmailLockFileName;
00048 bool mHasNewMail;
00049 bool mAddedOk;
00050 LockType mLock;
00051 int mNumMsgs;
00052 int mMsgsFetched;
00053 KMFolder *mMailFolder;
00054 QString mStatusMsgStub;
00055 };
00056
00057 #endif
|